2013-05-31 15:00:08 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2013/05/31 15:00:08 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
|
|
|
|
2013-05-31 15:00:08 +00:00
|
|
|
V = 1.10.0
|
2011-06-22 13:07:32 +00:00
|
|
|
DISTNAME = gdal-${V}
|
2012-10-18 07:09:29 +00:00
|
|
|
SHARED_ONLY = Yes
|
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
|
|
|
|
2013-05-31 15:00:08 +00:00
|
|
|
SHARED_LIBS = gdal 20.0 #18.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 \
|
|
|
|
graphics/png \
|
|
|
|
graphics/libungif \
|
|
|
|
graphics/jpeg \
|
|
|
|
graphics/jasper \
|
2013-05-31 15:00:08 +00:00
|
|
|
devel/pcre \
|
|
|
|
devel/proj \
|
2011-06-22 13:07:32 +00:00
|
|
|
devel/geotiff
|
|
|
|
|
|
|
|
WANTLIB-main = ${WANTLIB} c crypto expat m ssl stdc++ z tiff \
|
|
|
|
curl pq geos geos_c idn png gif jpeg jasper geotiff \
|
2013-05-31 15:00:08 +00:00
|
|
|
com_err proj pthread freexl pcre spatialite sqlite3 xml2
|
|
|
|
|
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
|
2012-10-18 07:09:29 +00:00
|
|
|
WANTLIB-perl = gdal crypto curl expat geos_c geotiff gif idn \
|
2012-08-23 13:52:39 +00:00
|
|
|
jasper jpeg m png pq ssl tiff z pthread \
|
2013-05-31 15:00:08 +00:00
|
|
|
freexl pcre spatialite xml2 \
|
2012-08-23 13:52:39 +00:00
|
|
|
${MODGETTEXT_WANTLIB}
|
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
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include \
|
2009-02-09 23:07:05 +00:00
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2010-11-21 09:37:40 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread"
|
2009-03-13 08:56:52 +00:00
|
|
|
|
2011-06-22 13:07:32 +00:00
|
|
|
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
|
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 \
|
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} \
|
|
|
|
--with-jasper=${LOCALBASE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|