aboutsummaryrefslogtreecommitdiff
path: root/comms/libticables2
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-01-05 22:58:02 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-01-05 22:58:02 +0000
commit7277ec6a16005fbbf00e59a8beacc7634f4376fc (patch)
tree89becbb47fd3ca1d6f3fd97d6677e0b01732e970 /comms/libticables2
parent96966101c6558191cb15925803ded6baf1737eb7 (diff)
downloadports-7277ec6a16005fbbf00e59a8beacc7634f4376fc.tar.gz
ports-7277ec6a16005fbbf00e59a8beacc7634f4376fc.zip
Assume "pkg-config libusb*" works after 9.x EOL
FreeBSD appears to use different pkg-config name for 0.1.x API but it doesn't matter much as 0.1, 1.0 and 2.0 share CFLAGS/LIBS.
Notes
Notes: svn path=/head/; revision=430669
Diffstat (limited to 'comms/libticables2')
-rw-r--r--comms/libticables2/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/comms/libticables2/Makefile b/comms/libticables2/Makefile
index 0562699a6819..6d3bc7f2e9f4 100644
--- a/comms/libticables2/Makefile
+++ b/comms/libticables2/Makefile
@@ -22,11 +22,12 @@ NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
GNU_CONFIGURE= yes
-CONFIGURE_ENV= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
+ @${REINPLACE_CMD} -e '/PKG_CONFIG.*libusb/s/ >= 0\.1\.[0-9]*/-0.1/' \
+ ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/Requires/&.private/' ${WRKSRC}/ticables2.pc.in
.include <bsd.port.mk>