ports/89602: Fix LOCALBASE/X11BASE settings
Jonathan
jdrews at cybox.com
Sat Nov 26 19:50:22 UTC 2005
>Number: 89602
>Category: ports
>Synopsis: Fix LOCALBASE/X11BASE settings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 26 19:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Jonathan
>Release: FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
System: FreeBSD notebook2.silbsd.org 6.0-RC1 FreeBSD 6.0-RC1 #0: Wed Oct
26 16:21:00 MDT 2005
root at notebook2.silbsd.org:/usr/obj/usr/src/sys/NOTEBOOKB i386
>Description:
Fix port so that it respects LOCALBASE/X11BASE settings.
>How-To-Repeat:
If a location other than /usr/X11R6/ were used, then the port would not
compile.
>Fix:
Apply the following patches:
--- /dev/null Sat Nov 26 12:22:00 2005
+++ files/configure Mon Nov 21 20:09:25 2005
@@ -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
--- Makefile Mon Apr 11 21:25:23 2005
+++ /usr/ports/editors/ted/Makefile Mon Nov 21 20:33:07 2005
@@ -19,16 +19,19 @@
RUN_DEPENDS=
${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
-CONFIGURE_WRKSRC= ${WRKSRC}/Ted
+# CONFIGURE_WRKSRC= ${WRKSRC}/Ted
USE_X_PREFIX= yes
USE_MOTIF= yes
+USE_GHOSTSCRIPT_RUN= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --prefix=${PREFIX}
+# CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
-MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
+# CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
+
+# use += for MAKE_ENV ?
+MAKE_ENV+= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \
DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\""
ALL_TARGET= compile.shared
@@ -39,6 +42,8 @@
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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list