summaryrefslogtreecommitdiff
path: root/print/bg5pdf/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-21 18:55:13 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-21 18:55:13 +0000
commite5c3d52f54998367bb1cdbf46d7023c8b2a42380 (patch)
treebd713df2006c36b08c95a278ed5305fe14ca4662 /print/bg5pdf/patches
parent42a8353f430e1e7ef6dfc2bfeaa864f9b197ba38 (diff)
downloadpkgsrc-e5c3d52f54998367bb1cdbf46d7023c8b2a42380.tar.gz
Shared object files must be linked with -fPIC. DESTDIR support.
Bump revision.
Diffstat (limited to 'print/bg5pdf/patches')
-rw-r--r--print/bg5pdf/patches/patch-aa16
1 files changed, 8 insertions, 8 deletions
diff --git a/print/bg5pdf/patches/patch-aa b/print/bg5pdf/patches/patch-aa
index 35570e12a94..16ba52f8114 100644
--- a/print/bg5pdf/patches/patch-aa
+++ b/print/bg5pdf/patches/patch-aa
@@ -1,15 +1,15 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/07/12 20:13:39 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2008/06/21 18:55:13 joerg Exp $
--- Makefile.orig Thu Apr 4 11:15:01 2002
+++ Makefile
@@ -0,0 +1,10 @@
+all:
-+ $(CC) -shared bg5pdflib.c -I$(LOCALBASE)/include -I$(LOCALBASE)/$(PYINC) -L$(LOCALBASE)/lib -lpdf -Wl,-R$(LOCALBASE)/lib -o bg5pdflib.so
++ $(CC) -fPIC -shared bg5pdflib.c -I$(LOCALBASE)/include -I$(LOCALBASE)/$(PYINC) -L$(LOCALBASE)/lib -lpdf -Wl,-R$(LOCALBASE)/lib -o bg5pdflib.so
+
+install:
-+ ${BSD_INSTALL_SCRIPT} bg5pdf ${PREFIX}/bin
-+ ${BSD_INSTALL_DATA} bg5pdflib.so ${PREFIX}/${PYSITELIB}
-+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5pdf
-+ ${BSD_INSTALL_DATA} test.big5 ${PREFIX}/share/examples/bg5pdf
-+ ${BSD_INSTALL_DATA} test.big5.pdf ${PREFIX}/share/examples/bg5pdf
-+ ${BSD_INSTALL_SCRIPT} genTest.py ${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_SCRIPT} bg5pdf ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_DATA} bg5pdflib.so ${DESTDIR}${PREFIX}/${PYSITELIB}
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_DATA} test.big5 ${DESTDIR}${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_DATA} test.big5.pdf ${DESTDIR}${PREFIX}/share/examples/bg5pdf
++ ${BSD_INSTALL_SCRIPT} genTest.py ${DESTDIR}${PREFIX}/share/examples/bg5pdf