pkgsrc-wip/dict-freedict-eng-fra/Makefile
Aleksej Saushev f5c1a93609 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Mark packages that don't or might probably not have staged installation.
2012-09-28 21:24:30 +00:00

41 lines
1.1 KiB
Makefile

# $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/}
MAINTAINER= cheusov@NetBSD.org
HOMEPAGE= http://www.freedict.org/
COMMENT= DICTD data for FreeDict English-French dictionary
LICENSE= gnu-gpl-v2
DICTSRCNAME= ${DISTNAME}
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
INSTALLATION_DIRS+= ${DICTD_DB_DIR}
WRKSRC= ${WRKDIR}/bin
DICTNAME= freedict_${DICTSRCNAME}
FILES= ${DICTNAME}.index ${DICTNAME}.dict.dz
do-build:
cd ${WRKSRC} && \
gzip -dc ${DICTSRCNAME}.dict.dz > ${DICTSRCNAME}.dict && \
${PREFIX}/bin/dictunformat ${DICTSRCNAME}.index \
< ${DICTSRCNAME}.dict > dict.c5 && \
${PREFIX}/bin/dictfmt -t --utf8 ${DICTNAME} < dict.c5 && \
${PREFIX}/bin/dictzip ${DICTNAME}.dict
do-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${FILES} ${DESTDIR}${DICTD_DB_DIR}
.include "../../mk/bsd.pkg.mk"