1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/sysutils/du2ps/Makefile
Emanuel Haupt 4546ae3e74 - Support staging
- Define DOCS option
2014-02-27 09:21:11 +00:00

36 lines
1015 B
Makefile

# Created by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
# $FreeBSD$
PORTNAME= du2ps
PORTVERSION= 3.1
CATEGORIES= sysutils
MASTER_SITES= http://line.to/mac/soft/du2ps/
EXTRACT_SUFX= .tgz
MAINTAINER= sarumaru@jp.FreeBSD.org
COMMENT= Filter for converting output of du to PostScript file
# Nkf is required for just converting character code of japanese manual
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
ALL_TARGET=
MAKE_ARGS= CFLAGS="${CFLAGS}"
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
OPTIONS_DEFINE= DOCS
post-build:
@nkf -e ${WRKSRC}/du2ps.1j > ${WRKSRC}/du2ps.1.ja
do-install:
${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>