aboutsummaryrefslogtreecommitdiff
path: root/graphics/lprof-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/lprof-devel/Makefile')
-rw-r--r--graphics/lprof-devel/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/graphics/lprof-devel/Makefile b/graphics/lprof-devel/Makefile
index 058c66f7dc59..fba3ab1d1e5d 100644
--- a/graphics/lprof-devel/Makefile
+++ b/graphics/lprof-devel/Makefile
@@ -19,8 +19,7 @@ COMMENT= Open source color profiler
LIB_DEPENDS= lcms.1:${PORTSDIR}/graphics/lcms \
jpeg.9:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff \
- vigraimpex.2:${PORTSDIR}/graphics/vigra \
- usb-0.1.8:${PORTSDIR}/devel/libusb
+ vigraimpex.2:${PORTSDIR}/graphics/vigra
USE_BZIP2= yes
USE_XORG= x11 xext sm ice xxf86vm
@@ -33,6 +32,12 @@ CMAKE_USE_PTHREAD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800069
+LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/asm\/types.h/ d' ${WRKSRC}/src/argyll/spectro/hidio.c
@${REINPLACE_CMD} -e '/DESTINATION/ s|data/|share/${PORTNAME}/data/|' \
@@ -41,4 +46,4 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/data/icons/lprof.png ${PREFIX}/share/pixmaps
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>