2001-08-24 10:32:20 +02:00
|
|
|
# Ports collection makefile for: ted
|
|
|
|
# Date created: 23 Aug 2001
|
|
|
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ted
|
2005-02-26 01:21:09 +01:00
|
|
|
PORTVERSION= 2.17
|
|
|
|
CATEGORIES= editors
|
2001-08-24 10:32:20 +02:00
|
|
|
MASTER_SITES= ftp://ftp.nluug.nl/pub/editors/ted/
|
2001-09-16 18:59:23 +02:00
|
|
|
EXTRACT_SUFX= .src.tar.gz
|
2001-08-24 10:32:20 +02:00
|
|
|
|
2006-02-26 21:35:31 +01:00
|
|
|
MAINTAINER= ports@freebsd.org
|
2003-02-20 18:12:51 +01:00
|
|
|
COMMENT= X11 based RTF editor
|
2001-08-24 10:32:20 +02:00
|
|
|
|
2001-09-11 05:32:41 +02:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2001-08-24 10:32:20 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2004-06-17 10:18:55 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
|
2001-08-24 10:32:20 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
|
2001-09-16 18:59:23 +02:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2003-05-20 00:54:44 +02:00
|
|
|
USE_MOTIF= yes
|
2005-11-30 00:35:25 +01:00
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
2001-09-16 18:59:23 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-11-30 00:35:25 +01:00
|
|
|
MAKE_ENV+= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
|
2002-07-27 04:51:57 +02:00
|
|
|
DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \
|
2004-06-10 05:51:15 +02:00
|
|
|
DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\""
|
2001-08-24 10:32:20 +02:00
|
|
|
ALL_TARGET= compile.shared
|
|
|
|
|
|
|
|
AFMDIR= ${PREFIX}/share/Ted/afm
|
2003-06-18 04:34:27 +02:00
|
|
|
INDDIR= ${PREFIX}/share/Ted/ind
|
2001-08-24 10:32:20 +02:00
|
|
|
|
|
|
|
post-extract:
|
2001-09-11 12:06:02 +02:00
|
|
|
cd ${WRKSRC}/tedPackage && ${TAR} xf TedBindist.tar
|
2005-11-30 00:35:25 +01:00
|
|
|
|
2001-08-24 10:32:20 +02:00
|
|
|
post-patch:
|
2005-11-30 00:35:25 +01:00
|
|
|
${CP} -p ${FILESDIR}/configure ${WRKSRC}/configure
|
|
|
|
${CHMOD} +x ${WRKSRC}/configure
|
2002-07-27 04:51:57 +02:00
|
|
|
${REINPLACE_CMD} \
|
|
|
|
's|DEF_PKGDIR|DEF_DOCUMENT_DIR|g' ${WRKSRC}/Ted/makefile.in
|
2001-09-16 18:59:23 +02:00
|
|
|
|
2001-08-24 10:32:20 +02:00
|
|
|
do-install:
|
2001-09-16 18:59:23 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin
|
2005-02-26 01:21:09 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tedPackage/Ted/rtf2*.sh ${PREFIX}/bin/
|
2001-09-16 18:59:23 +02:00
|
|
|
@${MKDIR} ${AFMDIR}
|
2001-08-24 10:32:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/afm/* ${AFMDIR}
|
2001-09-16 18:59:23 +02:00
|
|
|
@${MKDIR} ${INDDIR}
|
2002-07-27 04:51:57 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/ind/US_English.ind ${INDDIR}
|
2001-08-24 10:32:20 +02:00
|
|
|
|
2004-06-10 05:51:15 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tedPackage/Ted/TedDocument-en_US.rtf ${DOCSDIR}
|
|
|
|
.endif
|
2001-08-24 10:32:20 +02:00
|
|
|
.include <bsd.port.mk>
|