2000-06-23 19:04:06 +00:00
|
|
|
# New ports collection makefile for: srd - JIS X 4081 format version
|
|
|
|
# Date created: 00/06/14
|
|
|
|
# Whom: Satoshi Taoka <taoka@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= srd-fpw
|
2002-09-10 08:36:46 +00:00
|
|
|
PORTVERSION= 1.1.5
|
2004-03-03 16:19:47 +00:00
|
|
|
PORTREVISION= 2
|
2000-06-23 19:04:06 +00:00
|
|
|
CATEGORIES= japanese
|
2001-01-23 16:05:28 +00:00
|
|
|
MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/srd/
|
2000-06-23 19:04:06 +00:00
|
|
|
DISTNAME= srd-fpw${PORTVERSION}-src
|
|
|
|
|
2004-12-23 09:32:50 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A English - Japanese Dictionary "Random House" (EPWING V1 format)
|
2000-06-23 19:04:06 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= fpwmake:${PORTSDIR}/japanese/freepwing \
|
2005-11-13 11:23:30 +00:00
|
|
|
${JCODE}:${PORTSDIR}/japanese/p5-Jcode
|
2000-06-23 19:04:06 +00:00
|
|
|
|
|
|
|
IS_INTERACTIVE= YES
|
|
|
|
RESTRICTED= "The original dictionary is not free"
|
|
|
|
WRKSRC= ${WRKDIR}/srd-fpw${PORTVERSION}
|
2000-08-25 00:54:39 +00:00
|
|
|
DICT_PATH?= /cdrom
|
2000-06-23 19:04:06 +00:00
|
|
|
|
|
|
|
post-extract:
|
2000-08-25 00:54:39 +00:00
|
|
|
@if [ ! -f ${DICT_PATH}/SRD.INI ]; then \
|
2000-06-23 19:04:06 +00:00
|
|
|
${ECHO} "###################################################"; \
|
|
|
|
${ECHO} "Specify a mount point for Random House's CD-ROM"; \
|
2000-09-06 12:19:11 +00:00
|
|
|
${ECHO} "or a directory which you copied it from the CD-ROM".; \
|
|
|
|
${ECHO} "And excecute the following command again:"; \
|
2000-08-25 00:54:39 +00:00
|
|
|
${ECHO} " make DICT_PATH=${DICT_PATH}"; \
|
2000-06-23 19:04:06 +00:00
|
|
|
${ECHO} "###################################################"; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-build:
|
2000-08-25 00:54:39 +00:00
|
|
|
# cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH} > /dev/null; \
|
|
|
|
cd ${WRKSRC}; \
|
2000-09-06 12:19:11 +00:00
|
|
|
fpwmake SRCDIR=${DICT_PATH} png; \
|
|
|
|
fpwmake SRCDIR=${DICT_PATH}; \
|
2000-06-23 19:04:06 +00:00
|
|
|
fpwmake catalogs
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/dict/srd-fpw/srd-fpw/data
|
|
|
|
${MKDIR} ${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/honmon \
|
|
|
|
${PREFIX}/share/dict/srd-fpw/srd-fpw/data
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gai16f \
|
|
|
|
${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gai16h \
|
|
|
|
${PREFIX}/share/dict/srd-fpw/srd-fpw/gaiji
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/srd-fpw
|
2000-08-25 00:54:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/img.dat ${PREFIX}/share/dict/srd-fpw
|
2000-06-23 19:04:06 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-03-03 16:19:47 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2002-09-10 08:36:46 +00:00
|
|
|
.for file in AUTHORS COPYING ChangeLog GAIJI.TXT NEWS README.PKG README.TXT TOBEDONE
|
2004-03-03 16:19:47 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2000-06-23 19:04:06 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2005-11-13 11:23:30 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500801
|
|
|
|
JCODE= ${SITE_PERL}/${PERL_ARCH}/Jcode.pm
|
|
|
|
.else
|
|
|
|
JCODE= ${SITE_PERL}/Jcode.pm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|