pkgsrc/misc/latin-words-bin/Makefile
jlam 39843c2c61 Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-04 19:21:10 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2008/03/04 19:21:11 jlam Exp $
#
DISTNAME= words-1.97-linux
PKGNAME= latin-words-bin-1.97
PKGREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://petrus.thomasaquinas.edu/pub/linux/words/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://users.erols.com/whitaker/wordslux.htm
COMMENT= Latin-to-English dictionary program (Linux binary)
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/words-1.97
INSTALLATION_DIRS= bin libexec
do-build:
${SED} -e "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/latin-words.sh \
> ${WRKSRC}/latin-words
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/latin-words ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/words \
${DESTDIR}${PREFIX}/libexec/latin-words
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libdata/latin-words
.for f in ADDONS.LAT DICTFILE.GEN INDXFILE.GEN INFLECTS.SEC \
STEMFILE.GEN UNIQUES.LAT
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/libdata/latin-words
.endfor
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/latin-words
.for f in README wordsdoc.html wordsdoc.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/latin-words
.endfor
.include "../../mk/bsd.pkg.mk"