Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/libccid/Makefile,v retrieving revision 1.31 diff -u -r1.31 Makefile --- Makefile 14 May 2011 17:29:33 -0000 1.31 +++ Makefile 2 Jun 2011 14:06:06 -0000 @@ -29,18 +29,36 @@ PLIST_SUB= VER=${PORTVERSION} +OPTIONS= RSASECID "Install program to retrieve a RSA SecurID token" off + .include .if ${OSVERSION} < 801000 IGNORE= needs a complete libusb-1 implementation .endif +.if defined(WITH_RSASECID) +PLIST_SUB+= RSASECID="" +MAN1= RSA_SecurID_getpasswd.1 +.else +PLIST_SUB+= RSASECID="@comment " +.endif + post-patch: - ${REINPLACE_CMD} -e "s,use warnings;,," ${WRKSRC}/src/create_Info_plist.pl - ${REINPLACE_CMD} -e "s,ndef __APPLE__, !(__APPLE__ || __FreeBSD__)," ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c - ${REINPLACE_CMD} -e "s,libusb-1.0/libusb.h,libusb.h," \ + @${REINPLACE_CMD} -e "s,use warnings;,," ${WRKSRC}/src/create_Info_plist.pl + @${REINPLACE_CMD} -e "s,ndef __APPLE__, !(__APPLE__ || __FreeBSD__)," \ + ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c + @${REINPLACE_CMD} -e "s,libusb-1.0/libusb.h,libusb.h," \ ${WRKSRC}/configure ${WRKSRC}/src/ccid_usb.c \ ${WRKSRC}/src/ccid_usb.h \ ${WRKSRC}/contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.c +.if defined(WITH_RSASECID) +post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd \ + ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/contrib/RSA_SecurID/RSA_SecurID_getpasswd.1 \ + ${MANPREFIX}/man/man1 +.endif + .include Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/devel/libccid/pkg-plist,v retrieving revision 1.11 diff -u -r1.11 pkg-plist --- pkg-plist 14 May 2011 17:29:33 -0000 1.11 +++ pkg-plist 2 Jun 2011 14:06:06 -0000 @@ -1,3 +1,4 @@ +%%RSASECID%%bin/RSA_SecurID_getpasswd lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD/libccid.so lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist @dirrm lib/pcsc/drivers/ifd-ccid.bundle/Contents/FreeBSD