2001-03-26 11:47:08 -05:00
|
|
|
# New ports collection makefile for: Ruby/SDL
|
|
|
|
# Date created: 27 Mar 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sdl
|
2001-05-27 13:46:15 -04:00
|
|
|
PORTVERSION= 0.6
|
2001-03-26 11:47:08 -05:00
|
|
|
CATEGORIES= devel graphics audio ruby
|
|
|
|
MASTER_SITES= http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2001-04-27 07:48:01 -04:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${RUBY_OPENGL_PORTDIR}:patch
|
2001-04-09 07:55:04 -04:00
|
|
|
LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl12 \
|
2001-03-26 11:47:08 -05:00
|
|
|
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
2001-06-26 06:18:52 -04:00
|
|
|
SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \
|
2001-03-26 11:47:08 -05:00
|
|
|
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
|
|
|
|
|
2001-04-27 07:48:01 -04:00
|
|
|
RUBY_OPENGL_PORTDIR= ${.CURDIR}/../../graphics/ruby-opengl
|
|
|
|
RUBY_OPENGL_WRKSRC_CMD= cd ${RUBY_OPENGL_PORTDIR} && ${MAKE} -V WRKSRC
|
|
|
|
|
2001-03-26 11:47:08 -05:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2001-04-01 17:15:50 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
USE_RUBY_RD= yes
|
|
|
|
.endif
|
2001-03-26 11:47:08 -05:00
|
|
|
|
2001-04-27 07:48:01 -04:00
|
|
|
CONFIGURE_ARGS= --with-sdl-config="sdl11-config" \
|
|
|
|
--enable-opengl --linkoglmodule \
|
|
|
|
--with-x11-dir="${X11BASE}"
|
2001-03-26 11:47:08 -05:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2001-05-27 13:46:15 -04:00
|
|
|
RD_DOCS_EN= rubysdl_doc.en.rd event2_doc.en.rd
|
2001-04-27 07:48:01 -04:00
|
|
|
RD_DOCS_JA= rubysdl_doc.rd event2_doc.rd
|
2001-04-01 17:15:50 -04:00
|
|
|
|
2001-05-27 13:46:15 -04:00
|
|
|
DOCS_EN= README.en ${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd$/.html/} rubysdl_const_list.txt
|
2001-04-09 09:36:46 -04:00
|
|
|
DOCS_JA= README.ja ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd$/.html/}
|
2001-04-01 17:15:50 -04:00
|
|
|
|
2001-04-27 07:48:01 -04:00
|
|
|
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}
|
|
|
|
|
2001-04-01 17:15:50 -04:00
|
|
|
post-build:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-04-09 09:36:46 -04:00
|
|
|
.for f in ${RD_DOCS_EN} ${RD_DOCS_JA}
|
2001-04-01 17:15:50 -04:00
|
|
|
@cd ${WRKSRC} && ${RUBY_RD} ${f} > ${f:S/.rd$/.html/}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2001-03-26 11:47:08 -05:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
|
2001-04-01 17:15:50 -04:00
|
|
|
.for f in ${DOCS_EN}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
|
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
|
|
|
|
.endfor
|
2001-03-26 11:47:08 -05:00
|
|
|
.endif
|
|
|
|
|
2001-04-01 13:59:39 -04:00
|
|
|
.include <bsd.port.mk>
|