#19114: New Port: Mapnik ---------------------------------------+------------------------------------ Reporter: dbsgeo@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Port Submissions Component: ports | Version: 1.7.0 Keywords: gis,graphics,boost,python | Port: Mapnik ---------------------------------------+------------------------------------ Comment(by dbsgeo@…): Okay, looks like I've got a fix for the library issue. Using `export DYLD_LIBRARY_PATH=/opt/local/lib/` is a disaster. Here is a patch that fixes things by providing the full path to the library location: See: http://qin.laya.com/tech_coding_help/dylib_linking.html {{{ Index: src/SConscript =================================================================== --- src/SConscript (revision 1105) +++ src/SConscript (working copy) @@ -31,13 +31,15 @@ install_prefix = env['DESTDIR'] + '/' + prefix +libdir = os.path.normpath(install_prefix + '/' + env['LIBDIR_SCHEMA']) + libraries = env['LIBS'] if env['INTERNAL_LIBAGG']: libraries.insert(0, 'agg') if env['PLATFORM'] == 'Darwin': - linkflags = '-Wl,-install_name,libmapnik.dylib' + linkflags = '-Wl,-install_name,%s/libmapnik.dylib' % libdir elif env['PLATFORM'] == 'SunOS' and env['CXX'].startswith('CC'): linkflags = '-R. -h libmapnik.so' else: # Linux and others }}} -- Ticket URL: <http://trac.macports.org/ticket/19114#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS