Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2016 11:46:43 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r416957 - head/devel/acsccid
Message-ID:  <201606161146.u5GBkhvH038604@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606161146.u5GBkhvH038604>