aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-sdl
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ruby-sdl')
-rw-r--r--devel/ruby-sdl/Makefile37
-rw-r--r--devel/ruby-sdl/distinfo1
-rw-r--r--devel/ruby-sdl/files/patch-extconf.rb14
-rw-r--r--devel/ruby-sdl/pkg-comment1
-rw-r--r--devel/ruby-sdl/pkg-descr6
-rw-r--r--devel/ruby-sdl/pkg-plist15
6 files changed, 74 insertions, 0 deletions
diff --git a/devel/ruby-sdl/Makefile b/devel/ruby-sdl/Makefile
new file mode 100644
index 000000000000..a1d67870f231
--- /dev/null
+++ b/devel/ruby-sdl/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: Ruby/SDL
+# Date created: 27 Mar 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sdl
+PORTVERSION= 0.3
+CATEGORIES= devel graphics audio ruby
+MASTER_SITES= http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel \
+ SDL_image.10:${PORTSDIR}/graphics/sdl_image \
+ SDL_ttf.2:${PORTSDIR}/graphics/sdl_ttf \
+ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
+INSTALL_TARGET= site-install
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-sdl/distinfo b/devel/ruby-sdl/distinfo
new file mode 100644
index 000000000000..01b22b5d6d57
--- /dev/null
+++ b/devel/ruby-sdl/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/rubysdl-0.3.tar.gz) = eda1b2a059436d09fd308df20dedbaad
diff --git a/devel/ruby-sdl/files/patch-extconf.rb b/devel/ruby-sdl/files/patch-extconf.rb
new file mode 100644
index 000000000000..d0afb4ce6108
--- /dev/null
+++ b/devel/ruby-sdl/files/patch-extconf.rb
@@ -0,0 +1,14 @@
+--- extconf.rb.orig Sun Mar 25 17:10:56 2001
++++ extconf.rb Tue Mar 27 01:16:54 2001
+@@ -1,7 +1,9 @@
+ require 'mkmf'
+
+-$CFLAGS += `sdl-config --cflags`.chomp
+-$LDFLAGS += `sdl-config --libs`.chomp
++sdl_config = with_config('sdl-config', 'sdl-config')
++
++$CFLAGS += `#{sdl_config} --cflags`.chomp
++$LDFLAGS += `#{sdl_config} --libs`.chomp
+
+ if have_library("SDL_mixer","Mix_OpenAudio") then
+ $CFLAGS+= " -D HAVE_SDL_MIXER "
diff --git a/devel/ruby-sdl/pkg-comment b/devel/ruby-sdl/pkg-comment
new file mode 100644
index 000000000000..8293fa1ba953
--- /dev/null
+++ b/devel/ruby-sdl/pkg-comment
@@ -0,0 +1 @@
+Ruby extension library to use SDL library
diff --git a/devel/ruby-sdl/pkg-descr b/devel/ruby-sdl/pkg-descr
new file mode 100644
index 000000000000..2ca22568a3a6
--- /dev/null
+++ b/devel/ruby-sdl/pkg-descr
@@ -0,0 +1,6 @@
+Ruby/SDL is a Ruby extension library to use SDL library.
+Currently 3D features are unsupported.
+
+SGE support will be enabled after SGE is ported.
+
+Author: Ippei Obayashi <ohai@kmc.kyoto-u.ac.jp>
diff --git a/devel/ruby-sdl/pkg-plist b/devel/ruby-sdl/pkg-plist
new file mode 100644
index 000000000000..d8a3fa2b920d
--- /dev/null
+++ b/devel/ruby-sdl/pkg-plist
@@ -0,0 +1,15 @@
+%%RUBY_SITEARCHLIBDIR%%/rubysdl.so
+%%RUBY_SITELIBDIR%%/rubysdl.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/alpha.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/cdrom.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/font.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/joy.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/movesp.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/playwave.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/rotate.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/sgetest.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/testsprite.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/sdl
+%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/README
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/sdl/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/sdl