summaryrefslogtreecommitdiff
path: root/mail/oe2mbx/patches
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2005-02-05 16:27:39 +0000
committerzuntum <zuntum@pkgsrc.org>2005-02-05 16:27:39 +0000
commit52c030aac8e502c0a72d87c7b0cc46c827bd4e69 (patch)
tree6f4bac4fbcb54e8bffde0229844c4ad3ca7a95df /mail/oe2mbx/patches
parent0c68e0f8624c9105f6c07bdbd36ea919e37e3407 (diff)
downloadpkgsrc-52c030aac8e502c0a72d87c7b0cc46c827bd4e69.tar.gz
Fix PR#28775 by Georg Schwarz <georg.schwarz@freenet.de>: improve portability:
- use "test -r" instead of "test -e" - use ${INSTALL_*}
Diffstat (limited to 'mail/oe2mbx/patches')
-rw-r--r--mail/oe2mbx/patches/patch-aa36
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/oe2mbx/patches/patch-aa b/mail/oe2mbx/patches/patch-aa
new file mode 100644
index 00000000000..226a08eca3a
--- /dev/null
+++ b/mail/oe2mbx/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1 2005/02/05 16:27:39 zuntum Exp $
+
+--- makefile.orig Sat Jun 17 17:30:36 2000
++++ makefile
+@@ -1,22 +1,22 @@
+ # MAKEFILE FOR LIBOE AND OE2MBX
+ # Read README for info
+
+-PREFIX = /usr
++PREFIX ?= /usr
+ LIBDIR = $(PREFIX)/lib
+ BINDIR = $(PREFIX)/bin
+ INCLUDEDIR = $(PREFIX)/include
+
+ oe2mbx : src/oe2mbx.c lib/liboe.o
+- gcc src/oe2mbx.c lib/liboe.o -o bin/oe2mbx
++ $(CC) $(CFLAGS) src/oe2mbx.c lib/liboe.o -o bin/oe2mbx
+ dynamic : src/oe2mbx.c
+- gcc src/oe2mbx.c -DDYNAMIC -o bin/oe2mbx -loe
++ $(CC) $(CFLAGS) src/oe2mbx.c -DDYNAMIC -o bin/oe2mbx -loe
+ liboe : src/liboe.c
+- gcc -c src/liboe.c -o lib/liboe.so
++ $(CC) $(CFLAGS) -c src/liboe.c -o lib/liboe.so
+ lib/liboe.o : src/liboe.c
+- gcc -c src/liboe.c -o lib/liboe.o
++ $(CC) $(CFLAGS) -c src/liboe.c -o lib/liboe.o
+ install :
+- test -e bin/* && install bin/* $(BINDIR) && echo oe2mbx binary installed || echo oe2mbx binary not prepared
+- test -e lib/*.so && install lib/*.so $(LIBDIR) && install src/*.h $(INCLUDEDIR) && echo liboe library installed || echo liboe library not prepared
++ test -r bin/* && ${INSTALL_PROGRAM} bin/* $(BINDIR) && echo oe2mbx binary installed || echo oe2mbx binary not prepared
++ test -r lib/*.so && ${INSTALL_LIB} lib/*.so $(LIBDIR) && ${INSTALL_DATA} src/*.h $(INCLUDEDIR) && echo liboe library installed || echo liboe library not prepared
+ clean :
+- test -e bin/* && rm -f bin/* || test .
+- test -e lib/* && rm -f lib/* || test .
++ test -r bin/* && rm -f bin/* || test .
++ test -r lib/* && rm -f lib/* || test .