summaryrefslogtreecommitdiff
path: root/devel/ruby-sdl
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-26 18:05:55 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-26 18:05:55 +0000
commit50a862a7b9c0a0eab6b04098db62d227b8faf5c2 (patch)
treebde3c74c855ea1850d6c5151999c2782fe90037d /devel/ruby-sdl
parentinstall freetype-config. (diff)
Oops. The libc_r weirdness of 4-STABLE and prior prevents this from
working. Mark as broken for systems < 500018.
Notes
Notes: svn path=/head/; revision=40408
Diffstat (limited to 'devel/ruby-sdl')
-rw-r--r--devel/ruby-sdl/Makefile12
-rw-r--r--devel/ruby-sdl/files/patch-extconf.rb6
2 files changed, 13 insertions, 5 deletions
diff --git a/devel/ruby-sdl/Makefile b/devel/ruby-sdl/Makefile
index a1d67870f231..4f2e88e9e13c 100644
--- a/devel/ruby-sdl/Makefile
+++ b/devel/ruby-sdl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sdl
PORTVERSION= 0.3
+PORTREVISION= 1
CATEGORIES= devel graphics audio ruby
MASTER_SITES= http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@@ -23,9 +24,16 @@ LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel \
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
+CONFIGURE_ARGS= --with-sdl-config="sdl11-config" \
+ --with-cflags="-pthread" \
+ --with-ldflags="-lc_r"
INSTALL_TARGET= site-install
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500018
+BROKEN= "libc_r conflicts with libc on your system. (Ruby/SDL can be used on 5-CURRENT only)"
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
@@ -34,4 +42,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/ruby-sdl/files/patch-extconf.rb b/devel/ruby-sdl/files/patch-extconf.rb
index d0afb4ce6108..e92ab83a6e3e 100644
--- a/devel/ruby-sdl/files/patch-extconf.rb
+++ b/devel/ruby-sdl/files/patch-extconf.rb
@@ -1,5 +1,5 @@
--- extconf.rb.orig Sun Mar 25 17:10:56 2001
-+++ extconf.rb Tue Mar 27 01:16:54 2001
++++ extconf.rb Tue Mar 27 02:56:07 2001
@@ -1,7 +1,9 @@
require 'mkmf'
@@ -7,8 +7,8 @@
-$LDFLAGS += `sdl-config --libs`.chomp
+sdl_config = with_config('sdl-config', 'sdl-config')
+
-+$CFLAGS += `#{sdl_config} --cflags`.chomp
-+$LDFLAGS += `#{sdl_config} --libs`.chomp
++$CFLAGS += ' ' + `#{sdl_config} --cflags`.chomp
++$LDFLAGS += ' ' + `#{sdl_config} --libs`.chomp
if have_library("SDL_mixer","Mix_OpenAudio") then
$CFLAGS+= " -D HAVE_SDL_MIXER "