summaryrefslogtreecommitdiffstats
path: root/devel/gauche-sdl
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-02 16:56:35 +0000
committerpav <pav@FreeBSD.org>2004-03-02 16:56:35 +0000
commit506dc68f3f252a2c9ae97db02c2dbf515bee870d (patch)
tree0cce020291a86fea24e61c53a45993e459eaf42b /devel/gauche-sdl
parent24c1a6673615cadeb26f1f69997097ba5f1423b3 (diff)
downloadFreeBSD-ports-506dc68f3f252a2c9ae97db02c2dbf515bee870d.zip
FreeBSD-ports-506dc68f3f252a2c9ae97db02c2dbf515bee870d.tar.gz
Add gauche-sdl, SDL bindings for the gauche scheme environment
PR: ports/62892 Submitted by: Erik Greenwald <erik@smluc.org>
Diffstat (limited to 'devel/gauche-sdl')
-rw-r--r--devel/gauche-sdl/Makefile40
-rw-r--r--devel/gauche-sdl/distinfo2
-rw-r--r--devel/gauche-sdl/files/patch-configure20
-rw-r--r--devel/gauche-sdl/files/patch-src::gauche-sdl.h11
-rw-r--r--devel/gauche-sdl/files/patch-src::image::gauche-sdl-image.h10
-rw-r--r--devel/gauche-sdl/files/patch-src::mixer::gauche-sdl-mixer.h11
-rw-r--r--devel/gauche-sdl/files/patch-src::ttf::gauche-sdl-ttf.h11
-rw-r--r--devel/gauche-sdl/pkg-descr5
-rw-r--r--devel/gauche-sdl/pkg-plist11
9 files changed, 121 insertions, 0 deletions
diff --git a/devel/gauche-sdl/Makefile b/devel/gauche-sdl/Makefile
new file mode 100644
index 0000000..d1d3910
--- /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 <knu@idaemons.org>
+#
+# $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 <bsd.port.mk>
diff --git a/devel/gauche-sdl/distinfo b/devel/gauche-sdl/distinfo
new file mode 100644
index 0000000..47fa7d7
--- /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 0000000..dcf7584
--- /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 0000000..48f8c5d
--- /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 <gauche/uvector.h>
+
+-#include <SDL/SDL.h>
++#include <SDL.h>
+
+ /*****************************************************************************
+ * 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 0000000..33cae8a
--- /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 <SDL/SDL_image.h>
++#include <SDL_image.h>
+
+ #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 0000000..a4f27f1
--- /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 <SDL/SDL_mixer.h>
++#include <SDL_mixer.h>
+
+ /*****************************************************************************
+ * 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 0000000..9c05dd6
--- /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 <SDL/SDL_ttf.h>
++#include <SDL_ttf.h>
+
+ /*****************************************************************************
+ * TTF
diff --git a/devel/gauche-sdl/pkg-descr b/devel/gauche-sdl/pkg-descr
new file mode 100644
index 0000000..8233b39
--- /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 0000000..ee5dc8e
--- /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
OpenPOWER on IntegriCloud