From 3108351d1e49202da95a619b8e64ac1f756e919a Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 19 Mar 2008 20:22:09 +0000 Subject: [PATCH] import glsfcave GLSFcave is a port of SunFlat's SFcave for UNIX/OpenGL. SFcave is a game where the player controls a ribbon and avoid hitting walls. You have only one control: when you hold the mouse button, the ribbon goes up. Otherwise the ribbon goes down. feedback & ok ajacoutot@ --- games/glsfcave/Makefile | 38 +++++++++++++++++++++++++++ games/glsfcave/distinfo | 5 ++++ games/glsfcave/patches/patch-Makefile | 15 +++++++++++ games/glsfcave/pkg/DESCR | 6 +++++ games/glsfcave/pkg/PLIST | 2 ++ 5 files changed, 66 insertions(+) create mode 100644 games/glsfcave/Makefile create mode 100644 games/glsfcave/distinfo create mode 100644 games/glsfcave/patches/patch-Makefile create mode 100644 games/glsfcave/pkg/DESCR create mode 100644 games/glsfcave/pkg/PLIST diff --git a/games/glsfcave/Makefile b/games/glsfcave/Makefile new file mode 100644 index 00000000000..96792b45914 --- /dev/null +++ b/games/glsfcave/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/03/19 20:22:09 simon Exp $ + +COMMENT= control a ribbon to avoid hitting walls + +V= 1.0 +DISTNAME= glsfcave-$V-mitl +PKGNAME= glsfcave-$V +CATEGORIES= games +EXTRACT_SUFX= .tar.bz2 + +HOMEPAGE= http://user.ecc.u-tokyo.ac.jp/~g650192/glsfcave/ +MASTER_SITES= ${HOMEPAGE} + +MAINTAINER= Simon Bertrang + +# MIT +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes + +WANTLIB= GL GLU X11 Xext Xi Xmu c m + +LIB_DEPENDS= glut::graphics/glut + +WRKDIST= ${WRKDIR}/glsfcave + +ALL_TARGET= glsfcave + +CFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include +MAKE_ENV+= LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" + +NO_REGRESS= Yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/glsfcave ${PREFIX}/bin + +.include diff --git a/games/glsfcave/distinfo b/games/glsfcave/distinfo new file mode 100644 index 00000000000..8f1be897339 --- /dev/null +++ b/games/glsfcave/distinfo @@ -0,0 +1,5 @@ +MD5 (glsfcave-1.0-mitl.tar.bz2) = gid0TeoGR3OtL8NCpzhPYQ== +RMD160 (glsfcave-1.0-mitl.tar.bz2) = waTdDMlnyFlja7mFpYL0o27s0ho= +SHA1 (glsfcave-1.0-mitl.tar.bz2) = ZO3UKSvHEhOrzbXkngCNGOndIRQ= +SHA256 (glsfcave-1.0-mitl.tar.bz2) = PR+/GtmLZ27APJ8pu7IjWy66wd/1SfDs2nuHE8FOKEY= +SIZE (glsfcave-1.0-mitl.tar.bz2) = 4643 diff --git a/games/glsfcave/patches/patch-Makefile b/games/glsfcave/patches/patch-Makefile new file mode 100644 index 00000000000..38f0074544e --- /dev/null +++ b/games/glsfcave/patches/patch-Makefile @@ -0,0 +1,15 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2008/03/19 20:22:09 simon Exp $ +--- Makefile.orig Fri Mar 14 13:35:20 2008 ++++ Makefile Mon Mar 17 11:32:06 2008 +@@ -1,9 +1,9 @@ + ## MacOS X +-LDFLAGS+=-framework OpenGL -framework GLUT -framework Foundation ++#LDFLAGS+=-framework OpenGL -framework GLUT -framework Foundation + ## IRIX + #LDFLAGS=-lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lgen + ## FreeBSD/Linux +-#LDFLAGS=-L/usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 ++LDFLAGS+=-lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm + + glsfcave: main.o + $(CC) $(CFLAGS) -o glsfcave main.o $(LDFLAGS) diff --git a/games/glsfcave/pkg/DESCR b/games/glsfcave/pkg/DESCR new file mode 100644 index 00000000000..5af0bc15039 --- /dev/null +++ b/games/glsfcave/pkg/DESCR @@ -0,0 +1,6 @@ +GLSFcave is a port of SunFlat's SFcave for UNIX/OpenGL. +SFcave is a game where the player controls a ribbon and avoid hitting +walls. + +You have only one control: when you hold the mouse button, the ribbon +goes up. Otherwise the ribbon goes down. diff --git a/games/glsfcave/pkg/PLIST b/games/glsfcave/pkg/PLIST new file mode 100644 index 00000000000..b24210a5dbb --- /dev/null +++ b/games/glsfcave/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/03/19 20:22:09 simon Exp $ +bin/glsfcave