1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/japanese/srd-fpw/Makefile
Philip M. Gollucci c10f314307 - lang/perl5.6 is dead, remove PERL_LEVEL/PERL_VERSION < 500801 checks
PR:             ports/135398
Tested by:      2 -exp runs by pav
Approved by:    portmgr (pav)
2009-07-22 16:27:08 +00:00

66 lines
2.0 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.5
PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/srd/
DISTNAME= srd-fpw${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= A English - Japanese Dictionary "Random House" (EPWING V1 format)
BUILD_DEPENDS= fpwmake:${PORTSDIR}/japanese/freepwing \
${JCODE}:${PORTSDIR}/japanese/p5-Jcode
IS_INTERACTIVE= YES
RESTRICTED= "The original dictionary is not free"
USE_PERL5= yes
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} "or a directory which you copied it from the CD-ROM".; \
${ECHO} "And excecute the following command again:"; \
${ECHO} " make DICT_PATH=${DICT_PATH}"; \
${ECHO} "###################################################"; \
${FALSE}; \
fi
do-build:
# cd ${WRKSRC}; fpwmake SRCDIR=${DICT_PATH} > /dev/null; \
cd ${WRKSRC}; \
fpwmake SRCDIR=${DICT_PATH} png; \
fpwmake SRCDIR=${DICT_PATH}; \
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} ${DOCSDIR}
.for file in AUTHORS COPYING ChangeLog GAIJI.TXT NEWS README.PKG README.TXT TOBEDONE
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
JCODE= ${SITE_PERL}/Jcode.pm
.include <bsd.port.mk>