TIMESTAMP = 1504624546 SHA256 (wireshark-2.4.1.tar.xz) = 02ddbcf9b10f9dfa1e36eec00fe00cb5b5ce8e07203843baf056ac7909911fcd SIZE (wireshark-2.4.1.tar.xz) = 28780384 /cgit.css'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgis20/Makefile
blob: dbdb13103f4ef0a759b77dc256ad0b8183abdbbb (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
# $FreeBSD$

PORTNAME=   postgis
PORTVERSION=    2.0.2
PORTREVISION=   3
CATEGORIES= databases geography
MASTER_SITES=   http://download.osgeo.org/postgis/source/

MAINTAINER= matt.trisoline@intermedix.com
COMMENT=    Adds support for geographic objects to PostgreSQL databases

LIB_DEPENDS=    proj:${PORTSDIR}/graphics/proj \
        geos:${PORTSDIR}/graphics/geos \
        json:${PORTSDIR}/devel/json-c
RUN_DEPENDS=    postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server

CONFLICTS=  postgis-1.*
LATEST_LINK=    postgis20

USE_GNOME=  libxml2
USE_PGSQL=  yes
USES=       gmake iconv perl5
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
USE_PERL5=  build

OPTIONS_DEFINE=     LOADERGUI RASTER TOPOLOGY
OPTIONS_DEFAULT=    TOPOLOGY

LOADERGUI_DESC= Enable shp2pgsql-gui
RASTER_DESC=    Build with raster support
TOPOLOGY_DESC=  Build with topology support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLOADERGUI}
USE_GNOME+=     gtk20
CONFIGURE_ARGS+=    --with-gui
PLIST_SUB+=     LOADERGUI=""
.else
CONFIGURE_ARGS+=    --without-gui
PLIST_SUB+=     LOADERGUI="@comment "
.endif

.if ${PORT_OPTIONS:MRASTER}
.if ${OSVERSION} < 900033
BROKEN=         Raster suppport is broken on FreeBSD < 9.x
.endif
LIB_DEPENDS+=       gdal:${PORTSDIR}/graphics/gdal
CONFIGURE_ARGS+=    --with-raster --with-gdalconfig=${LOCALBASE}/bin/gdal-config
PLIST_SUB+=     RASTER=""
.else
CONFIGURE_ARGS+=    --without-raster
PLIST_SUB+=     RASTER="@comment "
.endif

.if ${PORT_OPTIONS:MTOPOLOGY}
CONFIGURE_ARGS+=    --with-topology
PLIST_SUB+=     TOPOLOGY=""
.else
CONFIGURE_ARGS+=    --without-topology
PLIST_SUB+=     TOPOLOGY="@comment "
.endif

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${GREP} -lR 'bin/bash' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e "s|/bin/bash|/bin/sh|"

pre-configure:
    @${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL

post-install: .SILENT
    ${MKDIR} ${DATADIR}/tiger_2010
    (cd ${WRKSRC}/extras/tiger_geocoder/tiger_2010/ && ${COPYTREE_SHARE} \* ${DATADIR}/tiger_2010/ "! ( -name *\.orig -o -name *\.bak )" )
    ${MKDIR} ${DATADIR}/utils
    (cd ${WRKSRC}/utils/ && ${COPYTREE_SHARE} \* ${DATADIR}/utils/ "! ( -name *\.orig -o -name *\.bak )" )

.include <bsd.port.mk>