aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-01-21 05:06:55 +0800
committerantoine <antoine@FreeBSD.org>2014-01-21 05:06:55 +0800
commit5949b5b9ad2e4eebb6cb291e5111d36abca876e9 (patch)
tree93787655a63ecbe377ac9069c5f4da4da0b1bf76
parent86efe5051cde35fdcddf76e8bf0a47dde5b6bf6e (diff)
downloadfreebsd-ports-gnome-5949b5b9ad2e4eebb6cb291e5111d36abca876e9.tar.gz
freebsd-ports-gnome-5949b5b9ad2e4eebb6cb291e5111d36abca876e9.tar.zst
freebsd-ports-gnome-5949b5b9ad2e4eebb6cb291e5111d36abca876e9.zip
Stage support
-rw-r--r--chinese/bg5ps/Makefile31
1 files changed, 12 insertions, 19 deletions
diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile
index 40aac434b260..607355528563 100644
--- a/chinese/bg5ps/Makefile
+++ b/chinese/bg5ps/Makefile
@@ -14,28 +14,21 @@ COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
LIB_DEPENDS= libttf.so:${PORTSDIR}/print/freetype
USE_PYTHON= yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample
- ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample
-.if ${PORT_OPTIONS:MDOCS}
- @${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}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${STAGEDIR}${PREFIX}/etc/bg5ps.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${STAGEDIR}${PREFIX}/etc/gb2312-bg5ps.conf.sample
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/netscape.ps ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/test.big5 ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/test.gb2312 ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/test.sh ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>