summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>