2001-07-04 05:33:26 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2001/07/04 03:33:26 jlam Exp $
|
2001-05-14 16:42:19 +02:00
|
|
|
|
2001-05-19 19:18:41 +02:00
|
|
|
DISTNAME= ted-2.10.src
|
|
|
|
PKGNAME= ted-2.10
|
|
|
|
WRKSRC= ${WRKDIR}/Ted-2.10
|
2001-05-14 16:42:19 +02:00
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ftp://ftp.nluug.nl/pub/editors/ted/ \
|
|
|
|
ftp://metalab.unc.edu/pub/packages/editors/ted/
|
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.nllgg.nl/Ted/
|
|
|
|
COMMENT= X11 based WordPad-like word processor
|
|
|
|
|
|
|
|
USE_X11= YES
|
|
|
|
|
|
|
|
AFMDIR= ${PREFIX}/share/Ted/afm
|
|
|
|
INDDIR= ${PREFIX}/share/Ted/ind
|
|
|
|
INFODIR= ${PREFIX}/share/doc/Ted
|
|
|
|
|
|
|
|
MAKE_ENV+= DEF_PKGDIR='-DPKGDIR=\"${PREFIX}\"' \
|
|
|
|
DEF_AFMDIR='-DAFMDIR=\"${AFMDIR}\"' \
|
|
|
|
DEF_INDDIR='-DINDDIR=\"${INDDIR}\"' \
|
|
|
|
DEF_INFODIR='-DINFODIR=\"${INFODIR}\"'
|
|
|
|
|
2001-05-19 19:18:41 +02:00
|
|
|
ALL_TARGET= compile.shared
|
|
|
|
INSTALL_TARGET= install.shared
|
2001-05-14 16:42:19 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} ; ${GTAR} xf tedPackage/TedBindist.tar
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/info ; \
|
|
|
|
${SED} -e "s!Ted.afmDirectory:.*!Ted.afmDirectory:${AFMDIR}!g" \
|
|
|
|
-e "s!Ted.spellToolSystemDicts:.*!Ted.spellToolSystemDicts:${INDDIR}!g" \
|
|
|
|
-e "s!Ted.documentFileName:.*!Ted.documentFileName:${INFODIR}/TedDocument.rtf!g" \
|
|
|
|
Ted.ad.sample > Ted
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin/Ted
|
|
|
|
${INSTALL_DATA_DIR} ${AFMDIR}
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/afm/Courier-Bold.afm \
|
|
|
|
${WRKSRC}/afm/Courier-BoldOblique.afm \
|
|
|
|
${WRKSRC}/afm/Courier-Oblique.afm \
|
|
|
|
${WRKSRC}/afm/Courier.afm \
|
|
|
|
${WRKSRC}/afm/Helvetica-Bold.afm \
|
|
|
|
${WRKSRC}/afm/Helvetica-BoldOblique.afm \
|
|
|
|
${WRKSRC}/afm/Helvetica-Oblique.afm \
|
|
|
|
${WRKSRC}/afm/Helvetica.afm \
|
|
|
|
${WRKSRC}/afm/Symbol.afm \
|
|
|
|
${WRKSRC}/afm/Times-Bold.afm \
|
|
|
|
${WRKSRC}/afm/Times-BoldItalic.afm \
|
|
|
|
${WRKSRC}/afm/Times-Italic.afm \
|
|
|
|
${WRKSRC}/afm/Times-Roman.afm \
|
|
|
|
${AFMDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${INDDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.ind ${INDDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${INFODIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/info/TedDocument.rtf ${INFODIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/info/Ted ${PREFIX}/lib/X11/app-defaults \
|
|
|
|
|
2001-06-29 23:31:40 +02:00
|
|
|
.include "../../graphics/jpeg/buildlink.mk"
|
|
|
|
.include "../../graphics/png/buildlink.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink.mk"
|
|
|
|
.include "../../graphics/xpm/buildlink.mk"
|
2001-07-04 05:33:26 +02:00
|
|
|
.include "../../x11/lesstif/buildlink.mk"
|
2001-05-14 16:42:19 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|