diff options
author | knu <knu@FreeBSD.org> | 2001-04-10 08:10:50 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-04-10 08:10:50 +0000 |
commit | 8382319fc14096dfbe301fbc94b410a63b9eb82c (patch) | |
tree | 9d7ab36413a4938fee3854aa5c992fa82a12ca72 | |
parent | a344de4590c8a7721804a6a6c9366fd06972ef87 (diff) | |
download | FreeBSD-ports-8382319fc14096dfbe301fbc94b410a63b9eb82c.zip FreeBSD-ports-8382319fc14096dfbe301fbc94b410a63b9eb82c.tar.gz |
Add ruby-rudl, a high level library to use SDL from Ruby, rather than
just a direct API wrapper. (cf. Ruby/SDL)
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/ruby-rudl/Makefile | 40 | ||||
-rw-r--r-- | devel/ruby-rudl/distinfo | 1 | ||||
-rw-r--r-- | devel/ruby-rudl/files/patch-extconf.rb | 35 | ||||
-rw-r--r-- | devel/ruby-rudl/pkg-comment | 1 | ||||
-rw-r--r-- | devel/ruby-rudl/pkg-descr | 7 | ||||
-rw-r--r-- | devel/ruby-rudl/pkg-plist | 9 |
7 files changed, 94 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 124c0ca..400ae3c 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 0000000..cfb2fea --- /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 0000000..170baa7 --- /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 0000000..388ffa1 --- /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 0000000..7ce0071 --- /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 0000000..f46fe5e --- /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 0000000..d41db20 --- /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 |