aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-06-16 19:46:43 +0800
committermarino <marino@FreeBSD.org>2016-06-16 19:46:43 +0800
commitb098b2d0879e52b6bf1c500f2b6c5fbf5ba3c505 (patch)
tree1746a1b65db013703679fcbeecf204c499b923cb /devel
parent87fd3ea5b7c0ea70770ea88e356b9e286f3cdc59 (diff)
downloadfreebsd-ports-gnome-b098b2d0879e52b6bf1c500f2b6c5fbf5ba3c505.tar.gz
freebsd-ports-gnome-b098b2d0879e52b6bf1c500f2b6c5fbf5ba3c505.tar.zst
freebsd-ports-gnome-b098b2d0879e52b6bf1c500f2b6c5fbf5ba3c505.zip
devel/acsccid: Genericize to enable build on DragonFly
Also use OPSYS with OSVERSION. Approved by: non-invasive DF support blanket
Diffstat (limited to 'devel')
-rw-r--r--devel/acsccid/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/acsccid/Makefile b/devel/acsccid/Makefile
index af1b052ec0d1..14e8e458e96b 100644
--- a/devel/acsccid/Makefile
+++ b/devel/acsccid/Makefile
@@ -13,9 +13,9 @@ LICENSE= GPLv2
LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
-USES= perl5 pkgconfig tar:bz2
+USES= perl5 pkgconfig tar:bz2
-PLIST_FILES= lib/pcsc/drivers/ifd-acsccid.bundle/Contents/FreeBSD/libacsccid.so \
+PLIST_FILES= lib/pcsc/drivers/ifd-acsccid.bundle/Contents/${OPSYS}/libacsccid.so \
lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist
GNU_CONFIGURE= yes
@@ -23,12 +23,12 @@ GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
# Old versions don't have pkgconfig files for libusb
-.if ${OSVERSION} < 1000024
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024
CONFIGURE_ENV+= LIBUSB_CFLAGS="-I${LOCALBASE}/include" \
LIBUSB_LIBS="-L${LOCALBASE}/lib -lusb"
.endif
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/FreeBSD/libacsccid.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/${OPSYS}/libacsccid.so
.include <bsd.port.post.mk>