From 3871e624e70596fe5ea88a39e3b1d93bab786e51 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Tue, 12 Jun 2012 18:24:24 +0000 Subject: [PATCH] - Add ruby-gdal 1.9.1 This port is the Ruby binding for GDAL (Geospatial Data Abstraction Library). WWW: http://www.gdal.org/ --- graphics/Makefile | 1 + graphics/ruby-gdal/Makefile | 40 ++++++++++++++++++++++++++++++++++++ graphics/ruby-gdal/distinfo | 2 ++ graphics/ruby-gdal/pkg-descr | 3 +++ graphics/ruby-gdal/pkg-plist | 5 +++++ 5 files changed, 51 insertions(+) create mode 100644 graphics/ruby-gdal/Makefile create mode 100644 graphics/ruby-gdal/distinfo create mode 100644 graphics/ruby-gdal/pkg-descr create mode 100644 graphics/ruby-gdal/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index 5935007b439d..aa4d8fa5a3f6 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -864,6 +864,7 @@ SUBDIR += ristretto SUBDIR += ruby-cairo SUBDIR += ruby-gd + SUBDIR += ruby-gdal SUBDIR += ruby-gdk_pixbuf2 SUBDIR += ruby-image_size SUBDIR += ruby-imlib2 diff --git a/graphics/ruby-gdal/Makefile b/graphics/ruby-gdal/Makefile new file mode 100644 index 000000000000..ab67f4ef5aa2 --- /dev/null +++ b/graphics/ruby-gdal/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: ruby-gdal +# Date created: 2012-03-06 +# Whom: Sunpoet Po-Chuan Hsieh +# +# $FreeBSD$ +# + +PORTNAME= gdal +PORTVERSION= 1.9.1 +CATEGORIES= graphics ruby +MASTER_SITES= http://download.osgeo.org/gdal/ \ + ftp://ftp.remotesensing.org/pub/gdal/ \ + LOCAL/sunpoet +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Ruby binding for GDAL + +BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 +LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal + +LIBTOOLFILES= # empty +MAKE_ARGS= USER_DEFS=-fPIC +MAKEFILE= GNUmakefile +USE_AUTOTOOLS= libtool +USE_GMAKE= yes +USE_RUBY= yes +WRKSRC= ${WRKDIR}/${DISTNAME}/swig/ruby + +post-patch: + @${REINPLACE_CMD} -e 's|Config::CONFIG|Rb&|' ${WRKSRC}/RubyMakefile.mk + +do-configure: + @${DO_NADA} + +pre-build: + ${SED} -e '/^GDAL_ROOT/d' ${DATADIR}/GDALmake.opt > ${WRKSRC}/../../GDALmake.opt + ${CP} ${LOCALBASE}/include/cpl_config.h ${WRKSRC}/../../port/ + +.include diff --git a/graphics/ruby-gdal/distinfo b/graphics/ruby-gdal/distinfo new file mode 100644 index 000000000000..362a722e3f60 --- /dev/null +++ b/graphics/ruby-gdal/distinfo @@ -0,0 +1,2 @@ +SHA256 (gdal-1.9.1.tar.gz) = 5b829e91c5d6c6c9af23fe6322e51bae9339e8805d52724cb0ad0b741aef7fa9 +SIZE (gdal-1.9.1.tar.gz) = 9487505 diff --git a/graphics/ruby-gdal/pkg-descr b/graphics/ruby-gdal/pkg-descr new file mode 100644 index 000000000000..480c04944d86 --- /dev/null +++ b/graphics/ruby-gdal/pkg-descr @@ -0,0 +1,3 @@ +This port is the Ruby binding for GDAL (Geospatial Data Abstraction Library). + +WWW: http://www.gdal.org/ diff --git a/graphics/ruby-gdal/pkg-plist b/graphics/ruby-gdal/pkg-plist new file mode 100644 index 000000000000..cf18fb6fe9d1 --- /dev/null +++ b/graphics/ruby-gdal/pkg-plist @@ -0,0 +1,5 @@ +%%RUBY_SITEARCHLIBDIR%%/gdal/gdal.so +%%RUBY_SITEARCHLIBDIR%%/gdal/gdalconst.so +%%RUBY_SITEARCHLIBDIR%%/gdal/ogr.so +%%RUBY_SITEARCHLIBDIR%%/gdal/osr.so +@dirrm %%RUBY_SITEARCHLIBDIR%%/gdal