aboutsummaryrefslogtreecommitdiff
path: root/misc/gplink
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-03-09 17:15:43 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-03-09 17:15:43 +0000
commitf5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa (patch)
tree343e91600b9cf81ffb94bf71017b43a88bfcbf45 /misc/gplink
parente9e0ba8df0a817712eab81d4a962e79cae35dca1 (diff)
downloadports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.tar.gz
ports-f5d05ea54d1f80ecd08c5809a3ce5e1594e34eaa.zip
Notes
Diffstat (limited to 'misc/gplink')
-rw-r--r--misc/gplink/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/misc/gplink/Makefile b/misc/gplink/Makefile
index 69464fd924b5..33636aeb4372 100644
--- a/misc/gplink/Makefile
+++ b/misc/gplink/Makefile
@@ -13,14 +13,25 @@ MASTER_SITES= http://gp2x.org/gp32/gplink/
MAINTAINER= ports@FreeBSD.org
COMMENT= A GP32 USB linker tool
-LIB_DEPENDS= usb-0.1.8:${PORTSDIR}/devel/libusb
-
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
PLIST_FILES= bin/gplink
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800069
+LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
+.endif
+
+post-patch:
+.if ${OSVERSION} >= 800069
+ @${REINPLACE_CMD} -E -e 's,`libusb-config --cflags`,,g' \
+ -e 's,`libusb-config --libs`,-lusb,g' \
+ ${WRKSRC}/Makefile
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gplink ${PREFIX}/bin
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>