2000-06-23 14:55:31 -04:00
|
|
|
# New ports collection makefile for: mypaedia - JIS X 4081 format version
|
|
|
|
# Date created: 00/02/21
|
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mypaedia-fpw
|
2000-08-24 12:27:09 -04:00
|
|
|
PORTVERSION= 1.4.1
|
2000-06-23 14:55:31 -04:00
|
|
|
CATEGORIES= japanese
|
|
|
|
MASTER_SITES= http://openlab.ring.gr.jp/edict/mypaedia-fpw/
|
|
|
|
DISTNAME= mypaedia-fpw${PORTVERSION}-src
|
|
|
|
|
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= fpwmake:${PORTSDIR}/japanese/freepwing \
|
|
|
|
catdump:${PORTSDIR}/japanese/epwutil \
|
|
|
|
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode
|
|
|
|
|
|
|
|
IS_INTERACTIVE= YES
|
|
|
|
RESTRICTED= "The original dictionary is not free"
|
|
|
|
WRKSRC= ${WRKDIR}/mypaedia-fpw${PORTVERSION}
|
2000-08-24 12:27:09 -04:00
|
|
|
DICT_PATH?= /cdrom
|
2000-06-23 14:55:31 -04:00
|
|
|
|
|
|
|
post-extract:
|
2000-08-24 12:27:09 -04:00
|
|
|
@if [ ! -f ${DICT_PATH}/INDEX/ITEM.DAT ]; then \
|
2000-06-23 14:55:31 -04:00
|
|
|
${ECHO} "###################################################"; \
|
|
|
|
${ECHO} "Specify a mount point for Mypaedia's CD-ROM"; \
|
|
|
|
${ECHO} "and excecute the following command again:"; \
|
2000-08-24 12:27:09 -04:00
|
|
|
${ECHO} " make DICT_PATH=${DICT_PATH}"; \
|
2000-06-23 14:55:31 -04:00
|
|
|
${ECHO} "###################################################"; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-build:
|
2000-08-24 12:27:09 -04:00
|
|
|
# cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH} > /dev/null; \
|
|
|
|
cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH}; \
|
2000-06-23 14:55:31 -04:00
|
|
|
fpwmake catalogs
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/dict/mypaedia-fpw/mypaedia/data
|
|
|
|
${MKDIR} ${PREFIX}/share/dict/mypaedia-fpw/mypaedia/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/honmon \
|
|
|
|
${PREFIX}/share/dict/mypaedia-fpw/mypaedia/data
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gai16f \
|
|
|
|
${PREFIX}/share/dict/mypaedia-fpw/mypaedia/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gai16h \
|
|
|
|
${PREFIX}/share/dict/mypaedia-fpw/mypaedia/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/mypaedia-fpw
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mypaedia-fpw
|
|
|
|
.for file in README.TXT README.PKG AUTHORS COPYING ChangeLog GAIJI.TXT TOBEDONE NEWS
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/mypaedia-fpw
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|