2012-09-28 23:24:30 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2012/09/28 21:24:36 asau Exp $
|
2010-11-11 23:42:06 +01:00
|
|
|
#
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
DISTNAME= eng-fra
|
|
|
|
PKGNAME= dict-freedict-${DISTNAME}-0.0.3
|
2010-01-02 18:22:01 +01:00
|
|
|
PKGREVISION= 1
|
2006-12-15 23:10:37 +01:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freedict/}
|
|
|
|
|
2011-10-09 12:05:43 +02:00
|
|
|
MAINTAINER= cheusov@NetBSD.org
|
2010-11-11 23:42:06 +01:00
|
|
|
HOMEPAGE= http://www.freedict.org/
|
2006-12-15 23:10:37 +01:00
|
|
|
COMMENT= DICTD data for FreeDict English-French dictionary
|
2012-06-15 02:01:34 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
DICTSRCNAME= ${DISTNAME}
|
|
|
|
|
2008-04-14 21:34:59 +02:00
|
|
|
USE_TOOLS+= gzip
|
2006-12-15 23:10:37 +01:00
|
|
|
|
2010-01-02 18:22:01 +01:00
|
|
|
DEPENDS+= dict-server>=1.9.14:../../textproc/dict-server
|
|
|
|
BUILD_DEPENDS+= dict-server>=1.10.2:../../textproc/dict-server
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
DICTD_DB_DIR= ${PREFIX}/share/dictd
|
2008-04-14 21:34:59 +02:00
|
|
|
INSTALLATION_DIRS+= ${DICTD_DB_DIR}
|
2006-12-15 23:10:37 +01:00
|
|
|
|
2008-04-14 21:34:59 +02:00
|
|
|
WRKSRC= ${WRKDIR}/bin
|
2006-12-15 23:10:37 +01:00
|
|
|
|
2008-04-14 21:34:59 +02:00
|
|
|
DICTNAME= freedict_${DICTSRCNAME}
|
|
|
|
FILES= ${DICTNAME}.index ${DICTNAME}.dict.dz
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2006-12-15 23:20:09 +01:00
|
|
|
gzip -dc ${DICTSRCNAME}.dict.dz > ${DICTSRCNAME}.dict && \
|
2008-04-14 21:57:40 +02:00
|
|
|
${PREFIX}/bin/dictunformat ${DICTSRCNAME}.index \
|
2006-12-15 23:20:09 +01:00
|
|
|
< ${DICTSRCNAME}.dict > dict.c5 && \
|
2008-04-14 21:57:40 +02:00
|
|
|
${PREFIX}/bin/dictfmt -t --utf8 ${DICTNAME} < dict.c5 && \
|
|
|
|
${PREFIX}/bin/dictzip ${DICTNAME}.dict
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-04-14 21:34:59 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${FILES} ${DESTDIR}${DICTD_DB_DIR}
|
2006-12-15 23:10:37 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|