Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 12:54:26 GMT
From:      Steven Lawrance <stl@koffein.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186450: graphics/mapnik does not build due to missing include/library paths
Message-ID:  <201402041254.s14CsQcu061944@oldred.freebsd.org>
Resent-Message-ID: <201402041300.s14D00EX018871@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402041254.s14CsQcu061944>