aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/ruby-imlib2/Makefile38
-rw-r--r--graphics/ruby-imlib2/distinfo1
-rw-r--r--graphics/ruby-imlib2/files/patch-extconf.rb14
-rw-r--r--graphics/ruby-imlib2/pkg-comment1
-rw-r--r--graphics/ruby-imlib2/pkg-descr4
-rw-r--r--graphics/ruby-imlib2/pkg-plist16
7 files changed, 75 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 73bd0bee74b9..276a42f58682 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -281,6 +281,7 @@
SUBDIR += ruby-gdk_pixbuf
SUBDIR += ruby-gimp
SUBDIR += ruby-graph
+ SUBDIR += ruby-imlib2
SUBDIR += ruby-libpng
SUBDIR += ruby-ming
SUBDIR += ruby-opengl
diff --git a/graphics/ruby-imlib2/Makefile b/graphics/ruby-imlib2/Makefile
new file mode 100644
index 000000000000..8ce059fb2b2e
--- /dev/null
+++ b/graphics/ruby-imlib2/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: Imlib2-Ruby
+# Date created: 7 April 2002
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= imlib2
+PORTVERSION= 0.2.0
+CATEGORIES= graphics ruby
+MASTER_SITES= http://www.pablotron.org/download/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= Imlib2.1:${PORTSDIR}/graphics/imlib2
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-ruby
+INSTALL_TARGET= site-install
+
+DOCS= ChangeLog README TODO doc/api.txt
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${CP} -R ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ruby-imlib2/distinfo b/graphics/ruby-imlib2/distinfo
new file mode 100644
index 000000000000..0472b5bdb6ad
--- /dev/null
+++ b/graphics/ruby-imlib2/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/imlib2-ruby-0.2.0.tar.gz) = 7edf4326581fce075e5372254f27efdf
diff --git a/graphics/ruby-imlib2/files/patch-extconf.rb b/graphics/ruby-imlib2/files/patch-extconf.rb
new file mode 100644
index 000000000000..e671b78e5eef
--- /dev/null
+++ b/graphics/ruby-imlib2/files/patch-extconf.rb
@@ -0,0 +1,14 @@
+--- extconf.rb.orig Sun Mar 24 10:14:53 2002
++++ extconf.rb Sun Apr 7 02:59:24 2002
+@@ -1,3 +1,9 @@
+ require 'mkmf'
+-have_library("Imlib2", "imlib_create_image")
+-create_makefile("imlib2")
++
++imlib2_config = with_config("imlib2-config", "imlib2-config")
++
++$CFLAGS << ' ' << `#{imlib2_config} --cflags`.chomp
++$LDFLAGS << ' ' << `#{imlib2_config} --libs`.chomp
++
++have_library("Imlib2", "imlib_create_image") and
++ create_makefile("imlib2")
diff --git a/graphics/ruby-imlib2/pkg-comment b/graphics/ruby-imlib2/pkg-comment
new file mode 100644
index 000000000000..6f043a15a3dc
--- /dev/null
+++ b/graphics/ruby-imlib2/pkg-comment
@@ -0,0 +1 @@
+Imlib2 bindings for Ruby
diff --git a/graphics/ruby-imlib2/pkg-descr b/graphics/ruby-imlib2/pkg-descr
new file mode 100644
index 000000000000..81754f6a7e9d
--- /dev/null
+++ b/graphics/ruby-imlib2/pkg-descr
@@ -0,0 +1,4 @@
+This is Imlib2 bindings for Ruby.
+
+Author: Paul Duncan (pabs) <pabs@pablotron.org>
+WWW: http://www.pablotron.org/software/imlib2-ruby/
diff --git a/graphics/ruby-imlib2/pkg-plist b/graphics/ruby-imlib2/pkg-plist
new file mode 100644
index 000000000000..cfb4e65191b8
--- /dev/null
+++ b/graphics/ruby-imlib2/pkg-plist
@@ -0,0 +1,16 @@
+%%RUBY_SITEARCHLIBDIR%%/imlib2.so
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/checkerboard.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/checkerboard2.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/fonts/20thcent.ttf
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/images/bill_gates.jpg
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/images/clown.jpg
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/test_font.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/imlib2/test_imlib2.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/imlib2/fonts
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/imlib2/images
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/imlib2
+%%PORTDOCS%%%%RUBY_DOCDIR%%/imlib2/ChangeLog
+%%PORTDOCS%%%%RUBY_DOCDIR%%/imlib2/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/imlib2/TODO
+%%PORTDOCS%%%%RUBY_DOCDIR%%/imlib2/api.txt
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/imlib2