pkgsrc/geography/gdal-lib/Makefile
asau 6754aacfb8 Follow f2c/libf2c split: bump revision of all packages
that list Fortran in used languages.
2009-12-03 13:06:51 +00:00

64 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2009/12/03 13:06:52 asau Exp $
#
DISTNAME= gdal-1.6.1
PKGNAME= gdal-lib-1.6.1
PKGREVISION= 2
CATEGORIES= geography
MASTER_SITES= http://download.osgeo.org/gdal/
MAINTAINER= brook@nmsu.edu
HOMEPAGE= http://www.gdal.org/
COMMENT= Translator library for raster geospatial data formats
PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++ fortran
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
MAKE_FILE= GNUmakefile
PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib
PKG_SUPPORTED_OPTIONS= pgsql mysql
PKG_SUGGESTED_OPTIONS= pgsql
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-pg
.else
CONFIGURE_ARGS+= --without-pg
.endif
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql
.else
CONFIGURE_ARGS+= --without-mysql
.endif
CONFIGURE_ARGS+= --with-libz=${BUILDLINK_PREFIX.zlib}/include
CONFIGURE_ARGS+= --with-xerces
CONFIGURE_ARGS+= --with-xerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
CONFIGURE_ARGS+= --with-xerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c
CONFIGURE_ARGS+= --with-geos
CONFIGURE_ARGS+= --without-python
CHECK_PORTABILITY_SKIP+= mkbindist.sh
INSTALLATION_DIRS= bin include lib man/man1 share/gdal
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../geography/geos/buildlink3.mk"
.include "../../misc/proj/buildlink3.mk"
.include "../../textproc/xerces-c/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"