summaryrefslogtreecommitdiff
path: root/editors/ted
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-11-29 23:35:25 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-11-29 23:35:25 +0000
commitdaee4387860c0730a8c806b87842bbe04852d3ca (patch)
treec42fe6198631db64384ed4e35e6718b82b9667e5 /editors/ted
parentMinor fix to the patch file in net/xbone-gui (diff)
editors/ted - Fix LOCALBASE/X11BASE settings
Fix port so that it respects LOCALBASE/X11BASE settings. PR: ports/89602 Submitted by: Jonathan <jdrews@cybox.com> Approved by: Jon Drews <jon.drews@gmail.com>
Notes
Notes: svn path=/head/; revision=149974
Diffstat (limited to 'editors/ted')
-rw-r--r--editors/ted/Makefile9
-rw-r--r--editors/ted/files/configure11
2 files changed, 16 insertions, 4 deletions
diff --git a/editors/ted/Makefile b/editors/ted/Makefile
index b39283c41eef..2d3d635187e8 100644
--- a/editors/ted/Makefile
+++ b/editors/ted/Makefile
@@ -19,16 +19,14 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
-CONFIGURE_WRKSRC= ${WRKSRC}/Ted
USE_X_PREFIX= yes
USE_MOTIF= yes
USE_REINPLACE= yes
+USE_GHOSTSCRIPT_RUN= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
-MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
+MAKE_ENV+= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \
DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\""
ALL_TARGET= compile.shared
@@ -38,7 +36,10 @@ INDDIR= ${PREFIX}/share/Ted/ind
post-extract:
cd ${WRKSRC}/tedPackage && ${TAR} xf TedBindist.tar
+
post-patch:
+ ${CP} -p ${FILESDIR}/configure ${WRKSRC}/configure
+ ${CHMOD} +x ${WRKSRC}/configure
${REINPLACE_CMD} \
's|DEF_PKGDIR|DEF_DOCUMENT_DIR|g' ${WRKSRC}/Ted/makefile.in
diff --git a/editors/ted/files/configure b/editors/ted/files/configure
new file mode 100644
index 000000000000..126cf6a0306e
--- /dev/null
+++ b/editors/ted/files/configure
@@ -0,0 +1,11 @@
+@ -0,0 +1,10 @@
+#!/bin/sh
+
+dirs="Ted appFrame appUtil bitmap ind libreg tedPackage"
+
+for d in $dirs; do
+ (cd $d && ./configure $*)
+ if [ $? != 0 ]; then
+ exit $?
+ fi
+done