aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/bg5ps
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-14 13:31:57 +0800
committerclsung <clsung@FreeBSD.org>2006-08-14 13:31:57 +0800
commitc2dac7adbaf69be77ae9c80776e8fd22eebc9ae0 (patch)
tree7427051e24d428b247bb522d26053e8b23772ad0 /chinese/bg5ps
parente3c11a520cfb96aac3df0a85dc987e571a24968c (diff)
downloadfreebsd-ports-gnome-c2dac7adbaf69be77ae9c80776e8fd22eebc9ae0.tar.gz
freebsd-ports-gnome-c2dac7adbaf69be77ae9c80776e8fd22eebc9ae0.tar.zst
freebsd-ports-gnome-c2dac7adbaf69be77ae9c80776e8fd22eebc9ae0.zip
- Respect DESTDIR
- portlint fix PR: ports/101903 Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org>
Diffstat (limited to 'chinese/bg5ps')
-rw-r--r--chinese/bg5ps/Makefile24
-rw-r--r--chinese/bg5ps/pkg-plist41
2 files changed, 34 insertions, 31 deletions
diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile
index 273895c13950..ddb36977238d 100644
--- a/chinese/bg5ps/Makefile
+++ b/chinese/bg5ps/Makefile
@@ -20,17 +20,19 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
do-install:
- @${MKDIR} ${PREFIX}/share/doc/bg5ps
- @${MKDIR} ${PREFIX}/share/examples/bg5ps
- ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
- ${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
- ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/examples/netscape.ps ${PREFIX}/share/examples/bg5ps
- ${INSTALL_DATA} ${WRKSRC}/examples/test.big5 ${PREFIX}/share/examples/bg5ps
- ${INSTALL_DATA} ${WRKSRC}/examples/test.gb2312 ${PREFIX}/share/examples/bg5ps
- ${INSTALL_SCRIPT} ${WRKSRC}/examples/test.sh ${PREFIX}/share/examples/bg5ps
+ ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${TARGETDIR}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${TARGETDIR}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${TARGETDIR}/etc/bg5ps.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${TARGETDIR}/etc/gb2312-bg5ps.conf.sample
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
+.endif
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/netscape.ps ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/test.big5 ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/test.gb2312 ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/test.sh ${EXAMPLESDIR}
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/chinese/bg5ps/pkg-plist b/chinese/bg5ps/pkg-plist
index 07c0a03bdbc4..1ba16df13db4 100644
--- a/chinese/bg5ps/pkg-plist
+++ b/chinese/bg5ps/pkg-plist
@@ -1,24 +1,25 @@
+@comment $FreeBSD$
+%%PORTDOCS%%%%DOCSDIR%%/COPYING.txt
+%%PORTDOCS%%%%DOCSDIR%%/bg5ps.sgml
+%%PORTDOCS%%%%DOCSDIR%%/bg5ps.txt
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-1.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-2.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-3.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-4.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-5.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-6.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps-7.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bg5ps.html
+%%PORTDOCS%%%%DOCSDIR%%/makeps
+%%PORTDOCS%%%%DOCSDIR%%/ttf2ps.doc
+%%EXAMPLESDIR%%/netscape.ps
+%%EXAMPLESDIR%%/test.big5
+%%EXAMPLESDIR%%/test.gb2312
+%%EXAMPLESDIR%%/test.sh
bin/bg5ps
bin/ttf2psm
etc/bg5ps.conf.sample
etc/gb2312-bg5ps.conf.sample
-share/doc/bg5ps/COPYING.txt
-share/doc/bg5ps/bg5ps.sgml
-share/doc/bg5ps/bg5ps.txt
-share/doc/bg5ps/html/bg5ps.html
-share/doc/bg5ps/html/bg5ps-1.html
-share/doc/bg5ps/html/bg5ps-2.html
-share/doc/bg5ps/html/bg5ps-3.html
-share/doc/bg5ps/html/bg5ps-4.html
-share/doc/bg5ps/html/bg5ps-5.html
-share/doc/bg5ps/html/bg5ps-6.html
-share/doc/bg5ps/html/bg5ps-7.html
-share/doc/bg5ps/makeps
-share/doc/bg5ps/ttf2ps.doc
-share/examples/bg5ps/netscape.ps
-share/examples/bg5ps/test.big5
-share/examples/bg5ps/test.gb2312
-share/examples/bg5ps/test.sh
-@dirrm share/doc/bg5ps/html
-@dirrm share/doc/bg5ps
-@dirrm share/examples/bg5ps
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%