From 782788ada7325bdc66508973d54afc117a1b447e Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 2 Mar 2004 16:56:35 +0000 Subject: Add gauche-sdl, SDL bindings for the gauche scheme environment PR: ports/62892 Submitted by: Erik Greenwald --- devel/gauche-sdl/Makefile | 40 ++++++++++++++++++++++ devel/gauche-sdl/distinfo | 2 ++ devel/gauche-sdl/files/patch-configure | 20 +++++++++++ devel/gauche-sdl/files/patch-src::gauche-sdl.h | 11 ++++++ .../files/patch-src::image::gauche-sdl-image.h | 10 ++++++ .../files/patch-src::mixer::gauche-sdl-mixer.h | 11 ++++++ .../files/patch-src::ttf::gauche-sdl-ttf.h | 11 ++++++ devel/gauche-sdl/pkg-descr | 5 +++ devel/gauche-sdl/pkg-plist | 11 ++++++ 9 files changed, 121 insertions(+) create mode 100644 devel/gauche-sdl/Makefile create mode 100644 devel/gauche-sdl/distinfo create mode 100644 devel/gauche-sdl/files/patch-configure create mode 100644 devel/gauche-sdl/files/patch-src::gauche-sdl.h create mode 100644 devel/gauche-sdl/files/patch-src::image::gauche-sdl-image.h create mode 100644 devel/gauche-sdl/files/patch-src::mixer::gauche-sdl-mixer.h create mode 100644 devel/gauche-sdl/files/patch-src::ttf::gauche-sdl-ttf.h create mode 100644 devel/gauche-sdl/pkg-descr create mode 100644 devel/gauche-sdl/pkg-plist (limited to 'devel/gauche-sdl') diff --git a/devel/gauche-sdl/Makefile b/devel/gauche-sdl/Makefile new file mode 100644 index 000000000000..d1d391061d58 --- /dev/null +++ b/devel/gauche-sdl/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: gauche +# Date created: 9 September 2002 +# Whom: Akinori MUSHA aka knu +# +# $FreeBSD$ +# + +PORTNAME= gauche-sdl +PORTVERSION= 0.5.1 +CATEGORIES= devel scheme +MASTER_SITES= http://www.michaelvess.com/text/code/ +DISTNAME= ${PORTFAKENAME}-${PORTVERSION} + +MAINTAINER= erik@smluc.org +COMMENT= Scheme script interpreter with multibyte character handling + +BUILD_DEPENDS= gosh:${PORTSDIR}/lang/gauche +RUN_DEPENDS= gosh:${PORTSDIR}/lang/gauche + +PLIST_SUB= GAUCHE_VERSION="`gauche-config -V`"\ + TARGET="${CONFIGURE_TARGET}" +WRKSRC= ${WRKDIR}/${PORTFAKENAME} +PORTFAKENAME= Gauche-sdl +USE_SDL= image mixer sdl ttf +GNU_CONFIGURE= yes +USE_REINPLACE= yes + +post-patch: +.for DIR in . image mixer ttf + ${REINPLACE_CMD} \ + -e "s|^CFLAGS .*|& `${SDL_CONFIG} --cflags`|"\ + -e "s|-lSDL|`${SDL_CONFIG} --libs`|"\ + ${WRKSRC}/src/${DIR}/Makefile.in +.endfor + ${REINPLACE_CMD} \ + -e "s|SDL/SDL|SDL|g"\ + -e "s|%%SDL_CFLAGS%%|`${SDL_CONFIG} --cflags`|"\ + ${WRKSRC}/configure + +.include diff --git a/devel/gauche-sdl/distinfo b/devel/gauche-sdl/distinfo new file mode 100644 index 000000000000..47fa7d7787ea --- /dev/null +++ b/devel/gauche-sdl/distinfo @@ -0,0 +1,2 @@ +MD5 (Gauche-sdl-0.5.1.tar.gz) = 402998451db9d6fb98b0814439393fa5 +SIZE (Gauche-sdl-0.5.1.tar.gz) = 121766 diff --git a/devel/gauche-sdl/files/patch-configure b/devel/gauche-sdl/files/patch-configure new file mode 100644 index 000000000000..dcf75844da2d --- /dev/null +++ b/devel/gauche-sdl/files/patch-configure @@ -0,0 +1,20 @@ +--- configure.orig Sun Feb 15 16:47:50 2004 ++++ configure Sun Feb 15 16:49:38 2004 +@@ -777,6 +777,8 @@ + fi + done + ++MYLAMEOLDCPPFLAGS="${CPPFLAGS}" ++CPPFLAGS="${CPPFLAGS} %%SDL_CFLAGS%%" + + for ac_hdr in SDL/SDL_framerate.h + do +@@ -944,7 +946,7 @@ + fi + done + +- ++CPPFLAGS="${MYLAMEOLDCPPFLAGS}" + + # Sets the default value of INSTALL_TYPE macro. + diff --git a/devel/gauche-sdl/files/patch-src::gauche-sdl.h b/devel/gauche-sdl/files/patch-src::gauche-sdl.h new file mode 100644 index 000000000000..48f8c5d2fdc2 --- /dev/null +++ b/devel/gauche-sdl/files/patch-src::gauche-sdl.h @@ -0,0 +1,11 @@ +--- src/gauche-sdl.h.orig Mon Feb 24 21:20:18 2003 ++++ src/gauche-sdl.h Sun Feb 15 18:27:17 2004 +@@ -20,7 +20,7 @@ + + #include + +-#include ++#include + + /***************************************************************************** + * Miscellaneous diff --git a/devel/gauche-sdl/files/patch-src::image::gauche-sdl-image.h b/devel/gauche-sdl/files/patch-src::image::gauche-sdl-image.h new file mode 100644 index 000000000000..33cae8af6e16 --- /dev/null +++ b/devel/gauche-sdl/files/patch-src::image::gauche-sdl-image.h @@ -0,0 +1,10 @@ +--- src/image/gauche-sdl-image.h.orig Sun Feb 15 18:29:18 2004 ++++ src/image/gauche-sdl-image.h Sun Feb 15 18:29:37 2004 +@@ -20,6 +20,6 @@ + + #include "../gauche-sdl.h" + +-#include ++#include + + #endif /* GAUCHE_SDL_IMAGE_H */ diff --git a/devel/gauche-sdl/files/patch-src::mixer::gauche-sdl-mixer.h b/devel/gauche-sdl/files/patch-src::mixer::gauche-sdl-mixer.h new file mode 100644 index 000000000000..a4f27f143371 --- /dev/null +++ b/devel/gauche-sdl/files/patch-src::mixer::gauche-sdl-mixer.h @@ -0,0 +1,11 @@ +--- src/mixer/gauche-sdl-mixer.h.orig Sun Feb 15 18:31:18 2004 ++++ src/mixer/gauche-sdl-mixer.h Sun Feb 15 18:31:38 2004 +@@ -20,7 +20,7 @@ + + #include "../gauche-sdl.h" + +-#include ++#include + + /***************************************************************************** + * Mixer diff --git a/devel/gauche-sdl/files/patch-src::ttf::gauche-sdl-ttf.h b/devel/gauche-sdl/files/patch-src::ttf::gauche-sdl-ttf.h new file mode 100644 index 000000000000..9c05dd661537 --- /dev/null +++ b/devel/gauche-sdl/files/patch-src::ttf::gauche-sdl-ttf.h @@ -0,0 +1,11 @@ +--- src/ttf/gauche-sdl-ttf.h.orig Sun Feb 15 18:31:53 2004 ++++ src/ttf/gauche-sdl-ttf.h Sun Feb 15 18:32:10 2004 +@@ -20,7 +20,7 @@ + + #include "../gauche-sdl.h" + +-#include ++#include + + /***************************************************************************** + * TTF diff --git a/devel/gauche-sdl/pkg-descr b/devel/gauche-sdl/pkg-descr new file mode 100644 index 000000000000..8233b39bb33f --- /dev/null +++ b/devel/gauche-sdl/pkg-descr @@ -0,0 +1,5 @@ +SDL binding for Gauche + +Author: Michael Vess +WWW: http://www.michaelvess.com/text/index.html?content=code/content.php + http://www.shiro.dreamhost.com/scheme/wiliki/wiliki.cgi?Gauche%3aPackages&l=en#H-19q7sdo diff --git a/devel/gauche-sdl/pkg-plist b/devel/gauche-sdl/pkg-plist new file mode 100644 index 000000000000..ee5dc8e50463 --- /dev/null +++ b/devel/gauche-sdl/pkg-plist @@ -0,0 +1,11 @@ +lib/gauche/%%GAUCHE_VERSION%%/%%TARGET%%/gauche-sdl-image.so +lib/gauche/%%GAUCHE_VERSION%%/%%TARGET%%/gauche-sdl-mixer.so +lib/gauche/%%GAUCHE_VERSION%%/%%TARGET%%/gauche-sdl-ttf.so +lib/gauche/%%GAUCHE_VERSION%%/%%TARGET%%/gauche-sdl.so +share/gauche/%%GAUCHE_VERSION%%/lib/sdl.scm +share/gauche/%%GAUCHE_VERSION%%/lib/sdl/color.scm +share/gauche/%%GAUCHE_VERSION%%/lib/sdl/gfx.scm +share/gauche/%%GAUCHE_VERSION%%/lib/sdl/image.scm +share/gauche/%%GAUCHE_VERSION%%/lib/sdl/mixer.scm +share/gauche/%%GAUCHE_VERSION%%/lib/sdl/ttf.scm +@dirrm share/gauche/%%GAUCHE_VERSION%%/lib/sdl -- cgit v1.2.3