1996-12-07 13:24:42 +00:00
|
|
|
# New ports collection makefile for: Japanese man documents
|
1998-03-20 16:30:30 +00:00
|
|
|
# Version required: 2.2
|
1997-01-06 11:31:12 +00:00
|
|
|
# Date created: 6 January 1997
|
1996-12-07 13:24:42 +00:00
|
|
|
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1998-12-08 02:31:06 +00:00
|
|
|
# $Id: Makefile,v 1.20 1998/10/01 16:47:26 kuriyama Exp $
|
1996-12-07 13:24:42 +00:00
|
|
|
#
|
|
|
|
|
1998-12-08 02:31:06 +00:00
|
|
|
DISTNAME= jpman-3.0
|
|
|
|
PKGNAME= ja-man-doc-3.0
|
1996-12-07 13:24:42 +00:00
|
|
|
CATEGORIES= japanese
|
1998-03-20 16:30:30 +00:00
|
|
|
DISTFILES= # none
|
1996-12-07 13:24:42 +00:00
|
|
|
|
1998-04-26 22:05:17 +00:00
|
|
|
MAINTAINER= horikawa@jp.FreeBSD.org
|
1996-12-07 13:24:42 +00:00
|
|
|
|
1998-03-20 16:30:30 +00:00
|
|
|
PREFIX?= /usr
|
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_MTREE= yes
|
|
|
|
WRKSRC= ${WRKDIR}/man
|
1998-10-01 16:47:26 +00:00
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1998-03-20 16:30:30 +00:00
|
|
|
|
|
|
|
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}/ ; \
|
1998-10-01 16:47:26 +00:00
|
|
|
${ECHO} >>${WRKSRC}/man${sec}/Makefile; \
|
|
|
|
${ECHO} pages-list: >>${WRKSRC}/man${sec}/Makefile; \
|
|
|
|
${ECHO} " @\$${ECHO} \$${MAN${sec}} \$${MLINKS}" \
|
|
|
|
>>${WRKSRC}/man${sec}/Makefile; \
|
1998-03-20 16:30:30 +00:00
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
|
1998-10-01 16:47:26 +00:00
|
|
|
post-build:
|
|
|
|
@${RM} -f ${PLIST}
|
|
|
|
@for sec in ${MANSECS}; do \
|
|
|
|
if [ -d ${WRKSRC}/man$${sec} ]; then \
|
|
|
|
cd ${WRKSRC}/man$${sec}; \
|
|
|
|
list=`${MAKE} pages-list`; \
|
|
|
|
set `${ECHO} $$list " "|${SED} 's/\.\([^.]*\) /.\1 \1 /g'`; \
|
|
|
|
while : ; do \
|
|
|
|
case $$# in \
|
|
|
|
0) break;; \
|
|
|
|
[1]) ${ECHO} "can not happen"; break;; \
|
|
|
|
esac; \
|
|
|
|
${ECHO} share/man/ja/man$$2/$$1.gz; shift 2; \
|
|
|
|
done; \
|
|
|
|
fi; \
|
|
|
|
done|sort|uniq >>${PLIST}
|
|
|
|
@${ECHO} "@exec ln -sf %D/share/man/ja %D/share/man/ja_JP.EUC" >>${PLIST}
|
|
|
|
@${ECHO} "@unexec ${RM} -f %D/share/man/ja_JP.EUC" >>${PLIST}
|
|
|
|
|
1998-03-20 16:30:30 +00:00
|
|
|
pre-install:
|
|
|
|
.for sec in ${MANSECS}
|
|
|
|
@${MKDIR} ${PREFIX}/share/man/ja/man${sec}
|
|
|
|
.endfor
|
1996-12-07 13:24:42 +00:00
|
|
|
|
1997-08-24 10:49:15 +00:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
|
1996-12-07 13:24:42 +00:00
|
|
|
.include <bsd.port.mk>
|