2016-05-15 12:18:26 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.46 2016/05/15 12:18:26 landry Exp $
|
2009-02-09 23:07:05 +00:00
|
|
|
|
2011-06-22 13:07:32 +00:00
|
|
|
COMMENT-main = translator library for geospatial data formats
|
|
|
|
COMMENT-python =python bindings and utilities for GDAL
|
|
|
|
COMMENT-perl = perl bindings for GDAL
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2016-05-15 12:18:26 +00:00
|
|
|
V = 2.1.0
|
2011-06-22 13:07:32 +00:00
|
|
|
DISTNAME = gdal-${V}
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2011-06-22 13:07:32 +00:00
|
|
|
PKGNAME-main = ${DISTNAME}
|
|
|
|
PKGNAME-python =py-${DISTNAME}
|
|
|
|
PKGNAME-perl = p5-Geo-GDAL-${V}
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2016-05-15 12:18:26 +00:00
|
|
|
SHARED_LIBS = gdal 25.0 #21.0
|
2011-06-22 13:07:32 +00:00
|
|
|
CATEGORIES = geo devel
|
2009-02-09 23:07:05 +00:00
|
|
|
|
|
|
|
HOMEPAGE = http://www.gdal.org/
|
|
|
|
|
2011-06-22 12:53:12 +00:00
|
|
|
MAINTAINER = Landry Breuil <landry@openbsd.org>
|
2009-02-09 23:07:05 +00:00
|
|
|
|
|
|
|
# MIT/X
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2013-05-31 15:00:08 +00:00
|
|
|
MASTER_SITES = http://download.osgeo.org/gdal/${V}/
|
2009-02-09 23:07:05 +00:00
|
|
|
|
2009-03-14 11:05:50 +00:00
|
|
|
MODULES = perl lang/python devel/gettext
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2011-06-22 13:07:32 +00:00
|
|
|
MULTI_PACKAGES = -main -python -perl
|
2009-03-13 08:56:52 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} \
|
2011-06-22 13:07:32 +00:00
|
|
|
graphics/tiff \
|
|
|
|
net/curl \
|
|
|
|
databases/postgresql \
|
|
|
|
geo/geos \
|
2013-05-31 15:00:08 +00:00
|
|
|
geo/spatialite/libspatialite \
|
2011-06-22 13:07:32 +00:00
|
|
|
devel/libidn \
|
2014-05-04 20:17:35 +00:00
|
|
|
devel/json-c \
|
2011-06-22 13:07:32 +00:00
|
|
|
graphics/png \
|
2013-09-25 07:56:56 +00:00
|
|
|
graphics/giflib \
|
2011-06-22 13:07:32 +00:00
|
|
|
graphics/jpeg \
|
|
|
|
graphics/jasper \
|
2013-10-30 15:22:33 +00:00
|
|
|
graphics/openjp2 \
|
2013-05-31 15:00:08 +00:00
|
|
|
devel/pcre \
|
|
|
|
devel/proj \
|
2011-06-22 13:07:32 +00:00
|
|
|
devel/geotiff
|
|
|
|
|
2014-05-04 20:17:35 +00:00
|
|
|
WANTLIB-main = ${WANTLIB} c expat m stdc++ z tiff openjp2 ssl crypto \
|
|
|
|
curl pq geos geos_c idn png gif jpeg jasper json-c geotiff \
|
2016-05-15 12:18:26 +00:00
|
|
|
proj pthread freexl pcre spatialite sqlite3 xml2 lzma nghttp2
|
2013-05-31 15:00:08 +00:00
|
|
|
|
2011-06-22 13:07:32 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS-python = ${PKGNAME}:${BASE_PKGPATH},-main
|
2012-10-18 07:09:29 +00:00
|
|
|
WANTLIB-python = ${MODPY_WANTLIB} gdal m pthread stdc++
|
2011-06-22 13:07:32 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS-perl = ${PKGNAME}:${BASE_PKGPATH},-main
|
2016-05-15 12:18:26 +00:00
|
|
|
WANTLIB-perl = gdal
|
2011-06-22 13:07:32 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS += math/py-numpy
|
|
|
|
BUILD_DEPENDS += ${RUN_DEPENDS} devel/swig
|
|
|
|
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
MODPY_EGG_VERSION = ${V}
|
2011-07-01 08:04:57 +00:00
|
|
|
MODPY_ADJ_FILES = swig/python/scripts/*.py
|
2011-06-22 13:07:32 +00:00
|
|
|
|
|
|
|
MAKE_FILE = GNUmakefile
|
|
|
|
MAKE_FLAGS = LIBTOOL_FINISH=:
|
|
|
|
USE_GMAKE = Yes
|
2013-03-11 11:02:49 +00:00
|
|
|
NO_TEST = Yes
|
2011-06-22 13:07:32 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
2013-06-04 18:41:39 +00:00
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
2010-11-21 09:37:40 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread"
|
2015-07-20 14:45:37 +00:00
|
|
|
INSTALL_TARGET = install install-man
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS =--without-hdf5 \
|
2009-02-09 23:07:05 +00:00
|
|
|
--without-cfitsio \
|
|
|
|
--without-netcdf \
|
|
|
|
--without-xerces \
|
|
|
|
--without-mysql \
|
|
|
|
--without-odbc \
|
|
|
|
--without-oci \
|
|
|
|
--without-grass \
|
|
|
|
--without-idb \
|
|
|
|
--without-sde \
|
|
|
|
--without-libgrass \
|
|
|
|
--without-php \
|
|
|
|
--without-ruby \
|
2009-03-13 08:56:52 +00:00
|
|
|
--with-pg=${LOCALBASE}/bin/pg_config \
|
|
|
|
--with-python \
|
2009-03-14 11:05:50 +00:00
|
|
|
--with-perl \
|
2009-03-13 08:56:52 +00:00
|
|
|
--with-geos \
|
2016-05-15 12:18:26 +00:00
|
|
|
--with-gnm \
|
2013-05-31 15:00:08 +00:00
|
|
|
--with-freexl=${LOCALBASE} \
|
|
|
|
--with-spatialite=${LOCALBASE} \
|
2010-11-21 09:37:40 +00:00
|
|
|
--with-png=${LOCALBASE} \
|
|
|
|
--with-geotiff=${LOCALBASE} \
|
2011-06-22 12:53:12 +00:00
|
|
|
--with-libtiff=${LOCALBASE} \
|
2009-03-13 08:56:52 +00:00
|
|
|
--with-curl=${LOCALBASE} \
|
2009-02-09 23:07:05 +00:00
|
|
|
--with-gif=${LOCALBASE} \
|
|
|
|
--with-jpeg=${LOCALBASE} \
|
2014-05-04 20:17:35 +00:00
|
|
|
--with-libjson-c=${LOCALBASE} \
|
2009-02-09 23:07:05 +00:00
|
|
|
--with-jasper=${LOCALBASE}
|
|
|
|
|
2016-02-07 12:28:28 +00:00
|
|
|
post-install:
|
|
|
|
rm ${PREFIX}/man/man1/_home_rouault_dist_wrk_gdal_apps_.1
|
|
|
|
|
2009-02-09 23:07:05 +00:00
|
|
|
.include <bsd.port.mk>
|