diff options
author | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 1998-03-20 16:30:30 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@FreeBSD.org> | 1998-03-20 16:30:30 +0000 |
commit | 70b7215000bbf81804b8ea42dd2047b969645e07 (patch) | |
tree | 0b8c6ab31c801043b46162ca50d0c5ad21b11c01 /japanese/man-doc/Makefile | |
parent | 308a3e594ef1d3b8e6261d759c48ca9067c6fa6c (diff) | |
download | ports-70b7215000bbf81804b8ea42dd2047b969645e07.tar.gz ports-70b7215000bbf81804b8ea42dd2047b969645e07.zip |
Makefile simplifications.
PR: 6050
Notes
Notes:
svn path=/head/; revision=10240
Diffstat (limited to 'japanese/man-doc/Makefile')
-rw-r--r-- | japanese/man-doc/Makefile | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/japanese/man-doc/Makefile b/japanese/man-doc/Makefile index b758c7500c4a..631b90345dbb 100644 --- a/japanese/man-doc/Makefile +++ b/japanese/man-doc/Makefile @@ -1,38 +1,47 @@ # New ports collection makefile for: Japanese man documents -# Version required: 2.2.5a +# Version required: 2.2 # Date created: 6 January 1997 # Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp> # -# $Id: Makefile,v 1.16 1997/12/10 08:57:16 asami Exp $ +# $Id: Makefile,v 1.17 1998/01/12 02:48:47 steve Exp $ # -DISTNAME= jpman-${VERSION}a -PKGNAME= ja-man-doc-2.2.5a +DISTNAME= jpman-2.2 +PKGNAME= ja-man-doc-2.2 CATEGORIES= japanese -MASTER_SITES= ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/man-jp/ +DISTFILES= # none MAINTAINER= kiri@kiri.toba-cmt.ac.jp -RUN_DEPENDS= jman:${PORTSDIR}/japanese/man - -NO_BUILD= yes -WRKSRC= ${WRKDIR}/jpman-${VERSION} -SCRIPTS_ENV= TMPL_FILE=${TMPL_FILE} PKGDIR=${PKGDIR} AWK=${AWK} \ - CAT=${CAT} ECHO=${ECHO} GZIP_CMD="${GZIP_CMD}" \ - RM=${RM} SED=${SED} -PLIST= ${WRKSRC}/PLIST - -VERSION= 2.2.5 -TMPL_FILE= install-man - -do-install: -.if !defined(NOMANCOMPRESS) - @${SETENV} PREFIX=${PREFIX} LANG="${LANG}" ${SH} \ - ${WRKSRC}/${TMPL_FILE} MANCOMPRESSED -.else - @${SETENV} PREFIX=${PREFIX} LANG="${LANG}" ${SH} \ - ${WRKSRC}/${TMPL_FILE} NOMANCOMPRESS -.endif +PREFIX?= /usr +NO_CHECKSUM= yes +NO_MTREE= yes +WRKSRC= ${WRKDIR}/man + +LANGNAME= ja +MANSECS= 1 5 8 +JAMANDIR?= /usr/opt/doc/ja/man + +do-extract: + @if [ ! -d ${JAMANDIR} ]; then \ + ${ECHO} "You need the Japanese manual source in"; \ + ${ECHO} "\"${JAMANDIR}\""; \ + ${ECHO} "in order to build this port."; \ + exit 1; \ + fi + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKSRC} + @(cd ${JAMANDIR}; ${CP} Makefile Makefile.inc ${WRKSRC}) +.for sec in ${MANSECS} + @if [ -d ${JAMANDIR}/man${sec} ]; then \ + ${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \ + fi +.endfor + +pre-install: +.for sec in ${MANSECS} + @${MKDIR} ${PREFIX}/share/man/ja/man${sec} +.endfor post-install: @${CAT} ${PKGDIR}/MESSAGE |