mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Respect CFLAGS
- Support staging PR: ports/184840 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
ba425b79d1
commit
b83dbf1d1d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337407
@ -6,27 +6,36 @@ PORTVERSION= 20030619
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.citi.umich.edu/projects/smartcard/
|
||||
DISTNAME= libsectok-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= ISO 7816 Smartcard API Library
|
||||
|
||||
USE_OPENSSL= yes
|
||||
USE_LDCONFIG= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
USE_OPENSSL= YES
|
||||
MAKE_ARGS= CC=${CC}
|
||||
|
||||
MAN3= sectok.3
|
||||
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
|
||||
|
||||
NO_STAGE= yes
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/sectok.h ${PREFIX}/include
|
||||
${INSTALL_DATA} ${WRKSRC}/libsectok.a ${PREFIX}/lib
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libsectok.so.3 ${PREFIX}/lib
|
||||
${LN} -s ${PREFIX}/lib/libsectok.so.3 ${PREFIX}/lib/libsectok.so
|
||||
${INSTALL_MAN} ${WRKSRC}/sectok.3 ${PREFIX}/man/man3
|
||||
|
||||
PLIST_FILES= include/sectok.h lib/libsectok.a \
|
||||
lib/libsectok.so lib/libsectok.so.3
|
||||
(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>
|
||||
|
@ -1,16 +0,0 @@
|
||||
--- Makefile.orig Thu Jun 19 22:02:19 2003
|
||||
+++ Makefile Fri Jan 14 12:58:03 2005
|
||||
@@ -1,10 +1,10 @@
|
||||
-VERSION= 3.1
|
||||
+VERSION= 3
|
||||
TARGETS= libsectok.a libsectok.so.$(VERSION)
|
||||
-PREFIX= /usr/local
|
||||
+PREFIX?= /usr/local
|
||||
|
||||
# You might have to add -I/usr/include/openssl to CFLAGS
|
||||
CFLAGS= -g -Wall -DDL_READERS
|
||||
-LDFLAGS= -x -Bshareable -Bforcearchive -shared
|
||||
+LDFLAGS= -shared -x --whole-archive
|
||||
|
||||
# You may have to add getopt.c to SRC if your getopt doesn't have optreset
|
||||
SRC= atr.c cmdtab.c cyberflex.c ifdwrapper.c input.c r1r2.c \
|
Loading…
Reference in New Issue
Block a user