mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
446e12c2b7
Failure log is in the PR PR: ports/184205 Submitted by: Tsurutani Naoki
77 lines
2.4 KiB
Makefile
77 lines
2.4 KiB
Makefile
# Created by: Satoshi Taoka <taoka@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= eijiro-fpw
|
|
PORTVERSION= 1.0b
|
|
PORTREVISION= 4
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/eijiro/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}-src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= EIJIRO English - Japanese Dictionary (EPWING V1 format)
|
|
|
|
EXTRACT_DEPENDS=${LOCALBASE}/share/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing
|
|
BUILD_DEPENDS= ${LOCALBASE}/libexec/freepwing/catdump:${PORTSDIR}/japanese/freepwing \
|
|
ja-p5-Jcode>=0:${PORTSDIR}/japanese/p5-Jcode
|
|
|
|
MANUAL_PACKAGE_BUILD=Needs data from CDROM
|
|
RESTRICTED= The original dictionary is not free
|
|
USES= perl5
|
|
USE_GMAKE= yes
|
|
MAKE_JOBS_UNSAFE=yes
|
|
WRKSRC= ${WRKDIR}/eijiro-fpw${PORTVERSION}
|
|
DICT_PATH?= /cdrom
|
|
SRCFILE?= eijiro52.txt
|
|
|
|
# For eijiro included in a book sold by ALC Inc.
|
|
# (http://www.alc.co.jp/alcshop/eng/eijiro/)
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
DICT_ARCHIVE!= ${ECHO_CMD} ${DICT_PATH}/eijiro-original/*.exe || ${TRUE}
|
|
.if exists(${DICT_ARCHIVE})
|
|
EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha
|
|
|
|
CDROM_PATH:= ${DICT_PATH}
|
|
DICT_PATH:= ${WRKDIR}
|
|
.else
|
|
CDROM_PATH= ${NONEXISTENT}
|
|
.endif
|
|
|
|
MAKE_ARGS:= SRCFILE=${DICT_PATH}/${SRCFILE}
|
|
|
|
post-extract:
|
|
@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 Eijiro Dictionary file with the full path"; \
|
|
${ECHO} "and excecute the following command again:"; \
|
|
${ECHO} " make DICT_PATH=${DICT_PATH} SRCFILE=${SRCFILE}"; \
|
|
${ECHO} ""; \
|
|
${ECHO} "Notice: DICT_PATH must be a full path to the file."; \
|
|
${ECHO} "###################################################"; \
|
|
${FALSE}; \
|
|
fi
|
|
${CP} ${LOCALBASE}/share/freepwing/fpwutils.mk ${WRKSRC}
|
|
|
|
post-build:
|
|
cd ${WRKSRC}; ${CP} catalogs.sjis catalogs.txt; \
|
|
${SETENV} CATDUMPFLAGS="-e sjis" fpwmake catalogs
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/share/dict/eijiro-fpw/eijiro/data
|
|
${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/eijiro-fpw/eijiro/data
|
|
${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/eijiro-fpw
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in readme.sjis
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|