mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
7df9b2b2b4
${PTHREAD_CFLAGS} and ${PTHREAD_LIBS} include in the build to kill the headache of old '_r' and can't run with something like ruby-opengl, ruby-sdl, ruby-gtk2 and etc on FreeBSD 4.x or older 5.x. With this commit should solve those issues. It is recommend you to rebuild any apps that depend on lang/ruby18, so see the UPDATING for detail. Remove the 'BROKEN' on the other ports that knu has added them few weeks ago. Some of them have been tested, so if one of them is still broke then please let us know and one of us will re-add the 'BROKEN'. This changes was worked by lofi and me. lofi did everything on FreeBSD 4.x and I did others. lofi, thanks for help! Tested by: many people Tested on: i386 (FreeBSD 4.x, 5.x and 6.x), amd64 (FreeBSD 5.x and 6.x), and sparc64 (FreeBSD 5.x and 6.x) Not test on: ia64 and alpha Approved by: portmgr (kris)
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# 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.9.3
|
|
PORTREVISION= 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
|
|
COMMENT= Ruby extension library to use SDL library
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${RUBY_OPENGL_PORTDIR}:patch
|
|
|
|
RUBY_OPENGL_PORTDIR= ${.CURDIR}/../../graphics/ruby-opengl
|
|
RUBY_OPENGL_WRKSRC_CMD= cd ${RUBY_OPENGL_PORTDIR}; ${MAKE} -V WRKSRC
|
|
|
|
USE_SDL= mixer image ttf sdl
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= 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}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
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
|
|
|
|
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
|
|
|
|
.include <bsd.port.post.mk>
|