From c893246a9095a69825a00c9a21fa40a4062b6409 Mon Sep 17 00:00:00 2001 From: edwin Date: Tue, 29 Nov 2005 23:35:25 +0000 Subject: editors/ted - Fix LOCALBASE/X11BASE settings Fix port so that it respects LOCALBASE/X11BASE settings. PR: ports/89602 Submitted by: Jonathan Approved by: Jon Drews --- editors/ted/Makefile | 9 +++++---- editors/ted/files/configure | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 editors/ted/files/configure (limited to 'editors/ted') 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 -- cgit