Lines 1-8
Link Here
|
1 |
# $FreeBSD: head/databases/postgis21/Makefile 362205 2014-07-18 13:07:23Z sunpoet $ |
1 |
# $FreeBSD: head/databases/postgis21/Makefile 362205 2014-07-18 13:07:23Z sunpoet $ |
2 |
|
2 |
|
3 |
PORTNAME= postgis |
3 |
PORTNAME= postgis |
4 |
PORTVERSION= 2.1.0 |
4 |
PORTVERSION= 2.1.3 |
5 |
PORTREVISION= 6 |
|
|
6 |
CATEGORIES= databases geography |
5 |
CATEGORIES= databases geography |
7 |
MASTER_SITES= http://download.osgeo.org/postgis/source/ |
6 |
MASTER_SITES= http://download.osgeo.org/postgis/source/ |
8 |
|
7 |
|
Lines 13-19
Link Here
|
13 |
|
12 |
|
14 |
LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj \ |
13 |
LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj \ |
15 |
libgeos.so:${PORTSDIR}/graphics/geos \ |
14 |
libgeos.so:${PORTSDIR}/graphics/geos \ |
16 |
libjson.so:${PORTSDIR}/devel/json-c |
15 |
libjson-c.so:${PORTSDIR}/devel/json-c |
17 |
RUN_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER_NODOT}-server |
16 |
RUN_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER_NODOT}-server |
18 |
|
17 |
|
19 |
CONFLICTS= postgis-1.* postgis-2.0.* |
18 |
CONFLICTS= postgis-1.* postgis-2.0.* |
Lines 27-32
Link Here
|
27 |
|
26 |
|
28 |
OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY SFCGAL |
27 |
OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY SFCGAL |
29 |
OPTIONS_DEFAULT= TOPOLOGY |
28 |
OPTIONS_DEFAULT= TOPOLOGY |
|
|
29 |
OPTIONS_SUB= yes |
30 |
|
30 |
|
31 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
31 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
32 |
|
32 |
|
Lines 34-78
Link Here
|
34 |
RASTER_DESC= Raster support |
34 |
RASTER_DESC= Raster support |
35 |
TOPOLOGY_DESC= Topology support |
35 |
TOPOLOGY_DESC= Topology support |
36 |
SFCGAL_DESC= Enable sfcgal |
36 |
SFCGAL_DESC= Enable sfcgal |
|
|
37 |
LOADERGUI_CONFIGURE_WITH= gui |
38 |
LOADERGUI_USE= GNOME=gtk20 |
39 |
RASTER_CONFIGURE_WITH= raster |
40 |
RASTER_LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal |
41 |
RASTER_CONFIGURE_ON= --with-gdalconfig=${LOCALBASE}/bin/gdal-config |
42 |
TOPOLOGY_CONFIGURE_WITH= topology |
43 |
SFCGAL_LIB_DEPENDS= libSFCGAL.so:${PORTSDIR}/databases/sfcgal |
44 |
SFCGAL_CONFIGURE_ON= --with-sfcgal=${LOCALBASE}/bin/sfcgal-config |
45 |
SFCGAL_CONFIGURE_OFF= --without-sfcgal |
37 |
|
46 |
|
38 |
.include <bsd.port.options.mk> |
47 |
.include <bsd.port.options.mk> |
39 |
|
48 |
|
40 |
.if ${PORT_OPTIONS:MLOADERGUI} |
|
|
41 |
USE_GNOME+= gtk20 |
42 |
CONFIGURE_ARGS+= --with-gui |
43 |
PLIST_SUB+= LOADERGUI="" |
44 |
.else |
45 |
CONFIGURE_ARGS+= --without-gui |
46 |
PLIST_SUB+= LOADERGUI="@comment " |
47 |
.endif |
48 |
|
49 |
.if ${PORT_OPTIONS:MRASTER} |
49 |
.if ${PORT_OPTIONS:MRASTER} |
50 |
.if ${OSVERSION} < 900033 |
50 |
.if ${OSVERSION} < 900033 |
51 |
BROKEN= Raster suppport is broken on FreeBSD < 9.x |
51 |
BROKEN= Raster suppport is broken on FreeBSD < 9.x |
52 |
.endif |
52 |
.endif |
53 |
LIB_DEPENDS+= libgdal.so:${PORTSDIR}/graphics/gdal |
|
|
54 |
CONFIGURE_ARGS+= --with-raster --with-gdalconfig=${LOCALBASE}/bin/gdal-config |
55 |
PLIST_SUB+= RASTER="" |
56 |
.else |
57 |
CONFIGURE_ARGS+= --without-raster |
58 |
PLIST_SUB+= RASTER="@comment " |
59 |
.endif |
60 |
|
61 |
.if ${PORT_OPTIONS:MTOPOLOGY} |
62 |
CONFIGURE_ARGS+= --with-topology |
63 |
PLIST_SUB+= TOPOLOGY="" |
64 |
.else |
65 |
CONFIGURE_ARGS+= --without-topology |
66 |
PLIST_SUB+= TOPOLOGY="@comment " |
67 |
.endif |
68 |
|
69 |
.if ${PORT_OPTIONS:MSFCGAL} |
70 |
LIB_DEPENDS+= libSFCGAL.so:${PORTSDIR}/databases/sfcgal |
71 |
CONFIGURE_ARGS+= --with-sfcgal=${LOCALBASE}/bin/sfcgal-config |
72 |
PLIST_SUB+= SFCGAL="" |
73 |
.else |
74 |
CONFIGURE_ARGS+= --without-sfcgal |
75 |
PLIST_SUB+= SFCGAL="@comment " |
76 |
.endif |
53 |
.endif |
77 |
|
54 |
|
78 |
CFLAGS+= -I${LOCALBASE}/include |
55 |
CFLAGS+= -I${LOCALBASE}/include |
Lines 89-93
Link Here
|
89 |
(cd ${WRKSRC}/extras/tiger_geocoder/tiger_2011/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/tiger_2011/ "! ( -name *\.orig -o -name *\.bak )" ) |
66 |
(cd ${WRKSRC}/extras/tiger_geocoder/tiger_2011/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/tiger_2011/ "! ( -name *\.orig -o -name *\.bak )" ) |
90 |
${MKDIR} ${STAGEDIR}/${DATADIR}/utils |
67 |
${MKDIR} ${STAGEDIR}/${DATADIR}/utils |
91 |
(cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak )" ) |
68 |
(cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak )" ) |
|
|
69 |
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/shp2pgsql |
70 |
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/pgsql2shp |
71 |
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/liblwgeom-2.1.3.so |
72 |
${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/postgresql/postgis-2.1.so |
92 |
|
73 |
|
93 |
.include <bsd.port.mk> |
74 |
.include <bsd.port.mk> |