Bug 42843 - www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness
www/links needs LDFLAGS/CPPFLAGS setting for LOCALBASE cleanliness
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Dmitry Sivachenko
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-09-16 17:00 UTC by freaky
Modified: 2002-10-06 08:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freaky 2002-09-16 17:00:11 UTC
	www/links configure has a hardcoded check for /usr/local added to
	LD/CPPFLAGS.  This is fine for most systems, but with a modified
	LOCALBASE it obviously doesn't work, since bsd.ports.mk and friends
	do not set it beforehand.

Fix: This quickfix allows it to compile properly:



A better fix may be to set them in bsd.ports.mk, ala NetBSD bsd.pkg.mk.--UM1phxtBLPAP1BO3rlURqgOiPUIerNWjsv7cedauqDpuJ5Xq
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile~    Sat Aug 31 13:58:08 2002
+++ Makefile    Mon Sep 16 16:46:42 2002
@@ -27,6 +27,7 @@
                jpeg.9:${PORTSDIR}/graphics/jpeg \
                tiff.4:${PORTSDIR}/graphics/tiff
 USE_XLIB=      yes
+CONFIGURE_ENV+=        CPPFLAGS='-I${LOCALBASE}/include' LDFLAGS='-L${LOCALBASE}/lib'
 CONFIGURE_ARGS+=       --enable-graphics --with-x
 .endif
How-To-Repeat: 	Install some libs it needs to LOCALBASE!=/usr/local, try to compile.
Comment 1 ijliao freebsd_committer 2002-09-16 19:14:11 UTC
Responsible Changed
From-To: freebsd-ports->demon

over to maintainer
Comment 2 Dmitry Sivachenko freebsd_committer 2002-10-06 08:13:43 UTC
State Changed
From-To: open->closed

Patch committed, thanks!