openbsd-ports/geo/gdal/Makefile

107 lines
2.4 KiB
Makefile
Raw Normal View History

2010-11-17 03:05:12 -05:00
# $OpenBSD: Makefile,v 1.14 2010/11/17 08:05:12 espie Exp $
COMMENT-main= translator library for geospatial data formats
COMMENT-python= python bindings and utilities for GDAL
COMMENT-perl= perl bindings for GDAL
V= 1.6.1
DISTNAME= gdal-${V}
PKGNAME-main= ${DISTNAME}
PKGNAME-python= py-${DISTNAME}
2010-09-24 11:29:20 -04:00
REVISION-main = 1
REVISION-perl = 1
REVISION-python = 1
PKGNAME-perl= p5-Geo-GDAL-${V}
SHARED_LIBS= gdal 15.0
CATEGORIES= geo devel
HOMEPAGE = http://www.gdal.org/
MAINTAINER = Landry Breuil <gaston@gcu.info>
# MIT/X
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES = http://download.osgeo.org/gdal/
MODULES = perl lang/python devel/gettext
WANTLIB-main = ${WANTLIB} c crypto expat m ssl stdc++ z
2009-03-14 08:52:14 -04:00
WANTLIB-perl = crypto curl expat geos_c geotiff gif idn jasper jpeg m \
2010-09-24 11:29:20 -04:00
perl png pq ssl tiff z
2010-11-06 12:07:00 -04:00
WANTLIB-python =
LIB_DEPENDS-main = ${LIB_DEPENDS} \
2010-11-17 03:05:12 -05:00
graphics/tiff \
net/curl \
databases/postgresql \
geo/geos \
devel/libidn \
graphics/png \
graphics/libungif \
graphics/jpeg \
graphics/jasper \
devel/geotiff
2010-11-07 14:12:42 -05:00
WANTLIB-main += tiff curl pq geos geos_c idn png gif jpeg jasper geotiff
2010-11-17 03:05:12 -05:00
LIB_DEPENDS-python= ${PKGNAME}:${BASE_PKGPATH},-main
2010-11-07 14:12:42 -05:00
WANTLIB-python += gdal
2010-11-17 03:05:12 -05:00
LIB_DEPENDS-perl= ${PKGNAME}:${BASE_PKGPATH},-main
2010-11-07 14:12:42 -05:00
WANTLIB-perl += gdal
2010-11-17 03:05:12 -05:00
RUN_DEPENDS+= math/py-numpy
BUILD_DEPENDS+= ${RUN_DEPENDS} devel/swig
MULTI_PACKAGES= -main -python -perl
MODPY_SETUPTOOLS=Yes
MODPY_EGG_VERSION=${V}
NO_REGRESS= Yes
MAKE_FILE= GNUmakefile
MAKE_FLAGS= LIBTOOL_FINISH=:
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--without-cfitsio \
--without-netcdf \
--without-xerces \
--without-mysql \
--without-sqlite3 \
--without-odbc \
--without-oci \
--without-grass \
--without-idb \
--without-sde \
--without-libgrass \
--without-php \
--without-ruby \
--without-ogpython \
--without-threads \
--with-png-inc="${LOCALBASE}/include/libpng" \
--with-png-lib="${LOCALBASE}/lib" \
--with-pg=${LOCALBASE}/bin/pg_config \
--with-python \
--with-perl \
--with-geos \
--with-curl=${LOCALBASE} \
--with-tiff=${LOCALBASE} \
--with-gif=${LOCALBASE} \
--with-jpeg=${LOCALBASE} \
--with-jasper=${LOCALBASE}
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure
.include <bsd.port.mk>