summaryrefslogtreecommitdiff
path: root/graphics/ruby-gdk_imlib
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-02-28 12:54:30 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-02-28 12:54:30 +0000
commit77a2856cb024b7f2066c6ad2b4c41319ba160b4d (patch)
treefec7a74c11c82f511c6aec8407ffd82daec967f7 /graphics/ruby-gdk_imlib
parentAdd ruby-gnome, a set of Ruby bindings for GNOME which includes gnome, (diff)
Add ruby-gdk_imlib, a Ruby binding for GTK+.
Notes
Notes: svn path=/head/; revision=38887
Diffstat (limited to 'graphics/ruby-gdk_imlib')
-rw-r--r--graphics/ruby-gdk_imlib/Makefile46
-rw-r--r--graphics/ruby-gdk_imlib/files/patch-extconf.rb43
-rw-r--r--graphics/ruby-gdk_imlib/pkg-comment1
-rw-r--r--graphics/ruby-gdk_imlib/pkg-descr4
-rw-r--r--graphics/ruby-gdk_imlib/pkg-plist10
5 files changed, 104 insertions, 0 deletions
diff --git a/graphics/ruby-gdk_imlib/Makefile b/graphics/ruby-gdk_imlib/Makefile
new file mode 100644
index 000000000000..7ee256448fcd
--- /dev/null
+++ b/graphics/ruby-gdk_imlib/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: ruby-gdk_imlib
+# Date created: 28 February 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gdk_imlib
+PORTVERSION= ${RUBY_GNOME_PORTVERSION}
+CATEGORIES= graphics ruby
+MASTER_SITES= ${RUBY_GNOME_MASTER_SITES}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${RUBY_GNOME_DISTNAME}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+USE_XLIB= yes
+USE_GTK= yes
+USE_IMLIB= yes
+
+.include "${.CURDIR}/../../x11/ruby-gnome/Makefile.common"
+
+WRKSRC= ${RUBY_GNOME_WRKSRC}/${PORTNAME}
+INSTALL_TARGET= site-install
+CONFIGURE_ARGS= --with-glib-config="${GLIB_CONFIG}" \
+ --with-imlib-config="${IMLIB_CONFIG}"
+
+DOCS_EN= ChangeLog
+
+post-extract:
+ ${MV} ${WRKSRC:S/gdk_imlib$/gdkimlib/} ${WRKSRC}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${CP} -R ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ruby-gdk_imlib/files/patch-extconf.rb b/graphics/ruby-gdk_imlib/files/patch-extconf.rb
new file mode 100644
index 000000000000..2af7fa76438f
--- /dev/null
+++ b/graphics/ruby-gdk_imlib/files/patch-extconf.rb
@@ -0,0 +1,43 @@
+--- extconf.rb.orig Sat Jun 3 23:56:38 2000
++++ extconf.rb Wed Feb 28 20:53:13 2001
+@@ -1,27 +1,26 @@
+ require 'mkmf'
+
+-rubygtk_dir = "../gtk"
+-rubygtk_dir = ARGV[0] if ARGV[0]
++glib_config = with_config("glib-config", "glib-config")
++imlib_config = with_config("imlib-config", "imlib-config")
++
++while /^--/ =~ ARGV[0]
++ ARGV.shift
++end
++
++rubygtk_dir = ARGV.shift || "../gtk"
+ unless FileTest.exist?(rubygtk_dir)
+ print "directry '#{rubygtk_dir}' not found. Please specify Ruby/Gtk source dir.\n"
+ exit
+ end
+-gtklib_dir = []
+-`imlib-config --libs-gdk`.split(' ').each do |e|
+- if e=~ /^-L/ then
+- gtklib_dir.push(e)
+- end
+-end
+
+-$CFLAGS = "-g -I#{rubygtk_dir}/src " + `imlib-config --cflags-gdk`.chomp
+-$LDFLAGS = `imlib-config --libs-gdk`.chomp
++$CFLAGS += "-g -I#{rubygtk_dir}/src " + `#{glib_config} --cflags`.chomp + ' ' + `#{imlib_config} --cflags-gdk`.chomp
++$LDFLAGS += `#{glib_config} --libs`.chomp + ' ' + `#{imlib_config} --libs-gdk`.chomp
+
+ have_library("X11", "XOpenDisplay") &&
+ have_library("Xi", "XOpenDevice") &&
+ have_library("Xext", "XextFindDisplay") &&
+ have_library("Xmu", "XmuInternAtom") &&
+-have_library("glib", "g_print") &&
+-have_library("gdk", "gdk_init") &&
+-have_library("gdk_imlib", "gdk_imlib_init") &&
+-
++have_func("g_print") &&
++have_func("gdk_init") &&
++have_func("gdk_imlib_init") &&
+ create_makefile('gdk_imlib')
diff --git a/graphics/ruby-gdk_imlib/pkg-comment b/graphics/ruby-gdk_imlib/pkg-comment
new file mode 100644
index 000000000000..e222b3da35cc
--- /dev/null
+++ b/graphics/ruby-gdk_imlib/pkg-comment
@@ -0,0 +1 @@
+Ruby binding for GTK+
diff --git a/graphics/ruby-gdk_imlib/pkg-descr b/graphics/ruby-gdk_imlib/pkg-descr
new file mode 100644
index 000000000000..3173cbe4b1de
--- /dev/null
+++ b/graphics/ruby-gdk_imlib/pkg-descr
@@ -0,0 +1,4 @@
+Ruby/GTK is a Ruby binding for Gtk+.
+
+Author: Hiroshi Igarashi <igarashi@ueda.info.waseda.ac.jp>
+WWW: http://www.ruby-lang.org/gtk/en/
diff --git a/graphics/ruby-gdk_imlib/pkg-plist b/graphics/ruby-gdk_imlib/pkg-plist
new file mode 100644
index 000000000000..0bbcac680b49
--- /dev/null
+++ b/graphics/ruby-gdk_imlib/pkg-plist
@@ -0,0 +1,10 @@
+%%RUBY_SITEARCHLIBDIR%%/gdk_imlib.so
+%%RUBY_SITELIBDIR%%/gdk_imlib.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gdk_imlib/sample1.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gdk_imlib/sample2.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gdk_imlib/sample3.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gdk_imlib/sample4.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/gdk_imlib/sample5.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/gdk_imlib
+%%PORTDOCS%%%%RUBY_DOCDIR%%/gdk_imlib/ChangeLog
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gdk_imlib