diff options
author | Satoshi Taoka <taoka@FreeBSD.org> | 2002-09-15 05:48:30 +0000 |
---|---|---|
committer | Satoshi Taoka <taoka@FreeBSD.org> | 2002-09-15 05:48:30 +0000 |
commit | 8ede6d055bdf6214746e6fad0ef90b2a978e2ee2 (patch) | |
tree | aa211293763c187535474a2749fe69820ca48048 /japanese/waeijiro-fpw/Makefile | |
parent | Update to version 1.4.3 (diff) |
Support the original dictionary EIJIRO included in a book sold by ALC Inc.
In the version, the dictionary files are archived in LHA format
Change ${ENV} to ${SETENV}
Submitted by: knu
Fix the dependency
Using FreePWING 1.4.3, deleting CR after NL is not necessary
So nkf is not necessary.
After FreePWING 1.4.2, catdump is used in FreePWING instead of
epwutil.
Notes
Notes:
svn path=/head/; revision=66344
Diffstat (limited to 'japanese/waeijiro-fpw/Makefile')
-rw-r--r-- | japanese/waeijiro-fpw/Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/japanese/waeijiro-fpw/Makefile b/japanese/waeijiro-fpw/Makefile index b53758e095b2..9f3c772444e0 100644 --- a/japanese/waeijiro-fpw/Makefile +++ b/japanese/waeijiro-fpw/Makefile @@ -14,7 +14,8 @@ MASTER_SITES= http://www.dsl.gr.jp/~tf/ MAINTAINER= taoka@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/share/doc/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing \ +BUILD_DEPENDS= ${LOCALBASE}/libexec/freepwing/catdump:${PORTSDIR}/japanese/freepwing \ + ${LOCALBASE}/share/doc/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode RESTRICTED= "The original dictionary is not free" @@ -22,10 +23,24 @@ NO_PACKAGE= "The original dictionary is not free" USE_GMAKE= yes DICT_PATH?= /cdrom SRCFILE?= waeiji52.txt -MAKE_ENV= SRC_DICT=${DICT_PATH}/${SRCFILE} + +# For eijiro included in a book sold by ALC Inc. +# (http://www.alc.co.jp/alcshop/eng/eijiro/) +.if exists(${DICT_PATH}/eijiro-original) +BUILD_DEPENDS+= lha:${PORTSDIR}/archivers/lha + +CDROM_PATH:= ${DICT_PATH} +DICT_PATH:= ${WRKDIR} +.else +CDROM_PATH= ${NONEXISTENT} +.endif + +MAKE_ARGS:= SRC_DICT=${DICT_PATH}/${SRCFILE} post-extract: - @if [ ! -f ${DICT_PATH}/${SRCFILE} ]; then \ + @if [ -f ${CDROM_PATH}/eijiro-original/*.exe ]; then \ + lha xiw=${WRKDIR} ${CDROM_PATH}/eijiro-original/*.exe '*/${SRCFILE}'; \ + elif [ ! -f ${DICT_PATH}/${SRCFILE} ]; then \ ${ECHO} "###################################################"; \ ${ECHO} "I cannot find a file ${DICT_PATH}/${SRCFILE}"; \ ${ECHO} "Specify the Waeijiro Dictionary file with the full path"; \ |