aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-03 00:56:35 +0800
committerpav <pav@FreeBSD.org>2004-03-03 00:56:35 +0800
commit506dc68f3f252a2c9ae97db02c2dbf515bee870d (patch)
tree0cce020291a86fea24e61c53a45993e459eaf42b /devel
parent24c1a6673615cadeb26f1f69997097ba5f1423b3 (diff)
downloadfreebsd-ports-gnome-506dc68f3f252a2c9ae97db02c2dbf515bee870d.tar.gz
freebsd-ports-gnome-506dc68f3f252a2c9ae97db02c2dbf515bee870d.tar.zst
freebsd-ports-gnome-506dc68f3f252a2c9ae97db02c2dbf515bee870d.zip
Add gauche-sdl, SDL bindings for the gauche scheme environment
PR: ports/62892 Submitted by: Erik Greenwald <erik@smluc.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-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
10 files changed, 122 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f7b4c07a0a43..cdb3efc584f8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -243,6 +243,7 @@
SUBDIR += g2c
SUBDIR += gaa
SUBDIR += gauche-readline
+ SUBDIR += gauche-sdl
SUBDIR += gaul
SUBDIR += gccxml
SUBDIR += gconf
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 <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 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 <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 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 <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 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 <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 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 <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 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