Skip to content

Commit

Permalink
graphics/mapnik: Fix building with Boost v1.8.3
Browse files Browse the repository at this point in the history
PR:		274166
Reported by:	dhummel@eml.cc (maintainer)
  • Loading branch information
hummeltech authored and fernape committed Oct 3, 2023
1 parent 7bc4eb9 commit bbdd834
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
18 changes: 12 additions & 6 deletions graphics/mapnik/Makefile
@@ -1,14 +1,16 @@
PORTNAME= mapnik
DISTVERSIONPREFIX= v
DISTVERSION= 3.1.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= graphics geography
MASTER_SITES= https://github.com/mapnik/mapnik/releases/download/${DISTVERSIONFULL}/

PATCH_SITES= https://github.com/mapnik/mapnik/commit/
PATCH_SITES= https://github.com/mapnik/mapnik/commit/ \
https://gitlab.archlinux.org/archlinux/packaging/packages/mapnik/-/raw/f9f723222c0af50e4db747e7c4e8138dbc769f53/
PATCHFILES= 8944e81367d2b3b91a41e24116e1813c01491e5d.patch \
83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch \
7f0daee8b37d8cf6eff32529b1762ffd5104f3f3.patch
7f0daee8b37d8cf6eff32529b1762ffd5104f3f3.patch \
boost-1.83.patch
PATCH_DIST_STRIP= -p1 -F3

MAINTAINER= david.hummel@gmail.com
Expand All @@ -19,7 +21,10 @@ LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libboost_program_options.so:devel/boost-libs \
libboost_regex.so:devel/boost-libs \
libboost_system.so:devel/boost-libs \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libicuuc.so:devel/icu
Expand All @@ -37,8 +42,8 @@ CONFIGURE_ARGS= CPP_TESTS=False \
CUSTOM_LDFLAGS="${LDFLAGS}" \
DEMO=False \
DESTDIR="${STAGEDIR}" \
FAST=True \
INPUT_PLUGINS="`${ECHO} ${INPUT_PLUGINS} | ${TR} ' ' ,`" \
PGSQL2SQLITE=True \
SVG2PNG=True \
SYSTEM_FONTS=${LOCALBASE}/share/fonts/dejavu \
XMLPARSER=libxml2
Expand Down Expand Up @@ -75,7 +80,7 @@ POSTGIS_USES= pgsql
PGRASTER_VARS= INPUT_PLUGINS+=pgraster
PGRASTER_USES= pgsql
SQLITE3_VARS= INPUT_PLUGINS+=sqlite
SQLITE3_LIB_DEPENDS= libsqlite3.so:databases/sqlite3
SQLITE3_USES= sqlite:3

PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_MAKE_ARGS_OFF= PNG=False
Expand Down Expand Up @@ -110,6 +115,7 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mapnik-index \
${STAGEDIR}${PREFIX}/bin/mapnik-render \
${STAGEDIR}${PREFIX}/bin/pgsql2sqlite \
${STAGEDIR}${PREFIX}/bin/shapeindex \
${STAGEDIR}${PREFIX}/bin/svg2png
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
Expand Down
2 changes: 2 additions & 0 deletions graphics/mapnik/distinfo
Expand Up @@ -7,3 +7,5 @@ SHA256 (83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch) = c80ca2cded88dfebff4efc
SIZE (83779b7b6bdd229740b1b5e12a4a8fe27114cb7d.patch) = 698
SHA256 (7f0daee8b37d8cf6eff32529b1762ffd5104f3f3.patch) = 2bb3ab61ed128fd5ae48e8e0943d8d0ae37b070418c21774ba987a4973f21800
SIZE (7f0daee8b37d8cf6eff32529b1762ffd5104f3f3.patch) = 1071
SHA256 (boost-1.83.patch) = 356271f4550c2b370ae48bbce9cebb58c5803507f2b14bc8e84f3813871d0645
SIZE (boost-1.83.patch) = 1704
1 change: 1 addition & 0 deletions graphics/mapnik/pkg-plist
@@ -1,6 +1,7 @@
bin/mapnik-config
bin/mapnik-index
bin/mapnik-render
bin/pgsql2sqlite
bin/shapeindex
bin/svg2png
include/mapnik/agg/agg_alpha_mask_u8.h
Expand Down

0 comments on commit bbdd834

Please sign in to comment.