ports/52173: bsd.port.mk - Modify USE_GETOPT_LONG option when
Mario Sergio Fujikawa Ferreira
lioux at FreeBSD.org
Tue May 13 18:10:12 UTC 2003
The following reply was made to PR ports/52173; it has been noted by GNATS.
From: Mario Sergio Fujikawa Ferreira <lioux at FreeBSD.org>
To: Tilman Linneweh <tilman at arved.de>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: ports/52173: bsd.port.mk - Modify USE_GETOPT_LONG option when
Date: Tue, 13 May 2003 15:06:36 -0300
Updated patch with arved's catch.
Do you propose that we always define CPPFLAGS and LDFLAGS?
And use them as MAKE_ENV if not GNU_CONFIGURE?
Isn't CFLAGS more appropriate then CPPFLAGS when we don't have
GNU_CONFIGURE?
--- With arved's catch
--- bsd.port.mk.orig Tue May 6 03:46:16 2003
+++ bsd.port.mk Tue May 13 15:03:01 2003
@@ -1271,7 +1271,11 @@
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+.if defined(GNU_CONFIGURE)
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+.else
+MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+.endif
.endif
.endif
--- Using CFLAGS's idea (still not sure about it)
--- bsd.port.mk.orig Tue May 6 03:46:16 2003
+++ bsd.port.mk Tue May 13 15:06:11 2003
@@ -1269,9 +1269,14 @@
.if defined(USE_GETOPT_LONG)
.if ${OSVERSION} < 500041
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
+.if defined(GNU_CONFIGURE)
+CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+.else
+CFLAGS+= -I${LOCALBASE}/include
+MAKE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+.endif
.endif
.endif
--
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
FreeBSD Committer | CS Developer
flames to beloved devnull at someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature
More information about the freebsd-ports-bugs
mailing list