summaryrefslogtreecommitdiff
path: root/print/bg5pdf
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
parent42a8353f430e1e7ef6dfc2bfeaa864f9b197ba38 (diff)
downloadpkgsrc-e5c3d52f54998367bb1cdbf46d7023c8b2a42380.tar.gz
Shared object files must be linked with -fPIC. DESTDIR support.
Bump revision.
Diffstat (limited to 'print/bg5pdf')
-rw-r--r--print/bg5pdf/Makefile8
-rw-r--r--print/bg5pdf/distinfo4
-rw-r--r--print/bg5pdf/patches/patch-aa16
3 files changed, 16 insertions, 12 deletions
diff --git a/print/bg5pdf/Makefile b/print/bg5pdf/Makefile
index e22868c689d..831780988f3 100644
--- a/print/bg5pdf/Makefile
+++ b/print/bg5pdf/Makefile
@@ -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 @@ MAINTAINER= rxg@NetBSD.org
# 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 --git a/print/bg5pdf/distinfo b/print/bg5pdf/distinfo
index 00fb489c819..93c69dc4450 100644
--- a/print/bg5pdf/distinfo
+++ b/print/bg5pdf/distinfo
@@ -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 --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