freebsd-ports/security/libsectok/files/patch-Makefile
Bruce M Simpson 9c94da82a8 New port: security/libsectok
PR:		ports/39777
2003-09-29 00:05:14 +00:00

24 lines
811 B
Text

--- Makefile.orig Thu Jan 3 20:26:00 2002
+++ Makefile Fri Aug 23 13:12:59 2002
@@ -1,10 +1,10 @@
VERSION= 3.1
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 input.c r1r2.c readers.c sc7816.c sectok.c
@@ -47,6 +47,8 @@
install :
$(INSTALL) -m 755 sectok.h $(PREFIX)/include
$(INSTALL) -m 755 $(TARGETS) $(PREFIX)/lib
+ ln -s $(PREFIX)/lib/libsectok.so.${VERSION} $(PREFIX)/lib/libsectok.so.3
+ $(INSTALL) -m 644 sectok.3 $(PREFIX)/man/man3
release :
rm -rf $(RELEASE)