Allow builds on OpenBSD - #4165
Conversation
|
I've recently gone down the path of trying to build mapnik on FreeBSD. It seems to me like leveraging pkgconf/pkg-config would be useful for cross platform compatibility and minimally intrusive on Linux. |
|
@inferiorhumanorgans, I suspect it would be a similar build process for |
|
mapnik is in openbsd ports since a while.. https://github.com/openbsd/ports/tree/master/graphics/mapnik |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4165 +/- ##
=======================================
Coverage 70.31% 70.31%
=======================================
Files 445 445
Lines 23612 23612
=======================================
Hits 16603 16603
Misses 7009 7009 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
After making these changes, I was then able to build mapnik on OpenBSD.
Just in case anyone feels crazy and wants to try on OpenBSD for themselves ;-), this was the configure line that worked for me:
./configure ICU_LIBS=/usr/local/lib ICU_INCLUDES=/usr/local/include HB_LIBS=/usr/local/lib HB_INCLUDES=/usr/local/include PROJ_LIBS=/usr/local/lib PROJ_INCLUDES=/usr/local/include FREETYPE_LIBS=/usr/X11R6/lib FREETYPE_INCLUDES=/usr/X11R6/include/freetype2 CUSTOM_CFLAGS=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 -I/usr/X11R6/include/freetype2 CUSTOM_CXXFLAGS=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 -I/usr/X11R6/include/freetype2