summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/ruby-gdal/Makefile40
-rw-r--r--graphics/ruby-gdal/distinfo2
-rw-r--r--graphics/ruby-gdal/pkg-descr3
-rw-r--r--graphics/ruby-gdal/pkg-plist5
5 files changed, 51 insertions, 0 deletions
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 <sunpoet@FreeBSD.org>
+#
+# $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 <bsd.port.mk>
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