1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/security/libsectok/Makefile
Pawel Pekala b83dbf1d1d - Respect CFLAGS
- Support staging

PR:		ports/184840
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-25 11:34:50 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Bruce M Simpson <bms@FreeBSD.org>
# $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 <bsd.port.mk>