aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/bg5pdf
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-14 13:31:18 +0800
committerclsung <clsung@FreeBSD.org>2006-08-14 13:31:18 +0800
commite3c11a520cfb96aac3df0a85dc987e571a24968c (patch)
treefd949ca05ec2f80ab9c6859aff5e8204489b5ef6 /chinese/bg5pdf
parentab3ac8b0bee94ed6480431d7ed0c821e68af74c0 (diff)
downloadfreebsd-ports-gnome-e3c11a520cfb96aac3df0a85dc987e571a24968c.tar.gz
freebsd-ports-gnome-e3c11a520cfb96aac3df0a85dc987e571a24968c.tar.zst
freebsd-ports-gnome-e3c11a520cfb96aac3df0a85dc987e571a24968c.zip
- Respect DESTDIR
- portlint fix PR: ports/101902 Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org>
Diffstat (limited to 'chinese/bg5pdf')
-rw-r--r--chinese/bg5pdf/Makefile6
-rw-r--r--chinese/bg5pdf/pkg-plist11
2 files changed, 9 insertions, 8 deletions
diff --git a/chinese/bg5pdf/Makefile b/chinese/bg5pdf/Makefile
index 8a78038ea348..5b7635e76296 100644
--- a/chinese/bg5pdf/Makefile
+++ b/chinese/bg5pdf/Makefile
@@ -17,9 +17,9 @@ COMMENT= Convert Chinese-Big5 encoded files to PDF, using PDFlib
LIB_DEPENDS= pdf.7:${PORTSDIR}/print/pdflib
+CFLAGS+= -fPIC
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
-CFLAGS+= -fPIC
post-patch:
${REINPLACE_CMD} -e 's,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g' \
@@ -27,8 +27,8 @@ post-patch:
do-install:
@${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/bg5pdf ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/gbpdf ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/bg5pdf ${TARGETDIR}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/gbpdf ${TARGETDIR}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bg5pdflib.so ${PYTHON_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/test.big5 ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/test.big5.pdf ${EXAMPLESDIR}
diff --git a/chinese/bg5pdf/pkg-plist b/chinese/bg5pdf/pkg-plist
index 280c1fe60fa2..060e94a53675 100644
--- a/chinese/bg5pdf/pkg-plist
+++ b/chinese/bg5pdf/pkg-plist
@@ -1,7 +1,8 @@
+@comment $FreeBSD$
+%%EXAMPLESDIR%%/genTest.py
+%%EXAMPLESDIR%%/test.big5
+%%EXAMPLESDIR%%/test.big5.pdf
+%%PYTHON_SITELIBDIR%%/bg5pdflib.so
bin/bg5pdf
bin/gbpdf
-lib/%%PYTHON_VERSION%%/site-packages/bg5pdflib.so
-share/examples/bg5pdf/test.big5
-share/examples/bg5pdf/test.big5.pdf
-share/examples/bg5pdf/genTest.py
-@dirrm share/examples/bg5pdf
+@dirrm %%EXAMPLESDIR%%