ports/113385: [PATCH] chinese/zhcon: Respect alternate LOCALBASE
Tim Bishop
tdb at FreeBSD.org
Tue Jun 5 18:50:04 UTC 2007
>Number: 113385
>Category: ports
>Synopsis: [PATCH] chinese/zhcon: Respect alternate LOCALBASE
>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: Tue Jun 05 18:50:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Tim Bishop
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD pendennis.kent.ac.uk 6.2-STABLE FreeBSD 6.2-STABLE #4: Sun May 20 17:30:14 BST 2007
>Description:
Respect alternate LOCALBASE.
The problem is this part of the configure script:
i?86-*-freebsd*)
echo "FreeBsd detected"
ZHCON_ARCH="FreeBSD"
LIBS="-L/usr/local/lib $LIBS"
CFLAGS="$CFLAGS -I/usr/local/include"
CXXFLAGS="$CXXFLAGS -I/usr/local/include";;
By setting CPPFLAGS and LDFLAGS in the port Makefile we don't have
to patch the configure script.
An alternative approach would be to fix that section of the
configure script. I notice there's already a REINPLACE_CMD that
catches some instances of /usr/local, but misses these.
Port maintainer (chinsan at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- zhcon-0.2.5_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /u2/freebsd/cvs/ports/chinese/zhcon/Makefile,v
retrieving revision 1.44
diff -u -r1.44 Makefile
--- Makefile 3 Oct 2006 15:34:32 -0000 1.44
+++ Makefile 5 Jun 2007 17:52:09 -0000
@@ -22,6 +22,8 @@
USE_GETTEXT= yes
USE_GETOPT_LONG= yes
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
--- zhcon-0.2.5_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list