blob: d389db12eff1b40756820fd9b219256e8f444294 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.10 2000/08/23 23:14:31 tron Exp $
DISTNAME= ted-2.8.src
PKGNAME= ted-2.8
WRKSRC= ${WRKDIR}/Ted-2.8
CATEGORIES= textproc
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/
DEPENDS+= libungif-*:../../graphics/libungif
DEPENDS+= jpeg-6b:../../graphics/jpeg
DEPENDS+= png>=1.0.6:../../graphics/png
DEPENDS+= tiff-*:../../graphics/tiff
USE_MOTIF= YES
USE_X11= YES
USE_XPM= 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}\"'
ALL_TARGET= compile
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 \
.include "../../mk/bsd.pkg.mk"
|