diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-06-04 16:11:09 +0800 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-06-04 16:11:09 +0800 |
commit | ac6a82dc0bd21c751589b78dfda4ae8109b1318d (patch) | |
tree | 2653a09429b87de30c780502d2349c2dc086686a /databases | |
parent | 15083bc7e4b87f6189d5ecf9581e7584601d1b1f (diff) | |
download | freebsd-ports-gnome-ac6a82dc0bd21c751589b78dfda4ae8109b1318d.tar.gz freebsd-ports-gnome-ac6a82dc0bd21c751589b78dfda4ae8109b1318d.tar.zst freebsd-ports-gnome-ac6a82dc0bd21c751589b78dfda4ae8109b1318d.zip |
- Add SFCGAL option (ports/188927)
- Add Licenses
- Add stage
- Fix iconv (ports/186563)
PR: 189540
Submitted by: maintainer
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgis21/Makefile | 27 | ||||
-rw-r--r-- | databases/postgis21/pkg-plist | 1 |
2 files changed, 20 insertions, 8 deletions
diff --git a/databases/postgis21/Makefile b/databases/postgis21/Makefile index 8eb8bee2cb35..fb61beb294e3 100644 --- a/databases/postgis21/Makefile +++ b/databases/postgis21/Makefile @@ -2,13 +2,15 @@ PORTNAME= postgis PORTVERSION= 2.1.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases geography MASTER_SITES= http://download.osgeo.org/postgis/source/ MAINTAINER= trevor@bitba.se COMMENT= Geographic objects support for PostgreSQL databases +LICENSE= GPLv2 + LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj \ libgeos.so:${PORTSDIR}/graphics/geos \ libjson.so:${PORTSDIR}/devel/json-c @@ -19,12 +21,12 @@ LATEST_LINK= postgis21 USE_GNOME= libxml2 USE_PGSQL= yes -USES= gmake iconv perl5 pkgconfig +USES= gmake iconv:wchar_t perl5 pkgconfig USE_LDCONFIG= yes GNU_CONFIGURE= yes USE_PERL5= build -OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY +OPTIONS_DEFINE= LOADERGUI RASTER TOPOLOGY SFCGAL OPTIONS_DEFAULT= TOPOLOGY PLIST_SUB+= PORTVERSION=${PORTVERSION} @@ -32,8 +34,8 @@ PLIST_SUB+= PORTVERSION=${PORTVERSION} LOADERGUI_DESC= Enable shp2pgsql-gui RASTER_DESC= Raster support TOPOLOGY_DESC= Topology support +SFCGAL_DESC= Enable sfcgal -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MLOADERGUI} @@ -65,6 +67,15 @@ CONFIGURE_ARGS+= --without-topology PLIST_SUB+= TOPOLOGY="@comment " .endif +.if ${PORT_OPTIONS:MSFCGAL} +LIB_DEPENDS+= libSFCGAL.so:${PORTSDIR}/databases/sfcgal +CONFIGURE_ARGS+= --with-sfcgal=${LOCALBASE}/bin/sfcgal-config +PLIST_SUB+= SFCGAL="" +.else +CONFIGURE_ARGS+= --without-sfcgal +PLIST_SUB+= SFCGAL="@comment " +.endif + CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -75,9 +86,9 @@ pre-configure: @${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL post-install: .SILENT - ${MKDIR} ${DATADIR}/tiger_2011 - (cd ${WRKSRC}/extras/tiger_geocoder/tiger_2011/ && ${COPYTREE_SHARE} \* ${DATADIR}/tiger_2011/ "! ( -name *\.orig -o -name *\.bak )" ) - ${MKDIR} ${DATADIR}/utils - (cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} \* ${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak )" ) + ${MKDIR} ${STAGEDIR}/${DATADIR}/tiger_2011 + (cd ${WRKSRC}/extras/tiger_geocoder/tiger_2011/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/tiger_2011/ "! ( -name *\.orig -o -name *\.bak )" ) + ${MKDIR} ${STAGEDIR}/${DATADIR}/utils + (cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak )" ) .include <bsd.port.mk> diff --git a/databases/postgis21/pkg-plist b/databases/postgis21/pkg-plist index 9b702dec0d99..6e4e0d2ca1e3 100644 --- a/databases/postgis21/pkg-plist +++ b/databases/postgis21/pkg-plist @@ -88,6 +88,7 @@ share/postgresql/contrib/postgis-2.1/spatial_ref_sys.sql share/postgresql/contrib/postgis-2.1/uninstall_legacy.sql share/postgresql/contrib/postgis-2.1/uninstall_postgis.sql share/postgresql/contrib/postgis-2.1/uninstall_sfcgal.sql +%%SFCGAL%%share/postgresql/contrib/postgis-2.1/sfcgal.sql %%RASTER%%share/postgresql/contrib/postgis-2.1/rtpostgis.sql %%RASTER%%share/postgresql/contrib/postgis-2.1/rtpostgis_legacy.sql %%RASTER%%share/postgresql/contrib/postgis-2.1/rtpostgis_upgrade_20_21.sql |