freebsd-ports/security/saferpay/files/patch-Makefile
Martin Blapp 9ef624d7ab Upgrade to version 1.2.8 to fix c++ errors on CURRENT.
Pointed out by:		kris (bento)
2003-02-19 09:47:53 +00:00

73 lines
2.6 KiB
Text

--- saferpay/Makefile.orig Thu Aug 8 15:59:09 2002
+++ saferpay/Makefile Tue Feb 18 17:28:00 2003
@@ -1,45 +1,37 @@
-PREFIX = /usr
-SSLVERSION = openssl-0.9.6c
-SSLEAYDIR = ../$(SSLVERSION)
-
+PREFIX = %%PREFIX%%
all:
-
- make -f idpapp.mk
- cp ./out/libidpapp.s* $(PREFIX)/lib
- make -f saferpay.mk
- cp idpapi.h ./out
- cp idperrc.h ./out
- cp ./out/settings.template ./out/settings.xml
+ gmake -f idpapp.mk -C saferpay
+ gmake -f saferpay.mk -C saferpay
clean:
- make -f idpapp.mk clean
- make -f saferpay.mk clean
+ gmake -f idpapp.mk clean
+ gmake -f saferpay.mk clean
xs: all
- perl -e 'system("cd perl/MessageObject\nperl Makefile.PL\nmake");'
- perl -e 'system("cd perl/MessageFactory\nperl Makefile.PL\nmake");'
- perl -e 'system("cd perl/ConfigurationSetup\nperl Makefile.PL\nmake");'
+ perl -e 'system("cd saferpay/perl/MessageObject\nperl Makefile.PL\nmake");'
+ perl -e 'system("cd saferpay/perl/MessageFactory\nperl Makefile.PL\nmake");'
+ perl -e 'system("cd saferpay/perl/ConfigurationSetup\nperl Makefile.PL\nmake");'
testxs:
- perl -e 'system("cd perl/ConfigurationSetup\nmake test");'
- perl -e 'system("cd perl/MessageFactory\nmake test");'
+ perl -e 'system("cd saferpay/perl/ConfigurationSetup\nmake test");'
+ perl -e 'system("cd saferpay/perl/MessageFactory\nmake test");'
installxs:
- perl -e 'system("cd perl/ConfigurationSetup\nmake install");'
- perl -e 'system("cd perl/MessageFactory\nmake install");'
- perl -e 'system("cd perl/MessageObject\nmake install");'
+ perl -e 'system("cd saferpay/perl/ConfigurationSetup\nmake install");'
+ perl -e 'system("cd saferpay/perl/MessageFactory\nmake install");'
+ perl -e 'system("cd saferpay/perl/MessageObject\nmake install");'
cleanxs:
- perl -e 'system("cd perl/ConfigurationSetup\nmake clean");'
- perl -e 'system("cd perl/MessageFactory\nmake clean");'
- perl -e 'system("cd perl/MessageObject\nmake clean");'
-
-testmk:
- echo "SSLVERSION: $(SSLVERSION)"
- echo "SSLEAYDIR: $(SSLEAYDIR)"
-
-
-
-
-
+ perl -e 'system("cd saferpay/perl/ConfigurationSetup\nmake clean");'
+ perl -e 'system("cd saferpay/perl/MessageFactory\nmake clean");'
+ perl -e 'system("cd saferpay/perl/MessageObject\nmake clean");'
+
+install:
+ install -C saferpay/out/libidpapp.so.1.0.0 $(PREFIX)/lib/libidpapp.so.1
+ install -C saferpay/idpapi.h $(PREFIX)/include
+ install -C saferpay/idperrc.h $(PREFIX)/include
+ install -m 0555 -C saferpay/out/saferpay $(PREFIX)/bin
+ mkdir -p $(PREFIX)/share/examples/saferpay/
+ install -C saferpay/out/settings.template $(PREFIX)/share/examples/saferpay/
+ ln -s -f $(PREFIX)/lib/libidpapp.so.1 $(PREFIX)/lib/libidpapp.so