pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/bg5pdf Shared object files must be linked with -...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b165f8d0875b
branches: trunk
changeset: 543658:b165f8d0875b
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Jun 21 18:55:13 2008 +0000
description:
Shared object files must be linked with -fPIC. DESTDIR support.
Bump revision.
diffstat:
print/bg5pdf/Makefile | 8 ++++++--
print/bg5pdf/distinfo | 4 ++--
print/bg5pdf/patches/patch-aa | 16 ++++++++--------
3 files changed, 16 insertions(+), 12 deletions(-)
diffs (70 lines):
diff -r a857ec774cbf -r b165f8d0875b print/bg5pdf/Makefile
--- a/print/bg5pdf/Makefile Sat Jun 21 18:55:06 2008 +0000
+++ b/print/bg5pdf/Makefile Sat Jun 21 18:55:13 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2006/10/04 21:56:34 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2008/06/21 18:55:13 joerg Exp $
#
DISTNAME= bg5pdf-1.0.0
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= print chinese
MASTER_SITES= ${MASTER_SITE_LOCAL}
@@ -10,12 +10,16 @@
# HOMEPAGE= http://students.washington.edu/cschin/bg5ps/bg5pdf/
COMMENT= Wrap big5 encoding text file into PDF file by using PDFlib
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/bg5pdf
PYTHON_VERSIONS_ACCEPTED= 21
PYBINMODULE= # defined
PY_PATCHPLIST= yes
PYTHON_PATCH_SCRIPTS= bg5pdf
+INSTALLATION_DIRS= bin ${PYSITELIB}
+
MAKE_ENV+= PYINC=${PYINC:Q} PYSITELIB=${PYSITELIB:Q}
post-extract:
diff -r a857ec774cbf -r b165f8d0875b print/bg5pdf/distinfo
--- a/print/bg5pdf/distinfo Sat Jun 21 18:55:06 2008 +0000
+++ b/print/bg5pdf/distinfo Sat Jun 21 18:55:13 2008 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 12:51:41 agc Exp $
+$NetBSD: distinfo,v 1.3 2008/06/21 18:55:13 joerg Exp $
SHA1 (bg5pdf-1.0.0.tar.gz) = f050a1995c0a40f0578dffb04055bab6195b032e
RMD160 (bg5pdf-1.0.0.tar.gz) = 8757c6afe000dd30fa83d42c5f219930fb092427
Size (bg5pdf-1.0.0.tar.gz) = 55208 bytes
-SHA1 (patch-aa) = 20c5b83cf1ee0b6ba2514a00b0a307ca93a99aa9
+SHA1 (patch-aa) = 75d0a19afb5d947a3cee607503cfbf78b1417a73
diff -r a857ec774cbf -r b165f8d0875b print/bg5pdf/patches/patch-aa
--- a/print/bg5pdf/patches/patch-aa Sat Jun 21 18:55:06 2008 +0000
+++ b/print/bg5pdf/patches/patch-aa Sat Jun 21 18:55:13 2008 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index