2006-10-24 09:25:45 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2006/10/24 07:25:45 rillig Exp $
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
DISTNAME= NetBSD1.3I-jman-19990531
|
|
|
|
PKGNAME= ja-man-19990531
|
2006-09-24 18:30:31 +02:00
|
|
|
PKGREVISION= 2
|
2002-05-31 15:01:23 +02:00
|
|
|
CATEGORIES= japanese misc
|
2006-10-04 23:47:16 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
2002-05-31 15:01:23 +02:00
|
|
|
|
2006-09-03 02:56:28 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:47:16 +02:00
|
|
|
HOMEPAGE= # ftp://ftp.spa.is.uec.ac.jp/pub/NetBSD/jman/index.html
|
2002-05-31 15:01:23 +02:00
|
|
|
COMMENT= Japanese on-line manual pages of NetBSD
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
DEPENDS+= ja-less>=332:../../misc/ja-less
|
2006-09-24 18:30:31 +02:00
|
|
|
DEPENDS+= ja-groff-0.99{,nb*}:../../textproc/ja-groff
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
JAMANDIR= ja_JP.EUC
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= JAMANDIR=${JAMANDIR:Q}
|
|
|
|
MAKE_ENV+= JAMANDIR=${JAMANDIR:Q}
|
2006-10-24 09:25:45 +02:00
|
|
|
MAKE_ENV+= PKGMANDIR=${PKGMANDIR}
|
|
|
|
MAKE_ENV+= ${BSD_MAKE_ENV}
|
|
|
|
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}/${JAMANDIR}
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
|
2006-10-24 09:25:45 +02:00
|
|
|
USE_TOOLS+= patch
|
2002-05-31 15:01:23 +02:00
|
|
|
MANCOMPRESSED_IF_MANZ= yes
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin etc share/groff/tmac
|
2006-10-24 09:25:45 +02:00
|
|
|
.for c in 1 2 3 4 5 6 7 8 9
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/${JAMANDIR}/cat${c}
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/${JAMANDIR}/man${c}
|
|
|
|
.endfor
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
post-extract:
|
2006-10-24 09:25:45 +02:00
|
|
|
cd ${PREFIX}/share/groff/tmac \
|
|
|
|
&& pax -wr tmac.andoc tmac.doc mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms ${WRKSRC}
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
post-patch:
|
2006-10-24 09:25:45 +02:00
|
|
|
patch -s -p2 -d ${WRKSRC}/mdoc < \
|
2002-05-31 15:01:23 +02:00
|
|
|
${WRKSRC}/jgroff-for-netbsd-jman.dif
|
|
|
|
|
|
|
|
do-build:
|
2006-10-24 09:25:45 +02:00
|
|
|
sed -e 's|$${BINDIR}|${PREFIX}/bin|g' \
|
2002-05-31 15:01:23 +02:00
|
|
|
-e 's|$${JMANCONFDIR}|${PREFIX}/etc|g' ${WRKSRC}/jman/jman.sh \
|
|
|
|
> ${WRKSRC}/jman/jman
|
2006-10-24 09:25:45 +02:00
|
|
|
sed -e 's|$${PREFIX}|${PREFIX}|g' \
|
2002-05-31 15:01:23 +02:00
|
|
|
-e 's|$${LOCALBASE}|${LOCALBASE}|g' \
|
|
|
|
-e 's|$${X11BASE}|${X11BASE}|g' \
|
|
|
|
-e 's|$${JAMANDIR}|${JAMANDIR}|g' \
|
|
|
|
${WRKSRC}/jman/jman.conf \
|
|
|
|
> ${WRKSRC}/jman/jman.conf.t
|
|
|
|
|
|
|
|
MKCATPAGES?= yes
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
.if ${MKCATPAGES} == no
|
2006-10-24 09:25:45 +02:00
|
|
|
sed -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST > ${PLIST_SRC}
|
2002-05-31 15:01:23 +02:00
|
|
|
.if exists(${PKGDIR}/PLIST.${MACHINE})
|
2006-10-24 09:25:45 +02:00
|
|
|
sed -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
|
2002-05-31 15:01:23 +02:00
|
|
|
.endif
|
|
|
|
.else
|
2006-10-24 09:25:45 +02:00
|
|
|
cp ${PKGDIR}/PLIST ${PLIST_SRC}
|
2002-05-31 15:01:23 +02:00
|
|
|
.if exists(${PKGDIR}/PLIST.${MACHINE})
|
2006-10-24 09:25:45 +02:00
|
|
|
cat ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
|
2002-05-31 15:01:23 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
for f in tmac.andoc tmac.doc \
|
|
|
|
mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${f} \
|
|
|
|
${PREFIX}/share/groff/tmac/$${f}j; \
|
|
|
|
done
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/jman/jman ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jman/jman.conf.t ${PREFIX}/etc/jman.conf
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jman
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jman
|
2006-10-24 09:25:45 +02:00
|
|
|
cd ${WRKSRC}/man && ${MAKE} ${MAKE_ENV} install
|
2002-05-31 15:01:23 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|