diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-04-27 11:48:01 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-04-27 11:48:01 +0000 |
commit | dc805475e8582bb9986076c91ad89eb0ab34831d (patch) | |
tree | 12d214fdb5a53c02139a1e87d08443da182c58ae /devel/ruby-sdl | |
parent | 583b5fc1e328234321cfa40bc2ce9c2a8931df68 (diff) | |
download | ports-dc805475e8582bb9986076c91ad89eb0ab34831d.tar.gz ports-dc805475e8582bb9986076c91ad89eb0ab34831d.zip |
Update to 0.5.
Notes
Notes:
svn path=/head/; revision=41952
Diffstat (limited to 'devel/ruby-sdl')
-rw-r--r-- | devel/ruby-sdl/Makefile | 24 | ||||
-rw-r--r-- | devel/ruby-sdl/distinfo | 2 | ||||
-rw-r--r-- | devel/ruby-sdl/pkg-plist | 4 |
3 files changed, 25 insertions, 5 deletions
diff --git a/devel/ruby-sdl/Makefile b/devel/ruby-sdl/Makefile index 617f60dc087a..40cea2791055 100644 --- a/devel/ruby-sdl/Makefile +++ b/devel/ruby-sdl/Makefile @@ -6,8 +6,7 @@ # PORTNAME= sdl -PORTVERSION= 0.4 -PORTREVISION= 1 +PORTVERSION= 0.5 CATEGORIES= devel graphics audio ruby MASTER_SITES= http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} @@ -16,26 +15,43 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org +BUILD_DEPENDS= ${NONEXISTENT}:${RUBY_OPENGL_PORTDIR}:patch LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12 \ SDL_image.10:${PORTSDIR}/graphics/sdl_image \ SDL_ttf.2:${PORTSDIR}/graphics/sdl_ttf \ SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer +RUBY_OPENGL_PORTDIR= ${.CURDIR}/../../graphics/ruby-opengl +RUBY_OPENGL_WRKSRC_CMD= cd ${RUBY_OPENGL_PORTDIR} && ${MAKE} -V WRKSRC + USE_RUBY= yes USE_RUBY_EXTCONF= yes .if !defined(NOPORTDOCS) USE_RUBY_RD= yes .endif -CONFIGURE_ARGS= --with-sdl-config="sdl11-config" +CONFIGURE_ARGS= --with-sdl-config="sdl11-config" \ + --enable-opengl --linkoglmodule \ + --with-x11-dir="${X11BASE}" INSTALL_TARGET= site-install RD_DOCS_EN= rubysdl_doc.en.rd -RD_DOCS_JA= rubysdl_doc.rd +RD_DOCS_JA= rubysdl_doc.rd event2_doc.rd DOCS_EN= README.en ${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd$/.html/} DOCS_JA= README.ja ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd$/.html/} +post-extract: + dir=`${RUBY_OPENGL_WRKSRC_CMD}`; \ + for f in rbogl.h rbogl.c ogl.c glu.c; do \ + ${LN} -fs $$dir/$$f ${WRKSRC}/; \ + done + +post-patch: + ${RUBY} -i -pe '/require \x27mkmf\x27/ and $$_ += "dir_config(\x27x11\x27)\n"' \ + ${WRKSRC}/${RUBY_EXTCONF} + cd ${WRKSRC} && ${PATCH} -p1 < sdlgl.patch + post-build: .if !defined(NOPORTDOCS) .for f in ${RD_DOCS_EN} ${RD_DOCS_JA} diff --git a/devel/ruby-sdl/distinfo b/devel/ruby-sdl/distinfo index 4cbf2524f12e..e0d3129f523c 100644 --- a/devel/ruby-sdl/distinfo +++ b/devel/ruby-sdl/distinfo @@ -1 +1 @@ -MD5 (ruby/rubysdl-0.4.tar.gz) = 86c9bd0a13cfb9f796b6c30a40765ef3 +MD5 (ruby/rubysdl-0.5.tar.gz) = 64280dce699cd577ef25727fa0b4c98f diff --git a/devel/ruby-sdl/pkg-plist b/devel/ruby-sdl/pkg-plist index 5187b8f3a345..eee72225c448 100644 --- a/devel/ruby-sdl/pkg-plist +++ b/devel/ruby-sdl/pkg-plist @@ -2,6 +2,7 @@ %%RUBY_SITELIBDIR%%/sdl.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/alpha.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/cdrom.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/event2.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/font.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/icon.bmp %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/joy.rb @@ -10,12 +11,15 @@ %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/playwave.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/rotate.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/sgetest.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/testgl.rb %%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/sdl/testsprite.rb %%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/sdl %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/README.en %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/rubysdl_doc.en.html %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/rubysdl_doc.en.rd %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/README.ja +%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/event2_doc.html +%%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/event2_doc.rd %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/rubysdl_doc.html %%PORTDOCS%%%%RUBY_DOCDIR%%/sdl/ja/rubysdl_doc.rd %%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/sdl/ja |