1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Add ruby-rudl, a high level library to use SDL from Ruby, rather than

just a direct API wrapper. (cf. Ruby/SDL)
This commit is contained in:
Akinori MUSHA 2001-04-10 08:10:50 +00:00
parent 3021165e32
commit 866400759e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41178
7 changed files with 94 additions and 0 deletions

View File

@ -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

40
devel/ruby-rudl/Makefile Normal file
View File

@ -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>

1
devel/ruby-rudl/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (ruby/rudl-0.1.tar.gz) = c7c0ec7be27aaec8f2a35841cd41b334

View File

@ -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

View File

@ -0,0 +1 @@
A high level library to use SDL from Ruby

View File

@ -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>

View File

@ -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