aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-27 17:21:11 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-27 17:21:11 +0800
commit29723c56f91e93be8e92052fe51651904d586a6c (patch)
treebe1a134e2b843dceb252673fdfd2eb1ac4df993e
parent3d289998ab942695dd297eff50e4df2ae28a1c89 (diff)
downloadfreebsd-ports-gnome-29723c56f91e93be8e92052fe51651904d586a6c.tar.gz
freebsd-ports-gnome-29723c56f91e93be8e92052fe51651904d586a6c.tar.zst
freebsd-ports-gnome-29723c56f91e93be8e92052fe51651904d586a6c.zip
- Support staging
- Define DOCS option
-rw-r--r--sysutils/du2ps/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/sysutils/du2ps/Makefile b/sysutils/du2ps/Makefile
index 5432864357cf..13393f0bc57f 100644
--- a/sysutils/du2ps/Makefile
+++ b/sysutils/du2ps/Makefile
@@ -16,22 +16,20 @@ BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
ALL_TARGET=
MAKE_ARGS= CFLAGS="${CFLAGS}"
-MAN1= du2ps.1
-MANLANG= "" ja
-PLIST_FILES= bin/du2ps
-.if !defined(NOPORTDOCS)
+PLIST_FILES= bin/du2ps man/ja/man1/du2ps.1.gz man/man1/du2ps.1.gz
PORTDOCS= README.ver1 README.ver2 README.xdu du2ps.pdf du2psj.pdf
-.endif
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
+post-build:
+ @nkf -e ${WRKSRC}/du2ps.1j > ${WRKSRC}/du2ps.1.ja
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/du2ps ${PREFIX}/bin/du2ps
- ${INSTALL_MAN} ${WRKSRC}/du2ps.1 ${PREFIX}/man/man1/du2ps.1
- nkf -e ${WRKSRC}/du2ps.1j > ${WRKSRC}/du2ps.1.ja
- ${INSTALL_MAN} ${WRKSRC}/du2ps.1.ja ${PREFIX}/man/ja/man1/du2ps.1
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/du2ps ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/du2ps.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/du2ps.1.ja \
+ ${STAGEDIR}${MANPREFIX}/man/ja/man1/du2ps.1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>