freebsd-ports/devel/ruby-sdl/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

75 lines
2 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= sdl
PORTVERSION= 2.1.3.1
PORTREVISION= 4
CATEGORIES= devel graphics audio ruby
MASTER_SITES= https://ohai.github.io/rubysdl/archives/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Ruby extension library to use SDL library
LICENSE= LGPL21
LIB_DEPENDS= libSGE.so:${PORTSDIR}/devel/sdl_sge \
libSDLSKK.so:${PORTSDIR}/devel/sdlskk \
libsmpeg.so:${PORTSDIR}/multimedia/smpeg
RUN_DEPENDS= rubygem-opengl>=0:${PORTSDIR}/graphics/rubygem-opengl
USE_SDL= mixer image ttf sdl
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
CONFIGURE_ARGS= --with-sdl-config="sdl-config" \
--enable-opengl --linkoglmodule \
--with-x11-dir="${LOCALBASE}" \
--disable-pthreads
INSTALL_TARGET= site-install
PORTDOCS= *
PORTEXAMPLES= *
DOCSDIR= ${RUBY_MODDOCDIR}
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
DOCSRCDIR1= ${WRKSRC}
DOC_FILES_WRKSRC_JA= NEWS.ja README.ja
DOC_FILES_WRKSRC_EN= NEWS.en README.en
DOCSRCDIRJA= ${WRKSRC}/doc
DOCSDIRJA= ${RUBY_MODDOCDIR}/doc
DOC_FILESJA= *.rsd *.rb *ref.html
DOCSRCDIREN= ${WRKSRC}/doc-en
DOCSDIREN= ${RUBY_MODDOCDIR}/doc-en
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}
@${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>