pkgsrc-wip/dict-freedict-eng-fra/Makefile

42 lines
1.1 KiB
Makefile
Raw Normal View History

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