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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 05 18:50:03 GMT 2007
>Originator:     Tim Bishop
>Release:        FreeBSD 6.2-STABLE i386
System: FreeBSD pendennis.kent.ac.uk 6.2-STABLE FreeBSD 6.2-STABLE #4: Sun May 20 17:30:14 BST 2007
Respect alternate LOCALBASE.

The problem is this part of the configure script:

	      echo "FreeBsd detected"
	                        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

--- 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 @@
 CONFIGURE_ARGS=	--with-libintl-prefix=${LOCALBASE}
 PKGMESSAGE=	${WRKDIR}/pkg-message
 SUB_FILES=	pkg-message
--- zhcon-0.2.5_1.patch ends here ---


More information about the freebsd-ports-bugs mailing list