freebsd-ports/japanese/wdic-fpw/Makefile
2001-02-06 13:22:00 +00:00

70 lines
2.5 KiB
Makefile

# New ports collection makefile for: wdic - JIS X 4081 format version
# Date created: 2000.07.12
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= wdic-fpw
PORTVERSION= ${SCRPT_VERSION}
CATEGORIES= japanese
MASTER_SITES= http://www.infonets.hiroshima-u.ac.jp/~taoka/FreeBSD/ports/ \
http://www.wdic.org/file/ \
http://openlab.ring.gr.jp/edict/fpw/dist/wdic/
DISTNAME= ${PORTNAME}${PORTVERSION}-src
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DICTFILES}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= taoka@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/share/doc/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing \
catdump:${PORTSDIR}/japanese/epwutil \
lha:${PORTSDIR}/archivers/lha \
nkf:${PORTSDIR}/japanese/nkf \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode
# ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/NKF.pm:${PORTSDIR}/japanese/p5-nkf
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
DICT_VERSION= 002
SCRPT_VERSION= 1.1b
DICTFILES= wdc${DICT_VERSION}.lzh wdc00p12.lzh
post-extract:
${MKDIR} ${WRKSRC}/wdic${DICT_VERSION}
${CP} ${LOCALBASE}/share/doc/freepwing/fpwutils.mk ${WRKSRC}
cd ${WRKSRC}/wdic${DICT_VERSION}; \
for i in ${DICTFILES}; do \
echo $$i; \
lha xf ${DISTDIR}/$$i; \
done
# In using lha-1.14f, characters of each filenames can be used uppercases, but
# in lha-1.14g, all are only used lowercases. ??
.for i in WDIC.MAN TECH.DIC TEL.DIC RAIL.DIC ORG.DIC STD.DIC \
COMM.DIC INFO.DIC MISC.DIC MOE1.DIC RCMP.DIC MOE2.DIC PASO.DIC \
TRAN.DIC ELEC.DIC GAME.DIC SOFT.DIC YOGO.DIC KNOW.DIC DEV.DIC
t=`${ECHO} $i | ${SED} "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"`; \
if [ ! -f ${WRKSRC}/wdic${DICT_VERSION}/$i ]; then \
${MV} ${WRKSRC}/wdic${DICT_VERSION}/$$t ${WRKSRC}/wdic${DICT_VERSION}/$i; \
fi
.endfor
post-build:
cd ${WRKSRC}; nkf -eSd catalogs.sjis > catalogs.txt; \
catdump -u catalogs.txt catalogs
do-install:
${MKDIR} ${PREFIX}/share/dict/wdic-fpw/wdic/data
${MKDIR} ${PREFIX}/share/dict/wdic-fpw/wdic/gaiji
${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/wdic-fpw/wdic/data
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/wdic-fpw
${INSTALL_DATA} ${WRKSRC}/gai16h ${PREFIX}/share/dict/wdic-fpw/wdic/gaiji
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/wdic-fpw
${INSTALL_DATA} ${WRKSRC}/readme.1st ${PREFIX}/share/doc/wdic-fpw
${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/wdic-fpw
.endif
.include <bsd.port.mk>