blob: f97613ac019eecaf242e712b52e5bb815b775b2e (
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
|
# New ports collection makefile for: mapnik
# Date created: Nov 10, 2008
# Whom: Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= mapnik
PORTVERSION= 0.7.1
PORTREVISION= 1
CATEGORIES= graphics geography
MASTER_SITES= BERLIOS
MAINTAINER= wenheping@gmail.com
COMMENT= A Free Toolkit For Developing Mapping Applications
LIB_DEPENDS= proj:${PORTSDIR}/graphics/proj \
png:${PORTSDIR}/graphics/png \
tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg \
icuuc:${PORTSDIR}/devel/icu \
boost_system:${PORTSDIR}/devel/boost-libs
BUILD_DEPENDS= ${LOCALBASE}/bin/freetype-config:${PORTSDIR}/print/freetype2 \
icu>=4.1.4:${PORTSDIR}/devel/icu \
${PYTHON_PKGNAMEPREFIX}icu>=0.8.1:${PORTSDIR}/devel/py-icu \
boost-libs>1.41:${PORTSDIR}/devel/boost-libs \
${LOCALBASE}/include/boost/python.hpp:${PORTSDIR}/devel/boost-python-libs
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
USE_BZIP2= yes
USE_PYTHON= 2.5+
USE_LDCONFIG= yes
USE_SCONS= yes
USE_AUTOTOOLS= libltdl
USE_GNOME= pkgconfig libxml2
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INPUT_PLUGINS= raster shape
OPTIONS= CAIRO "Enable cairo rendering" on \
POSTGIS "Postgis input plugin" on \
GDAL "gdal input plugin" off \
OGR "ogr input plugin" off \
SQLITE "SQLite input plugin" off \
OSM "OSM input plugin" off
.include <bsd.port.options.mk>
.if defined(WITHOUT_CAIRO)
SCONS_ARGS+= CAIRO=False
.else
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo \
cairomm-1.0:${PORTSDIR}/graphics/cairomm
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.2:${PORTSDIR}/graphics/py-cairo
.endif
.if !defined(WITHOUT_POSTGIS)
INPUT_PLUGINS+= postgis
USE_PGSQL= yes
PLIST_SUB+= POSTGIS=""
.else
PLIST_SUB+= POSTGIS="@comment "
.endif
.if defined(WITH_GDAL)
INPUT_PLUGINS+= gdal
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal
PLIST_SUB+= GDAL=""
.else
PLIST_SUB+= GDAL="@comment "
.endif
.if defined(WITH_OGR)
INPUT_PLUGINS+= ogr
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal
PLIST_SUB+= OGR=""
.else
PLIST_SUB+= OGR="@comment "
.endif
.if defined(WITH_SQLITE)
INPUT_PLUGINS+= sqlite
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
PLIST_SUB+= SQLITE=""
.else
PLIST_SUB+= SQLITE="@comment "
.endif
.if defined(WITH_OSM)
INPUT_PLUGINS+= osm
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
PLIST_SUB+= OSM=""
.else
PLIST_SUB+= OSM="@comment "
.endif
SCONS_ENV+= INPUT_PLUGINS="`${ECHO} ${INPUT_PLUGINS} | ${TR} ' ' ,`"
.include <bsd.port.pre.mk>
.if defined (MAKE_JOBS_NUMBER)
SCONS_ENV+= JOBS=${MAKE_JOBS_NUMBER}
.endif
post-patch:
@${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
${WRKSRC}/SConstruct
do-install:
@cd ${INSTALL_WRKSRC} && ${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} \
${SCONS_INSTALL_TARGET}
.include <bsd.port.post.mk>
|