aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-10 08:10:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-10 08:10:50 +0000
commit866400759e4d51fc130e8f727ed860876a73cf02 (patch)
tree2b85fef91205fa39f770171a98f1789bb6446e5c /devel
parent3021165e32d6d5afd929311ce1eea9379818e945 (diff)
downloadports-866400759e4d51fc130e8f727ed860876a73cf02.tar.gz
ports-866400759e4d51fc130e8f727ed860876a73cf02.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ruby-rudl/Makefile40
-rw-r--r--devel/ruby-rudl/distinfo1
-rw-r--r--devel/ruby-rudl/files/patch-extconf.rb35
-rw-r--r--devel/ruby-rudl/pkg-comment1
-rw-r--r--devel/ruby-rudl/pkg-descr7
-rw-r--r--devel/ruby-rudl/pkg-plist9
7 files changed, 94 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 124c0ca2b226..400ae3ceb4a3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -397,6 +397,7 @@
SUBDIR += ruby-racc
SUBDIR += ruby-racc-runtime
SUBDIR += ruby-rbison
+ SUBDIR += ruby-rudl
SUBDIR += ruby-sdl
SUBDIR += ruby-slang
SUBDIR += ruby-strscan
diff --git a/devel/ruby-rudl/Makefile b/devel/ruby-rudl/Makefile
new file mode 100644
index 000000000000..cfb2feae4829
--- /dev/null
+++ b/devel/ruby-rudl/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: RuDL
+# Date created: 10 April 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= rudl
+PORTVERSION= 0.1
+CATEGORIES= devel ruby
+MASTER_SITES= http://froukepc.dhs.org/rudl/download/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
+INSTALL_TARGET= site-install
+
+DOCS= README
+
+post-patch:
+ ${RUBY} -i -pe 'gsub %r:\.\./:, ""' ${WRKSRC}/samples/*.rb
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/samples/* ${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/devel/ruby-rudl/distinfo b/devel/ruby-rudl/distinfo
new file mode 100644
index 000000000000..170baa727149
--- /dev/null
+++ b/devel/ruby-rudl/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/rudl-0.1.tar.gz) = c7c0ec7be27aaec8f2a35841cd41b334
diff --git a/devel/ruby-rudl/files/patch-extconf.rb b/devel/ruby-rudl/files/patch-extconf.rb
new file mode 100644
index 000000000000..388ffa185c81
--- /dev/null
+++ b/devel/ruby-rudl/files/patch-extconf.rb
@@ -0,0 +1,35 @@
+--- extconf.rb.orig Tue Apr 10 07:12:54 2001
++++ extconf.rb Tue Apr 10 16:56:53 2001
+@@ -5,20 +5,20 @@
+
+ makeMakefile=false
+
+-havePthread=have_library('pthread')
++sdl_config = with_config("sdl-config", "sdl-config")
+
+-if have_library('SDL', 'SDL_Quit') and
+- have_library('SDLmain') then
++have_library('pthread')
+
+- if /mswin32|cygwin/ =~ RUBY_PLATFORM then
+- # Make sure SDL.h is to be found somewhere!
+- makeMakefile=have_header('SDL.h')
+- else
+- $CFLAGS += `sdl-config --cflags`.chomp
+- $LDFLAGS += `sdl-config --libs`.chomp
+- makeMakefile=have_header('SDL.h') and havePthread
+- end
++if /mswin32|cygwin/ =~ RUBY_PLATFORM then
++ have_library('SDL', 'SDL_Quit')
++ have_library('SDLmain')
++else
++ $CFLAGS += `#{sdl_config} --cflags`.chomp
++ $LDFLAGS += `#{sdl_config} --libs`.chomp
+ end
+
+-if makeMakefile then create_makefile('RuDL') end
++if have_func('SDL_Quit') then
++ makeMakefile=have_header('SDL.h')
++end
+
++if makeMakefile then create_makefile('RuDL') end
diff --git a/devel/ruby-rudl/pkg-comment b/devel/ruby-rudl/pkg-comment
new file mode 100644
index 000000000000..7ce0071307d6
--- /dev/null
+++ b/devel/ruby-rudl/pkg-comment
@@ -0,0 +1 @@
+A high level library to use SDL from Ruby
diff --git a/devel/ruby-rudl/pkg-descr b/devel/ruby-rudl/pkg-descr
new file mode 100644
index 000000000000..f46fe5e91c07
--- /dev/null
+++ b/devel/ruby-rudl/pkg-descr
@@ -0,0 +1,7 @@
+RuDL: Rubified or Rubyesque Directmedia Layer
+
+This is a high level library to access the low level multimedia power
+of SDL, rather than just a direct API wrapper. (cf. Ruby/SDL)
+
+WWW: http://froukepc.dhs.org/rudl/index.html
+Author: Danny van Bruggen <danny@froukepc.dhs.org>
diff --git a/devel/ruby-rudl/pkg-plist b/devel/ruby-rudl/pkg-plist
new file mode 100644
index 000000000000..d41db20c342b
--- /dev/null
+++ b/devel/ruby-rudl/pkg-plist
@@ -0,0 +1,9 @@
+%%RUBY_SITEARCHLIBDIR%%/RuDL.so
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rudl/256col.bmp
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rudl/bounce.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rudl/bounceme.bmp
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rudl/test.bmp
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rudl/test.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/rudl
+%%PORTDOCS%%%%RUBY_DOCDIR%%/rudl/README
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/rudl