aboutsummaryrefslogtreecommitdiff
path: root/chinese/bg5pdf
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-08-14 05:31:18 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-08-14 05:31:18 +0000
commit1ac0f1d69c7a052ba722c2f5f56820840e8d73db (patch)
tree179963e3163b7d5258496a225c2068cd7ac3b828 /chinese/bg5pdf
parent6af5792e34119b3ce972c2996e988742fcdb0c69 (diff)
downloadports-1ac0f1d69c7a052ba722c2f5f56820840e8d73db.tar.gz
ports-1ac0f1d69c7a052ba722c2f5f56820840e8d73db.zip
Notes
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%%