blob: 9d38189613081e251b8c1d0814ef90b37893579a (
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
|
# Created by: Leonardo Martins <lmartins@nepe.eee.ufg.br>
# $FreeBSD$
PORTNAME= geos
PORTVERSION= 3.6.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
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= PYTHON RUBY
OPTIONS_SUB= yes
CONFIGURE_ARGS= ac_cv_path_SWIG=${LOCALBASE}/bin/swig3.0
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
USES= gmake libtool tar:bzip2
PLIST_SUB= PORTVERSION=${PORTVERSION}
PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30
PYTHON_CONFIGURE_ENABLE=python
PYTHON_USES= python:2.7
RUBY_BUILD_DEPENDS= swig3.0:devel/swig30
RUBY_CONFIGURE_ENABLE= ruby
RUBY_CONFIGURE_ENV= RUBY="${RUBY}"
RUBY_USE= RUBY=yes
post-patch:
@${REINPLACE_CMD} -e 's|-lstdc++||' ${WRKSRC}/tests/geostest/Makefile.in ${WRKSRC}/tests/thread/Makefile.in
post-configure:
@${FIND} ${WRKSRC} -name Makefile -exec ${REINPLACE_CMD} -e '/CXXFLAGS = / s| -O2||' {} \;
.include <bsd.port.mk>
|