# New ports collection makefile for:	Ruby/SDL
# Date created:		27 Mar 2001
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	sdl
PORTVERSION=	0.8.1
CATEGORIES=	devel graphics audio ruby
MASTER_SITES=	http://www.kmc.gr.jp/~ohai/rubysdl/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DISTNAME=	ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=	ruby

MAINTAINER=	knu@FreeBSD.org

BUILD_DEPENDS=	${NONEXISTENT}:${RUBY_OPENGL_PORTDIR}:patch
LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
		SDL_image.10:${PORTSDIR}/graphics/sdl_image \
		SDL_ttf.3:${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
RUBY_WITH_PTHREAD=	yes

CONFIGURE_ARGS=	--with-sdl-config="sdl11-config" \
		--enable-opengl --linkoglmodule \
		--with-x11-dir="${X11BASE}"
INSTALL_TARGET=	site-install

RUBY_RD_FILES=	rubysdl_doc.en.rd \
		rubysdl_doc.rd

DOCS_EN=	NEWS.en README.en rubysdl_const_list.txt \
		${RUBY_RD_FILES:M*.en.rd} \
		${RUBY_RD_HTML_FILES:M*.en.html}
DOCS_JA=	NEWS.ja README.ja \
		${RUBY_RD_FILES:N*.en.rd} \
		${RUBY_RD_HTML_FILES:N*.en.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}

post-install: doc-install

.include <bsd.port.mk>

doc-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_MODEXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
	${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
it/cgit.cgi/freebsd-ports-graphics/about/'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/refs/'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils/fusefs-gitfs/Makefile'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/tree/sysutils/fusefs-gitfs/Makefile'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/sysutils/fusefs-gitfs/Makefile'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/diff/sysutils/fusefs-gitfs/Makefile'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/stats/sysutils/fusefs-gitfs/Makefile'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils/fusefs-gitfs/Makefile'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils'>sysutils</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils/fusefs-gitfs'>fusefs-gitfs</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils/fusefs-gitfs/Makefile'>Makefile</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/sysutils/fusefs-gitfs/Makefile?showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/sysutils/fusefs-gitfs/Makefile?id=4a1df8adb7cda324db8b8f41bc77b49ee33d8ab4'>sysutils/fusefs-gitfs: update to 0.4.5.1</a></td><td>jbeich</td><td><span title='2016-12-08 19:06:18 +0800'>2016-12-08</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+1</span></td></tr>