diff options
author | kuriyama <kuriyama@FreeBSD.org> | 1998-05-30 09:36:05 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 1998-05-30 09:36:05 +0800 |
commit | 6601d8cb8d3f9db89e2456fb1a81725dff213c53 (patch) | |
tree | 6dee6c50dbd7af7366734d0ec0fd7bb486f426dd /japanese/edict/Makefile | |
parent | 4bad584830bc09dd06ae416e892b1d298e3c8384 (diff) | |
download | freebsd-ports-gnome-6601d8cb8d3f9db89e2456fb1a81725dff213c53.tar.gz freebsd-ports-gnome-6601d8cb8d3f9db89e2456fb1a81725dff213c53.tar.zst freebsd-ports-gnome-6601d8cb8d3f9db89e2456fb1a81725dff213c53.zip |
Japanse-English dictionaries with access and maintenance utilities.
PR: ports/4643
Submitted by: Jonathan Hanna <jhanna@imtcomsys.bc.ca>
Diffstat (limited to 'japanese/edict/Makefile')
-rw-r--r-- | japanese/edict/Makefile | 192 |
1 files changed, 192 insertions, 0 deletions
diff --git a/japanese/edict/Makefile b/japanese/edict/Makefile new file mode 100644 index 000000000000..f8dc6bceae86 --- /dev/null +++ b/japanese/edict/Makefile @@ -0,0 +1,192 @@ +# New ports collection makefile for: edict +# Version required: 19980409 +# Date created: 18 August 1997 +# Whom: Jonathan Hanna +# +# $Id$ +# + +DISTNAME= edict-19980409 +PKGNAME= ja-edict-19980409 +CATEGORIES= japanese +MASTER_SITES= ftp://ftp.cc.monash.edu.au/pub/nihongo/ +MASTER_SITES+= ftp://enterprise.ic.gc.ca/pub/nihongo/ +MASTER_SITES+= ftp://ftp.cdrom.com/pub/japanese/monash/ +MASTER_SITES+= ftp://kuso.shef.ac.uk/pub/japanese/monash/ +MASTER_SITES+= ftp://ftp.uwtc.washington.edu/pub/Japanese/Monash/ +EXTRACT_SUFX= +DISTFILES= ${DICTFILES} ${SRCFILES} ${DOCFILES} + +MAINTAINER= jhanna@rogers.wave.ca + +BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip + +DIST_SUBDIR= edict + +DOCFILES= edict.doc +DOCFILES+= edicth.doc +DOCFILES+= enamdict.doc +DOCFILES+= compdic.doc +DOCFILES+= jddict.doc +DOCFILES+= kanjidic.doc +DOCFILES+= lifscdic.doc +DOCFILES+= lawgldoc.new +DOCFILES+= geodic.doc +DOCFILES+= aviation.doc +DOCFILES+= findic.doc +DOCFILES+= mktdic.doc +DOCFILES+= compverb.doc +DOCFILES+= 4jwords.doc + +DICTFILES= edict.gz +DICTFILES+= edicth +DICTFILES+= enamdict.gz +DICTFILES+= compdic.gz +DICTFILES+= jddict.v02.gz +DICTFILES+= lifscdic.Z +DICTFILES+= kanjidic.gz +DICTFILES+= lawgledt.zip +DICTFILES+= geodic.gz +DICTFILES+= pandpdic.zip +DICTFILES+= aviation.zip +DICTFILES+= findic.zip +DICTFILES+= mktdic.zip +DICTFILES+= compverb.gz +DICTFILES+= 4jwords.gz + +SRCFILES= xjdic22.tar.gz + +DOCFILES= edict.doc +DOCFILES+= edicth.doc +DOCFILES+= enamdict.doc +DOCFILES+= compdic.doc +DOCFILES+= jddict.doc +DOCFILES+= kanjidic.doc +DOCFILES+= lifscdic.doc +DOCFILES+= lawgldoc.new +DOCFILES+= geodic.doc +DOCFILES+= aviation.doc +DOCFILES+= findic.doc +DOCFILES+= mktdic.doc +DOCFILES+= compverb.doc +DOCFILES+= 4jwords.doc + +# +# These change too often and are not made into executables. +# +IGNOREFILES= $(DICTFILES) $(DOCFILES) + +BINFILES= exjdxgen +BINFILES+= xjdic22cl +BINFILES+= xjdic22sa +BINFILES+= xjdserver22 +BINFILES+= xjdxgen + +# Where to install the data files +DATADIR= ${PREFIX}/share/dict/edict +DOCDIR= ${PREFIX}/share/doc/xjdic + +NO_WRKSUBDIR= + +do-extract: +.if !defined(NO_WRKDIR) + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} +.endif + @for file in ${SRCFILES}; do \ + if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ + then \ + exit 1; \ + fi \ + done + +do-install: + @for file in ${BINFILES}; do \ + if ! ${INSTALL_PROGRAM} ${WRKDIR}/$$file ${PREFIX}/bin ;\ + then \ + exit 1; \ + fi \ + done + @if [ ! -d ${DATADIR} ] ; \ + then \ + ${MKDIR} ${DATADIR} ; \ + fi + @for file in ${DICTFILES}; do \ + case $$file in \ + *.gz) \ + instfile=`basename $$file .gz` ; \ + if ${GZIP_CMD} -cd ${_DISTDIR}/$$file > ${DATADIR}/$$instfile ; \ + then \ + true ; \ + else \ + exit 1; \ + fi \ + ;; \ + *.Z) \ + instfile=`basename $$file .Z` ; \ + if ${GZIP_CMD} -cd ${_DISTDIR}/$$file > ${DATADIR}/$$instfile ; \ + then \ + true ; \ + else \ + exit 1; \ + fi \ + ;; \ + *.zip) \ + instfile=`basename $$file .zip` ; \ + if unzip -o ${_DISTDIR}/$$file $$instfile -d ${DATADIR} ; \ + then \ + true ; \ + else \ + exit 1; \ + fi \ + ;; \ + *) \ + instfile=`basename $$file` ; \ + ${CP} ${_DISTDIR}/$$file ${DATADIR} ; \ + ;; \ + esac ; \ + ( \ + ${ECHO} cd ${DATADIR} ; \ + cd ${DATADIR} ; \ + ${ECHO} ${PREFIX}/bin/xjdxgen $$instfile ; \ + ${PREFIX}/bin/xjdxgen $$instfile ; \ + chown ${SHAREOWN}.${SHAREGRP} $$instfile $$instfile.xjdx; \ + chmod ${SHAREMODE} $$instfile $$instfile.xjdx ; \ + ) ; \ + done + ${RM} -f ${PREFIX}/bin/xjdic + ln -s ${PREFIX}/bin/xjdic22sa ${PREFIX}/bin/xjdic + ${INSTALL_DATA} ${WRKDIR}/radicals.tm ${DATADIR} ; + ${INSTALL_DATA} ${WRKDIR}/radkfile ${DATADIR} ; + ${INSTALL_DATA} ${WRKDIR}/kanjstroke ${DATADIR} ; + ${INSTALL_DATA} ${WRKDIR}/romkana.cnv ${DATADIR} ; + ${INSTALL_DATA} ${WRKDIR}/vconj ${DATADIR} ; + # + # Only 9 dictionaries can be enabled + # + @${ECHO} dicfile ${DATADIR}/edict > ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/enamdict >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/compdic >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/lifscdic >> ${DATADIR}/.xjdicrc + # @${ECHO} dicfile ${DATADIR}/jddict.v02 >> ${DATADIR}/.xjdicrc + # @${ECHO} dicfile ${DATADIR}/lawgledt >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/geodic >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/pandpdic >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/aviation >> ${DATADIR}/.xjdicrc + # @${ECHO} dicfile ${DATADIR}/findic >> ${DATADIR}/.xjdicrc + # @${ECHO} dicfile ${DATADIR}/mktdic >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/compverb >> ${DATADIR}/.xjdicrc + @${ECHO} dicfile ${DATADIR}/4jwords >> ${DATADIR}/.xjdicrc + @chown ${SHAREOWN}.${SHAREGRP} ${DATADIR}/.xjdicrc + @chmod ${SHAREMODE} ${DATADIR}/.xjdicrc + @if [ ! -d ${DOCDIR} ] ; \ + then \ + ${MKDIR} ${DOCDIR} ; \ + fi + ${INSTALL_MAN} ${WRKSRC}/xjdic22.doc ${DOCDIR} + @for docfile in ${DOCFILES} ; do \ + ${ECHO} Installing ${DOCDIR}/$$docfile ; \ + ${INSTALL_MAN} ${_DISTDIR}/$$docfile ${DOCDIR} ; \ + done + +.include <bsd.port.mk> |