ports/186450: graphics/mapnik does not build due to missing include/library paths

Steven Lawrance stl at koffein.net
Tue Feb 4 13:00:00 UTC 2014


>Number:         186450
>Category:       ports
>Synopsis:       graphics/mapnik does not build due to missing include/library paths
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 04 13:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Steven Lawrance
>Release:        head
>Organization:
>Environment:
FreeBSD luwak.koffein.net 11.0-CURRENT FreeBSD 11.0-CURRENT #20 r260701M: Thu Jan 16 11:11:56 CET 2014     stl at luwak.koffein.net:/usr/obj/usr/src/sys/LUWAK  amd64
>Description:
Configuring mapnik failes ("the following required dependencies were not found": icuuc, jpeg, proj, png, tiff..) because it does not know to look in /usr/local/{include,lib}.
>How-To-Repeat:
(cd /usr/ports/graphics/mapnik && make)
>Fix:
mapnik-v2.2.0/SConstruct suggests to specify the paths in CUSTOM_{C,CXX,LD}FLAGS, as done in the attached patch.

Patch attached with submission follows:

--- Makefile.orig       2014-02-04 13:03:01.875873396 +0100
+++ Makefile    2014-02-04 13:41:19.343715359 +0100
@@ -116,6 +116,9 @@
 IGNORE=                does not install: runs out of virtual memory
 .endif
 
+MAKE_ARGS+=    CUSTOM_CFLAGS=-I${LOCALBASE}/include
+MAKE_ARGS+=    CUSTOM_CXXFLAGS=-I${LOCALBASE}/include
+MAKE_ARGS+=    CUSTOM_LDFLAGS=-L${LOCALBASE}/lib
 MAKE_ARGS+=    WARNING_CXXFLAGS=${WARNING_CXXFLAGS}
 MAKE_ARGS+=    INPUT_PLUGINS="`${ECHO} ${INPUT_PLUGINS} | ${TR} ' ' ,`"
 MAKE_ARGS+=    JOBS=${MAKE_JOBS_NUMBER}


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list