freebsd-ports/graphics/geos/Makefile
2016-12-26 16:43:32 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Leonardo Martins <lmartins@nepe.eee.ufg.br>
# $FreeBSD$
PORTNAME= geos
PORTVERSION= 3.6.1
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
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>