blob: 187dfca6a3ab2024041a3f4b5364277c486b05e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
PORTNAME= mapnik
DISTVERSIONPREFIX= v
DISTVERSION= 3.1.0
PORTREVISION= 5
CATEGORIES= graphics geography
MASTER_SITES= https://github.com/mapnik/mapnik/releases/download/${DISTVERSIONFULL}/
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 \
boost-1.83.patch
PATCH_DIST_STRIP= -p1 -F3
MAINTAINER= david.hummel@gmail.com
COMMENT= Free Toolkit For Developing Mapping Applications
WWW= http://www.mapnik.org/
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
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
RUN_DEPENDS= dejavu>0:x11-fonts/dejavu
USES= compiler:c++14-lang gmake gnome pkgconfig python tar:bzip2
USE_GNOME= libxml2
USE_LDCONFIG= yes
MAKE_ARGS= PYTHON="${PYTHON_CMD}"
MAKE_ENV= JOBS=${MAKE_JOBS_NUMBER}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= CPP_TESTS=False \
CUSTOM_CFLAGS="${CFLAGS}" \
CUSTOM_CXXFLAGS="${CXXFLAGS}" \
CUSTOM_LDFLAGS="${LDFLAGS}" \
DEMO=False \
DESTDIR="${STAGEDIR}" \
INPUT_PLUGINS="`${ECHO} ${INPUT_PLUGINS} | ${TR} ' ' ,`" \
PGSQL2SQLITE=True \
SVG2PNG=True \
SYSTEM_FONTS=${LOCALBASE}/share/fonts/dejavu \
XMLPARSER=libxml2
CONFIGURE_ENV= PYTHON="${PYTHON_CMD}"
PORTDOCS= AUTHORS.md CHANGELOG.md CODE_OF_CONDUCT.md INSTALL.md README.md docs/*
INPUT_PLUGINS= csv raster shape geojson topojson
OPTIONS_DEFINE= CAIRO DOCS JPEG PNG PROJ TIFF WEBP
OPTIONS_DEFAULT= CAIRO GDAL JPEG OGR PGRASTER PNG POSTGIS PROJ SQLITE3 \
TIFF WEBP
OPTIONS_GROUP= INPUT
OPTIONS_GROUP_INPUT= GDAL OGR PGRASTER POSTGIS SQLITE3
OPTIONS_SUB= yes
INPUT_DESC= Input plugins
GDAL_DESC= GDAL input plugin
OGR_DESC= OGR input plugin
POSTGIS_DESC= PostGIS input plugin
PGRASTER_DESC= PGraster input plugin
SQLITE3_DESC= SQLite input plugin
PROJ_DESC= PROJ support
CAIRO_DESC= Enable cairo rendering
GDAL_VARS= INPUT_PLUGINS+=gdal
GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal
OGR_VARS= INPUT_PLUGINS+=ogr
OGR_LIB_DEPENDS= libgdal.so:graphics/gdal
POSTGIS_VARS= INPUT_PLUGINS+=postgis
POSTGIS_USES= pgsql
PGRASTER_VARS= INPUT_PLUGINS+=pgraster
PGRASTER_USES= pgsql
SQLITE3_VARS= INPUT_PLUGINS+=sqlite
SQLITE3_USES= sqlite:3
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_MAKE_ARGS_OFF= PNG=False
JPEG_USES= jpeg
JPEG_MAKE_ARGS_OFF= JPEG=False
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_MAKE_ARGS_OFF= TIFF=False
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
WEBP_MAKE_ARGS_OFF= WEBP=False
PROJ_LIB_DEPENDS= libproj.so:graphics/proj
PROJ_MAKE_ARGS_OFF= PROJ=False
CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo
CAIRO_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.2:graphics/py-cairo@${PY_FLAVOR}
CAIRO_MAKE_ARGS_OFF= CAIRO=False
pre-configure-SQLITE3-on:
@if ! ${LOCALBASE}/bin/sqlite3 :memory: 'create virtual table foo using rtree(pkid, xmin, xmax, ymin, ymax)' > /dev/null 2>&1; then \
${ECHO_MSG} "" ; \
${ECHO_MSG} "The SQLite plugin requires libsqlite3 built with RTREE support"; \
${ECHO_MSG} "Please, reinstall 'databases/sqlite3' port with R*Tree module enabled"; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi
post-patch:
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
-e 's#/usr/include#${LOCALBASE}/include#g' \
-e "s#'/usr/' + LIBDIR_SCHEMA_DEFAULT#'${LOCALBASE}/' + LIBDIR_SCHEMA_DEFAULT#g" \
${WRKSRC}/SConstruct
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
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mapnik/input/*.input
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS.md CHANGELOG.md CODE_OF_CONDUCT.md INSTALL.md README.md ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/docs
@cd ${WRKSRC} && ${INSTALL_DATA} docs/* ${STAGEDIR}${DOCSDIR}/docs
.include <bsd.port.mk>
|