diff options
author | knu <knu@FreeBSD.org> | 2001-02-28 12:54:30 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-02-28 12:54:30 +0000 |
commit | 1564f0818ca69daa0c5c2688d827e2197c61ddf2 (patch) | |
tree | e35910fc549f01567c2af991c7ef359463a1d000 /graphics | |
parent | 1bb450f63f61ccdb7e81704b893f93ffa5faa7a1 (diff) | |
download | FreeBSD-ports-1564f0818ca69daa0c5c2688d827e2197c61ddf2.zip FreeBSD-ports-1564f0818ca69daa0c5c2688d827e2197c61ddf2.tar.gz |
Add ruby-gdk_imlib, a Ruby binding for GTK+.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/ruby-gdk_imlib/Makefile | 46 | ||||
-rw-r--r-- | graphics/ruby-gdk_imlib/files/patch-extconf.rb | 43 | ||||
-rw-r--r-- | graphics/ruby-gdk_imlib/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/ruby-gdk_imlib/pkg-descr | 4 | ||||
-rw-r--r-- | graphics/ruby-gdk_imlib/pkg-plist | 10 |
6 files changed, 105 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 13fdc34..0b55c1a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -176,6 +176,7 @@ SUBDIR += qvplay SUBDIR += rayshade SUBDIR += ruby-gd + SUBDIR += ruby-gdk_imlib SUBDIR += ruby-libpng SUBDIR += ruby-ming SUBDIR += ruby-opengl diff --git a/graphics/ruby-gdk_imlib/Makefile b/graphics/ruby-gdk_imlib/Makefile new file mode 100644 index 0000000..7ee2564 --- /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 0000000..2af7fa7 --- /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 0000000..e222b3d --- /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 0000000..3173cbe --- /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 0000000..0bbcac6 --- /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 |