mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
# 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
|
|
PORTVERSION= 1.1
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= http://openlab.ring.gr.jp/edict/srd-fpw/
|
|
DISTNAME= srd-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}/srd-fpw${PORTVERSION}
|
|
DICT_PATH?= /cdrom
|
|
|
|
post-extract:
|
|
@if [ ! -f ${DICT_PATH}/SRD.INI ]; then \
|
|
${ECHO} "###################################################"; \
|
|
${ECHO} "Specify a mount point for Random House's CD-ROM"; \
|
|
${ECHO} "and excecute the following command again:"; \
|
|
${ECHO} " make DICT_PATH=${DICT_PATH}"; \
|
|
${ECHO} "###################################################"; \
|
|
${FALSE}; \
|
|
fi
|
|
${MKDIR} ${WRKSRC}/source/DATA
|
|
${CP} ${DICT_PATH}/Readme.txt ${WRKSRC}/source
|
|
${CP} ${DICT_PATH}/DATA/main.txt ${WRKSRC}/source/DATA/
|
|
${CP} ${DICT_PATH}/DATA/en.dat ${WRKSRC}/source/DATA/
|
|
${CP} ${DICT_PATH}/DATA/tr.dat ${WRKSRC}/source/DATA/
|
|
${CP} ${DICT_PATH}/DATA/img.dat ${WRKSRC}/source/DATA/
|
|
|
|
do-build:
|
|
# cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH} > /dev/null; \
|
|
# cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH}; \
|
|
cd ${WRKSRC}; \
|
|
fpwmake png; \
|
|
fpwmake ; \
|
|
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
|
|
${INSTALL_DATA} ${WRKSRC}/img.dat ${PREFIX}/share/dict/srd-fpw
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/doc/srd-fpw
|
|
.for file in README.TXT README.PKG AUTHORS COPYING ChangeLog GAIJI.TXT TOBEDONE NEWS
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/srd-fpw
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|