2001-03-26 18:47:08 +02:00
|
|
|
# New ports collection makefile for: Ruby/SDL
|
|
|
|
# Date created: 27 Mar 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sdl
|
2002-10-07 10:23:23 +02:00
|
|
|
PORTVERSION= 0.8.1
|
2001-03-26 18:47:08 +02:00
|
|
|
CATEGORIES= devel graphics audio ruby
|
2002-06-11 15:41:57 +02:00
|
|
|
MASTER_SITES= http://www.kmc.gr.jp/~ohai/rubysdl/
|
2001-03-26 18:47:08 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2001-04-27 13:48:01 +02:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${RUBY_OPENGL_PORTDIR}:patch
|
2003-01-02 16:06:10 +01:00
|
|
|
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
|
2001-03-26 18:47:08 +02:00
|
|
|
SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
2001-06-26 12:18:52 +02:00
|
|
|
SDL_ttf.3:${PORTSDIR}/graphics/sdl_ttf \
|
2001-03-26 18:47:08 +02:00
|
|
|
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
|
|
|
|
|
2001-04-27 13:48:01 +02:00
|
|
|
RUBY_OPENGL_PORTDIR= ${.CURDIR}/../../graphics/ruby-opengl
|
2002-03-30 13:06:42 +01:00
|
|
|
RUBY_OPENGL_WRKSRC_CMD= cd ${RUBY_OPENGL_PORTDIR}; ${MAKE} -V WRKSRC
|
2001-04-27 13:48:01 +02:00
|
|
|
|
2001-03-26 18:47:08 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2002-06-11 15:41:57 +02:00
|
|
|
RUBY_WITH_PTHREAD= yes
|
2001-03-26 18:47:08 +02:00
|
|
|
|
2001-04-27 13:48:01 +02:00
|
|
|
CONFIGURE_ARGS= --with-sdl-config="sdl11-config" \
|
|
|
|
--enable-opengl --linkoglmodule \
|
|
|
|
--with-x11-dir="${X11BASE}"
|
2001-03-26 18:47:08 +02:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2002-12-06 18:17:38 +01:00
|
|
|
RUBY_RD_FILES= rubysdl_doc.en.rd \
|
|
|
|
rubysdl_doc.rd
|
2001-04-01 23:15:50 +02:00
|
|
|
|
2002-06-11 15:41:57 +02:00
|
|
|
DOCS_EN= NEWS.en README.en rubysdl_const_list.txt \
|
2002-12-06 18:17:38 +01:00
|
|
|
${RUBY_RD_FILES:M*.en.rd} \
|
|
|
|
${RUBY_RD_HTML_FILES:M*.en.html}
|
2002-06-11 15:41:57 +02:00
|
|
|
DOCS_JA= NEWS.ja README.ja \
|
2002-12-06 18:17:38 +01:00
|
|
|
${RUBY_RD_FILES:N*.en.rd} \
|
|
|
|
${RUBY_RD_HTML_FILES:N*.en.html}
|
2001-04-01 23:15:50 +02:00
|
|
|
|
2001-04-27 13:48:01 +02: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}
|
|
|
|
|
2002-12-06 18:17:38 +01:00
|
|
|
post-install: doc-install
|
2001-04-01 23:15:50 +02:00
|
|
|
|
2002-12-06 18:17:38 +01:00
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
doc-install:
|
2001-03-26 18:47:08 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2001-04-01 23:15:50 +02:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 23:08:30 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-04-01 23:15:50 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 23:08:30 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2001-04-01 23:15:50 +02:00
|
|
|
.endfor
|
2001-03-26 18:47:08 +02:00
|
|
|
.endif
|