# Created by: Bruce M Simpson # $FreeBSD$ PORTNAME= libsectok PORTVERSION= 20030619 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/ MAINTAINER= ports@FreeBSD.org COMMENT= ISO 7816 Smartcard API Library USE_OPENSSL= yes USE_LDCONFIG= yes PLIST_FILES= include/sectok.h lib/libsectok.a lib/libsectok.so \ lib/libsectok.so.3 man/man3/sectok.3.gz post-patch: @${REINPLACE_CMD} -e \ '/^VERSION/s|3.1|3| ; \ s|^CFLAGS=|CFLAGS+=| ; \ s|-g |$${CPPFLAGS} | ; \ s|^LDFLAGS=|LDFLAGS+=| ; \ s|-x .* -shared|-shared| ; \ s|^CC=|CC?=| ; \ /^LD/s|ld|$$(CC)| ; \ s|-fpic|-fPIC|' ${WRKSRC}/Makefile do-install: (cd ${WRKSRC} && ${INSTALL_DATA} sectok.h \ ${STAGEDIR}${PREFIX}/include) (cd ${WRKSRC} && ${INSTALL_DATA} libsectok.a \ ${STAGEDIR}${PREFIX}/lib) (cd ${WRKSRC} && ${INSTALL_LIB} libsectok.so.3 \ ${STAGEDIR}${PREFIX}/lib) ${LN} -s libsectok.so.3 ${STAGEDIR}${PREFIX}/lib/libsectok.so (cd ${WRKSRC} && ${INSTALL_MAN} sectok.3 \ ${STAGEDIR}${MANPREFIX}/man/man3) .include