svn commit: r416957 - head/devel/acsccid

John Marino marino at FreeBSD.org
Thu Jun 16 11:46:45 UTC 2016


Author: marino
Date: Thu Jun 16 11:46:43 2016
New Revision: 416957
URL: https://svnweb.freebsd.org/changeset/ports/416957

Log:
  devel/acsccid: Genericize to enable build on DragonFly
  
  Also use OPSYS with OSVERSION.
  
  Approved by:	non-invasive DF support blanket

Modified:
  head/devel/acsccid/Makefile

Modified: head/devel/acsccid/Makefile
==============================================================================
--- head/devel/acsccid/Makefile	Thu Jun 16 11:38:54 2016	(r416956)
+++ head/devel/acsccid/Makefile	Thu Jun 16 11:46:43 2016	(r416957)
@@ -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>


More information about the svn-ports-head mailing list