1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to 2.1.3.1, announce message:

Change the name of the option for bundled SGE
 Change the way of workaround for -Dmain=SDL_main on Windows platform

- Add dependency for graphics/rubygem-opengl
- Remove dependency for graphics/ruby-opengl
- Change DOCS and install conditional
- Add OPTIONS_SUB
- Change WWW
- Add pkg-plist
This commit is contained in:
Rusmir Dusko 2014-07-28 18:31:42 +00:00
parent 7c459c3312
commit c965f48c56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363217
4 changed files with 23 additions and 17 deletions

View File

@ -2,10 +2,9 @@
# $FreeBSD$
PORTNAME= sdl
PORTVERSION= 2.1.3
PORTREVISION= 2
PORTVERSION= 2.1.3.1
CATEGORIES= devel graphics audio ruby
MASTER_SITES= RUBYFORGE/ruby${PORTNAME}/
MASTER_SITES= https://ohai.github.io/rubysdl/archives/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
@ -18,9 +17,7 @@ LICENSE= LGPL21
LIB_DEPENDS= libSGE.so:${PORTSDIR}/devel/sdl_sge \
libSDLSKK.so.2.0:${PORTSDIR}/devel/sdlskk \
libsmpeg.so:${PORTSDIR}/multimedia/smpeg
RUBY_OPENGL_PORTDIR= ${PORTSDIR}/graphics/ruby-opengl
RUBY_OPENGL_WRKSRC_CMD= cd ${RUBY_OPENGL_PORTDIR}; ${MAKE} -V WRKSRC
RUN_DEPENDS= rubygem-opengl>=0:${PORTSDIR}/graphics/rubygem-opengl
USE_SDL= mixer image ttf sdl
USE_RUBY= yes
@ -32,12 +29,6 @@ CONFIGURE_ARGS= --with-sdl-config="sdl-config" \
--disable-pthreads
INSTALL_TARGET= site-install
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/sdl_ext.so \
%%RUBY_SITELIBDIR%%/rubysdl_aliases.rb \
%%RUBY_SITELIBDIR%%/rubysdl_compatible_ver1.rb \
%%RUBY_SITELIBDIR%%/sdl.rb \
%%RUBY_SITELIBDIR%%/sdl1_compatible.rb
PORTDOCS= *
PORTEXAMPLES= *
@ -50,18 +41,22 @@ DOC_FILES_WRKSRC_EN= NEWS.en README.en
DOCSRCDIRJA= ${WRKSRC}/doc
DOCSDIRJA= ${RUBY_MODDOCDIR}/doc
DOC_FILESJA= *.rsd *.rb
DOC_FILESJA= *.rsd *.rb *ref.html
DOCSRCDIREN= ${WRKSRC}/doc-en
DOCSDIREN= ${RUBY_MODDOCDIR}/doc-en
DOC_FILESEN= *.rsd
DOC_FILESEN= *.rsd *ref.en.html
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/*/sdl_ext.so
@${REINPLACE_CMD} -e 's|ruby|${LOCALBASE}/bin/ruby|g' ${WRKSRC}/doc/rsd.rb
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
${INSTALL_DATA} ${DOC_FILES_WRKSRC_JA:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}/ja/
${INSTALL_DATA} ${DOC_FILES_WRKSRC_EN:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@ -69,8 +64,11 @@ post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/doc/ja
${INSTALL_DATA} ${DOC_FILESJA:S|^|${DOCSRCDIRJA}/|} ${STAGEDIR}${DOCSDIR}/doc/ja/
${INSTALL_DATA} ${DOC_FILESEN:S|^|${DOCSRCDIREN}/|} ${STAGEDIR}${DOCSDIR}/doc/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (ruby/rubysdl-2.1.3.tar.gz) = 77390eac2e7c99208622ab48377a6caaddb1f5f5efdc4bd96d05efacecd94bcd
SIZE (ruby/rubysdl-2.1.3.tar.gz) = 795424
SHA256 (ruby/rubysdl-2.1.3.1.tar.gz) = 167f162766a9309ac3b241591be2928a7fbefe32559f1458d89b4a0121500f72
SIZE (ruby/rubysdl-2.1.3.1.tar.gz) = 795543

View File

@ -14,4 +14,4 @@ Ruby/SDL has following functions.
3D graphics drawing with OpenGL Interface
bdf font drawing with SDL_kanji
WWW: http://www.kmc.gr.jp/~ohai/rubysdl.en.html
WWW: https://ohai.github.io/rubysdl/

8
devel/ruby-sdl/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
%%RUBY_SITEARCHLIBDIR%%/sdl_ext.so
%%RUBY_SITELIBDIR%%/rubysdl_aliases.rb
%%RUBY_SITELIBDIR%%/rubysdl_compatible_ver1.rb
%%RUBY_SITELIBDIR%%/sdl.rb
%%RUBY_SITELIBDIR%%/sdl1_compatible.rb
@dirrmtry %%RUBY_SITEARCHLIBDIR%%
%%DOCS%%@dirrmtry %%RUBY_DOCDIR%%
%%EXAMPLES%%@dirrmtry %%RUBY_EXAMPLESDIR%%