aboutsummaryrefslogtreecommitdiffstats
path: root/editors/ted
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-11-30 07:35:25 +0800
committeredwin <edwin@FreeBSD.org>2005-11-30 07:35:25 +0800
commitc893246a9095a69825a00c9a21fa40a4062b6409 (patch)
treef6512f6a7dc2b5cd7842c6ad060af99a806bc892 /editors/ted
parent8f295ffa34a37dc15c60a7d747ba2e4bef718661 (diff)
downloadfreebsd-ports-graphics-c893246a9095a69825a00c9a21fa40a4062b6409.tar.gz
freebsd-ports-graphics-c893246a9095a69825a00c9a21fa40a4062b6409.tar.zst
freebsd-ports-graphics-c893246a9095a69825a00c9a21fa40a4062b6409.zip
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>
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 b39283c41ee..2d3d635187e 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 00000000000..126cf6a0306
--- /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