Lines 7-14
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= mapnik |
8 |
PORTNAME= mapnik |
9 |
PORTVERSION= 0.7.1 |
9 |
PORTVERSION= 0.7.1 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= graphics geography |
11 |
CATEGORIES= graphics geography |
11 |
MASTER_SITES= ${MASTER_SITE_BERLIOS}/${PORTNAME}/ |
12 |
MASTER_SITES= BERLIOS |
12 |
|
13 |
|
13 |
MAINTAINER= wenheping@gmail.com |
14 |
MAINTAINER= wenheping@gmail.com |
14 |
COMMENT= A Free Toolkit For Developing Mapping Applications |
15 |
COMMENT= A Free Toolkit For Developing Mapping Applications |
Lines 28-43
Link Here
|
28 |
LICENSE= LGPL21 |
29 |
LICENSE= LGPL21 |
29 |
LICENSE_FILE= ${WRKSRC}/COPYING |
30 |
LICENSE_FILE= ${WRKSRC}/COPYING |
30 |
|
31 |
|
31 |
USE_PGSQL= yes |
|
|
32 |
USE_BZIP2= yes |
32 |
USE_BZIP2= yes |
33 |
USE_PYTHON= 2.5+ |
33 |
USE_PYTHON= 2.5+ |
34 |
USE_LDCONFIG= yes |
34 |
USE_LDCONFIG= yes |
35 |
USE_SCONS= yes |
35 |
USE_SCONS= yes |
36 |
USE_AUTOTOOLS= libltdl |
36 |
USE_AUTOTOOLS= libltdl |
37 |
USE_GNOME= pkgconfig libxml2 |
37 |
USE_GNOME= pkgconfig libxml2 |
|
|
38 |
MAKE_JOBS_SAFE= yes |
38 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
39 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
39 |
|
40 |
|
40 |
OPTIONS= CAIRO "Enable cairo rendering" on |
41 |
INPUT_PLUGINS= raster shape |
|
|
42 |
|
43 |
OPTIONS= CAIRO "Enable cairo rendering" on \ |
44 |
POSTGIS "Postgis input plugin" on \ |
45 |
GDAL "gdal input plugin" off \ |
46 |
OGR "ogr input plugin" off \ |
47 |
SQLITE "SQLite input plugin" off \ |
48 |
OSM "OSM input plugin" off |
41 |
|
49 |
|
42 |
.include <bsd.port.options.mk> |
50 |
.include <bsd.port.options.mk> |
43 |
|
51 |
|
Lines 49-58
Link Here
|
49 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.2:${PORTSDIR}/graphics/py-cairo |
57 |
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>=1.8.2:${PORTSDIR}/graphics/py-cairo |
50 |
.endif |
58 |
.endif |
51 |
|
59 |
|
|
|
60 |
.if !defined(WITHOUT_POSTGIS) |
61 |
INPUT_PLUGINS+= postgis |
62 |
USE_PGSQL= yes |
63 |
PLIST_SUB+= POSTGIS="" |
64 |
.else |
65 |
PLIST_SUB+= POSTGIS="@comment " |
66 |
.endif |
67 |
|
68 |
.if defined(WITH_GDAL) |
69 |
INPUT_PLUGINS+= gdal |
70 |
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal |
71 |
PLIST_SUB+= GDAL="" |
72 |
.else |
73 |
PLIST_SUB+= GDAL="@comment " |
74 |
.endif |
75 |
|
76 |
.if defined(WITH_OGR) |
77 |
INPUT_PLUGINS+= ogr |
78 |
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal |
79 |
PLIST_SUB+= OGR="" |
80 |
.else |
81 |
PLIST_SUB+= OGR="@comment " |
82 |
.endif |
83 |
|
84 |
.if defined(WITH_SQLITE) |
85 |
INPUT_PLUGINS+= sqlite |
86 |
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 |
87 |
PLIST_SUB+= SQLITE="" |
88 |
.else |
89 |
PLIST_SUB+= SQLITE="@comment " |
90 |
.endif |
91 |
|
92 |
.if defined(WITH_OSM) |
93 |
INPUT_PLUGINS+= osm |
94 |
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl |
95 |
PLIST_SUB+= OSM="" |
96 |
.else |
97 |
PLIST_SUB+= OSM="@comment " |
98 |
.endif |
99 |
|
100 |
SCONS_ENV+= INPUT_PLUGINS="`${ECHO} ${INPUT_PLUGINS} | ${TR} ' ' ,`" |
101 |
|
52 |
.include <bsd.port.pre.mk> |
102 |
.include <bsd.port.pre.mk> |
53 |
|
103 |
|
54 |
.if defined (MAKE_JOBS_NUMBER) |
104 |
.if defined (MAKE_JOBS_NUMBER) |
55 |
SCONS_ARGS+= JOBS=${MAKE_JOBS_NUMBER} |
105 |
SCONS_ENV+= JOBS=${MAKE_JOBS_NUMBER} |
56 |
.endif |
106 |
.endif |
57 |
|
107 |
|
58 |
post-patch: |
108 |
post-patch: |