d52303ea80
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories starting with 'e'.
87 lines
2.6 KiB
Makefile
87 lines
2.6 KiB
Makefile
# Created by: Kris Kennaway <kris@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ted
|
|
PORTVERSION= 2.23
|
|
PORTREVISION= 5
|
|
CATEGORIES= editors
|
|
MASTER_SITES= ftp://ftp.nluug.nl/pub/editors/ted/ \
|
|
http://fossies.org/linux/misc/
|
|
EXTRACT_SUFX= .src.tar.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= X11 based RTF editor
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/gpl.txt
|
|
|
|
LIB_DEPENDS= libpcre.so:devel/pcre \
|
|
libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff \
|
|
libpaper.so:print/libpaper
|
|
RUN_DEPENDS= gsfonts>0:print/gsfonts
|
|
|
|
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
|
|
|
|
USES= ghostscript:x11,run iconv pkgconfig xorg
|
|
USE_XORG= xext xft
|
|
GNU_CONFIGURE= yes
|
|
MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}/\\\"\"" \
|
|
DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}/\\\"\"" \
|
|
DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\"" \
|
|
DEF_PSSCRIPT_DIR="-DPSSCRIPT_DIR=\"\\\"${DATADIR}/\\\"\""
|
|
ALL_TARGET= compile.shared
|
|
CONFIGURE_ARGS= --datadir=${PREFIX}/share \
|
|
ac_iconv_includes=${LOCALBASE}/include
|
|
|
|
DATADIR= ${PREFIX}/share/Ted
|
|
DOCSDIR= ${PREFIX}/share/doc/Ted
|
|
|
|
AFMDIR= ${DATADIR}/afm
|
|
INDDIR= ${DATADIR}/dfa
|
|
|
|
OPTIONS_DEFINE= GTK2 DOCS
|
|
GTK2_DESC= Use GTK2 instead of MOTIF
|
|
GTK2_USES= gnome
|
|
GTK2_USE= GNOME=gtk20
|
|
GTK2_CONFIGURE_ON= --with-GTK
|
|
GTK2_CPPFLAGS= `pkg-config --cflags gtk+-2.0 | ${SED} -e 's|-I|-isystem |g'`
|
|
GTK2_USES_OFF= motif
|
|
GTK2_CONFIGURE_OFF= --with-MOTIF
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC}/tedPackage && ${TAR} xf TedDatadir.tar
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/configure ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "configure" -print0 | ${XARGS} -0 \
|
|
${REINPLACE_CMD} -e \
|
|
's|/usr/X11R6|${LOCALBASE}|g ; \
|
|
s|/usr/local|${LOCALBASE}|g ; \
|
|
/paper.h/s|/usr/include|${LOCALBASE}/include|g ; \
|
|
/paper.h/s|/usr/lib|${LOCALBASE}/lib|g'
|
|
.if ! empty(ICONV_LIB)
|
|
@${REINPLACE_CMD} 's|/iconv\.so|/libiconv.so|' \
|
|
${WRKSRC}/Ted/configure ${WRKSRC}/textEncoding/configure
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tedPackage/examples/rtf2*.sh ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/tedPackage/doc/Ted.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/tedPackage/doc/rtf2*.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/ps/*.ps ${STAGEDIR}${DATADIR}
|
|
@${MKDIR} ${STAGEDIR}${AFMDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/afm/*.afm ${STAGEDIR}${AFMDIR}
|
|
@${MKDIR} ${STAGEDIR}${INDDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/dfa/*.dfa ${STAGEDIR}${INDDIR}
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/tedPackage/TedDocument-en_US.rtf ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|