aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/geos/Makefile
blob: 0179b35aa4ddca2df36fca958698555a5c9a5684 (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
# Created by: Leonardo Martins <lmartins@nepe.eee.ufg.br>
# $FreeBSD$

PORTNAME=   geos
PORTVERSION=    3.3.8
CATEGORIES= graphics geography
MASTER_SITES=   http://download.osgeo.org/geos/

MAINTAINER= konstantin@saurbier.net
COMMENT=    GEOS implements all the OpenGIS "Simple Features for SQL"

LICENSE=    LGPL21

USE_AUTOTOOLS=  libtool
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes

OPTIONS_DEFINE= PHP PYTHON RUBY

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPHP} || ${PORT_OPTIONS:MPYTHON} || ${PORT_OPTIONS:MRUBY}
BUILD_DEPENDS+= swig1.3:${PORTSDIR}/devel/swig13
.endif

.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON=     yes
CONFIGURE_ARGS+=    --enable-python
PLIST_SUB+=     WITH_PYTHON=""
.else
PLIST_SUB+=     WITH_PYTHON="@comment "
.endif

.if ${PORT_OPTIONS:MPHP}
BUILD_DEPENDS+=     ${LOCALBASE}/bin/php-config:${PORTSDIR}/lang/php5
CONFIGURE_ARGS+=    --enable-php
PLIST_SUB+=     WITH_PHP=""
.else
PLIST_SUB+=     WITH_PHP="@comment "
.endif

.if ${PORT_OPTIONS:MRUBY}
USE_RUBY=       yes
CONFIGURE_ARGS+=    --enable-ruby
CONFIGURE_ENV+=     RUBY="${RUBY}"
PLIST_SUB+=     WITH_RUBY=""
.else
PLIST_SUB+=     WITH_RUBY="@comment "
.endif

post-install:
    @${LN} -s ${PREFIX}/lib/libgeos-${PORTVERSION}.so ${PREFIX}/lib/libgeos.so.0

.include <bsd.port.mk>