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

PORTNAME=   geos
PORTVERSION=    3.4.2
PORTREVISION=   2
CATEGORIES= graphics geography
MASTER_SITES=   http://download.osgeo.org/geos/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    GEOS implements all the OpenGIS "Simple Features for SQL"

LICENSE=    LGPL21

OPTIONS_DEFINE= PHP PYTHON RUBY
OPTIONS_SUB=    yes

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USES=       gmake libtool tar:bzip2

PLIST_SUB=  PORTVERSION=${PORTVERSION}

PHP_BUILD_DEPENDS=  ${LOCALBASE}/bin/swig1.3:${PORTSDIR}/devel/swig13
PHP_CONFIGURE_ENABLE=   php
PHP_USE=        PHP=yes PHP_BUILD=yes
PYTHON_BUILD_DEPENDS=   ${LOCALBASE}/bin/swig1.3:${PORTSDIR}/devel/swig13
PYTHON_CONFIGURE_ENABLE=python
PYTHON_USE=     PYTHON=2
RUBY_BUILD_DEPENDS= ${LOCALBASE}/bin/swig1.3:${PORTSDIR}/devel/swig13
RUBY_CONFIGURE_ENABLE=  ruby
RUBY_CONFIGURE_ENV= RUBY="${RUBY}"
RUBY_USE=       RUBY=yes

post-install:
    ${LN} -s ${PREFIX}/lib/libgeos-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libgeos.so.0
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgeos-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libgeos_c.so.1.8.2

.include <bsd.port.mk>