diff options
Diffstat (limited to 'japanese/rogue_s/Makefile')
-rw-r--r-- | japanese/rogue_s/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/japanese/rogue_s/Makefile b/japanese/rogue_s/Makefile new file mode 100644 index 000000000000..1b63378c5e3b --- /dev/null +++ b/japanese/rogue_s/Makefile @@ -0,0 +1,73 @@ +# New ports collection makefile for: rogue_s +# Date created: 3 December 1998 +# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp> +# +# $FreeBSD$ +# + +PORTNAME= rogue_s +PORTVERSION= 1.3a +CATEGORIES= japanese games +MASTER_SITES= ${MASTER_SITE_PORTS_JP} \ + http://people.FreeBSD.org/~sada/distfiles/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1992/sep/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1992/nov/ +DISTFILES= rogue_s.tar.z rogue_s.patch02.z rogue_s.patch03.z \ + rogue_s.message.z +EXTRACT_ONLY= rogue_s.tar.z + +PATCH_SITES= ${MASTER_SITE_PORTS_JP} \ + http://people.FreeBSD.org/~sada/distfiles/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1992/sep/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1992/oct/ +PATCHFILES= rogue_s.patch04 + +MAINTAINER= mistral@imasy.or.jp + +BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf + +WRKSRC= ${WRKDIR}/rogue_s +MAKEFILE= Makefile.nix +ALL_TARGET= rogue +NO_CDROM= yes + +MAN6= rogue_s.6 +MANLANG= ja +MANCOMPRESSED= no + +DOC_DIR= ${PREFIX}/share/doc/rogue +DOCS= README README.1st README.doc options.doc rogue.doc +MESG_DIR= ${PREFIX}/share/rogue + +pre-patch: + @(\ + cd ${WRKSRC} ; \ + ${GZCAT} ${DISTDIR}/rogue_s.patch02.z | uudecode -p | ${PATCH} --quiet ;\ + ${GZCAT} ${DISTDIR}/rogue_s.patch03.z | ${PATCH} --quiet \ + ) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/rogue ${PREFIX}/bin/rogue_s + ${SED} "s#PREFIX#${PREFIX}#" ${FILESDIR}/rogue_s.6 > ${WRKSRC}/rogue_s.6 + ${INSTALL_MAN} ${WRKSRC}/rogue_s.6 ${PREFIX}/man/ja/man6/rogue_s.6 + ${MKDIR} ${MESG_DIR} + ${INSTALL_DATA} ${WRKSRC}/mesg ${MESG_DIR} + ${INSTALL_DATA} ${WRKSRC}/mesg_E ${MESG_DIR} + ${GZCAT} ${FILESDIR}/mesg_fj.gz > ${WRKDIR}/mesg_fj + ${INSTALL_DATA} ${WRKDIR}/mesg_fj ${MESG_DIR}/mesg_fj + @(\ + cd ${WRKDIR} ; \ + ${GZCAT} ${DISTDIR}/rogue_s.message.z | \ + ${AWK} '{if (/^\#/) x++} {if(x) print $$0}' | ${SH} \ + ) + nkf -e ${WRKDIR}/mesg_utmc > ${WRKDIR}/mesg_utmc.euc + ${INSTALL_DATA} ${WRKDIR}/mesg_utmc.euc ${MESG_DIR}/mesg_utmc + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOC_DIR} + for file in ${DOCS}; do \ + ${INSTALL_DATA} ${WRKSRC}/"$$file" ${DOC_DIR} ; \ + done +.endif + +.include <bsd.port.mk> |