aboutsummaryrefslogtreecommitdiff
path: root/editors/ted
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-09-16 16:59:23 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-09-16 16:59:23 +0000
commitece7963da740ef2efe94227b8fbcb68cde9f54b4 (patch)
tree99f4e48abd3dabb5e94161d074976c763d7d6ceb /editors/ted
parent4fc13507dcdf7855203d5f86ddb0142729bcbe4c (diff)
downloadports-ece7963da740ef2efe94227b8fbcb68cde9f54b4.tar.gz
ports-ece7963da740ef2efe94227b8fbcb68cde9f54b4.zip
Notes
Diffstat (limited to 'editors/ted')
-rw-r--r--editors/ted/Makefile33
-rw-r--r--editors/ted/pkg-descr2
2 files changed, 21 insertions, 14 deletions
diff --git a/editors/ted/Makefile b/editors/ted/Makefile
index b106f21e4d0e..868d172983ef 100644
--- a/editors/ted/Makefile
+++ b/editors/ted/Makefile
@@ -7,9 +7,10 @@
PORTNAME= ted
PORTVERSION= 2.10
+PORTREVISION= 1
CATEGORIES= editors textproc print
MASTER_SITES= ftp://ftp.nluug.nl/pub/editors/ted/
-DISTNAME= ted-${PORTVERSION}.src
+EXTRACT_SUFX= .src.tar.gz
MAINTAINER= ports@FreeBSD.org
@@ -18,7 +19,13 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
+
+USE_X_PREFIX= yes
USE_MOTIF= yes
+GNU_CONFIGURE= yes
+CONFIGURE_WRKSRC= ${WRKSRC}/Ted
+CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
+CONFIGURE_ARGS= --with-MOTIF
ALL_TARGET= compile.shared
AFMDIR= ${PREFIX}/share/Ted/afm
@@ -34,22 +41,20 @@ post-patch:
-e 's,/usr/local/ind,${INDDIR},' \
-e 's,/usr/local/info,${INFODIR},' \
Ted.ad.sample >Ted
- for d in ${WRKSRC}/Ted ${WRKSRC}/appFrame; do \
- cd $$d && \
- ${MV} -f config.h.in config.h.in.bak && \
- ${ECHO} '#define PREFIX "${PREFIX}"' >config.h.in && \
- ${ECHO} '#define INFODIR "${INFODIR}"' >>config.h.in && \
- ${ECHO} '#define INDDIR "${INDDIR}"' >>config.h.in && \
- ${ECHO} '#define AFMDIR "${AFMDIR}"' >>config.h.in && \
- ${CAT} config.h.in.bak >>config.h.in; \
- done
+ ${PERL} -pi -e 's|/usr/apps|${LOCALBASE}|g' ${WRKSRC}/bitmap/configure
+
+post-configure:
+.for dir in appFrame appUtil bitmap ind libreg
+ cd ${WRKSRC}/${dir} && \
+ ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
+.endfor
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin/Ted
- ${MKDIR} ${AFMDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin
+ @${MKDIR} ${AFMDIR}
${INSTALL_DATA} ${WRKSRC}/tedPackage/afm/* ${AFMDIR}
- ${MKDIR} ${INDDIR}
- ${MKDIR} ${INFODIR}
+ @${MKDIR} ${INDDIR}
+ @${MKDIR} ${INFODIR}
${INSTALL_DATA} ${WRKSRC}/tedPackage/info/TedDocument.rtf ${INFODIR}
${INSTALL_DATA} ${WRKSRC}/tedPackage/info/Ted ${PREFIX}/lib/X11/app-defaults
diff --git a/editors/ted/pkg-descr b/editors/ted/pkg-descr
index 980eb5bed829..0dc689480d4c 100644
--- a/editors/ted/pkg-descr
+++ b/editors/ted/pkg-descr
@@ -21,3 +21,5 @@ Features
* Symbols and accented characters are fully supported.
* Hyperlinks.
* Saving a document in HTML format.
+
+WWW: http://www.nllgg.nl/Ted/