aboutsummaryrefslogtreecommitdiffstats
path: root/games/caph
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-09-13 07:31:50 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-09-13 07:31:50 +0800
commitee3eabd78fed84bb9ebd8ba353865b1887bdb2a8 (patch)
tree9b566f9f8e2b19cbb64215f884e2c213cf7f85f5 /games/caph
parent4818597bd641f8e26b9fbf31ef1517e8e26c73a0 (diff)
downloadfreebsd-ports-gnome-ee3eabd78fed84bb9ebd8ba353865b1887bdb2a8.tar.gz
freebsd-ports-gnome-ee3eabd78fed84bb9ebd8ba353865b1887bdb2a8.tar.zst
freebsd-ports-gnome-ee3eabd78fed84bb9ebd8ba353865b1887bdb2a8.zip
It is a sandbox game, based on physics. The game aim is to make
contact red object with green object. You can use various objects, solid, wire (rope), and bendable objects. Gravitation will help you. WWW: http://caphgame.sourceforge.net/
Diffstat (limited to 'games/caph')
-rw-r--r--games/caph/Makefile60
-rw-r--r--games/caph/distinfo3
-rw-r--r--games/caph/pkg-descr6
-rw-r--r--games/caph/pkg-plist32
4 files changed, 101 insertions, 0 deletions
diff --git a/games/caph/Makefile b/games/caph/Makefile
new file mode 100644
index 000000000000..b0e0291b67f5
--- /dev/null
+++ b/games/caph/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: caph
+# Date created: 13 Sep 2010
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= caph
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= SF/caphgame/${PORTNAME}/caphgame-${PORTVERSION}/
+DISTNAME= caphgame-${PORTVERSION}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Physics-based sandbox game
+
+LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/doc/caph/COPYING
+
+USE_SDL= sdl
+USE_GL= gl
+
+BUILD_WRKSRC= ${WRKSRC}/src
+
+PORTDOCS= README CHANGELOG
+
+DESKTOP_ENTRIES="Caph" \
+ "Physics-based sandbox game" \
+ "${DATADIR}/brush.png" \
+ "caph" \
+ "Game;LogicGame;" \
+ false
+
+OPTIONS= OPTIMIZED_CFLAGS "Use optimized compiler flags" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
+CFLAGS+= -O3 -ffast-math
+.endif
+
+do-build:
+ cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} -o caph -I../include *.c \
+ `${SDL_CONFIG} --libs --cflags` -D_OPENGL -lGL -lpng
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|../share/caph|${DATADIR}|' ${BUILD_WRKSRC}/caph.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC}/share/caph && ${COPYTREE_SHARE} '*' ${DATADIR}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc/caph && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/caph/distinfo b/games/caph/distinfo
new file mode 100644
index 000000000000..726011b5a205
--- /dev/null
+++ b/games/caph/distinfo
@@ -0,0 +1,3 @@
+MD5 (caphgame-1.0.tar.gz) = fd9ea5debafb527c5faa3c40b7f02a2f
+SHA256 (caphgame-1.0.tar.gz) = f2eeebe13ac2f70e6a1a9a072a41b1b7e30fadd69cb711b98805ed814b688ba1
+SIZE (caphgame-1.0.tar.gz) = 752562
diff --git a/games/caph/pkg-descr b/games/caph/pkg-descr
new file mode 100644
index 000000000000..fc3769ddd78e
--- /dev/null
+++ b/games/caph/pkg-descr
@@ -0,0 +1,6 @@
+It is a sandbox game, based on physics. The game aim is to make
+contact red object with green object. You can use various objects,
+solid, wire (rope), and bendable objects. Gravitation will help
+you.
+
+WWW: http://caphgame.sourceforge.net/
diff --git a/games/caph/pkg-plist b/games/caph/pkg-plist
new file mode 100644
index 000000000000..5aaaca5c6564
--- /dev/null
+++ b/games/caph/pkg-plist
@@ -0,0 +1,32 @@
+bin/caph
+%%DATADIR%%/brush.png
+%%DATADIR%%/caph.conf
+%%DATADIR%%/maps/bend.map
+%%DATADIR%%/maps/car.map
+%%DATADIR%%/maps/cave.map
+%%DATADIR%%/maps/cave2.map
+%%DATADIR%%/maps/door.map
+%%DATADIR%%/maps/downfall.map
+%%DATADIR%%/maps/fire.map
+%%DATADIR%%/maps/infinity.map
+%%DATADIR%%/maps/jump.map
+%%DATADIR%%/maps/loop.map
+%%DATADIR%%/maps/loop2.map
+%%DATADIR%%/maps/maps.list
+%%DATADIR%%/maps/move.map
+%%DATADIR%%/maps/push.map
+%%DATADIR%%/maps/roll.map
+%%DATADIR%%/maps/start.map
+%%DATADIR%%/maps/supermassive.map
+%%DATADIR%%/maps/tear.map
+%%DATADIR%%/maps/tech.map
+%%DATADIR%%/maps/temple.map
+%%DATADIR%%/maps/tube.map
+%%DATADIR%%/maps/up.map
+%%DATADIR%%/maps/wall.map
+%%DATADIR%%/maps/wind.map
+%%DATADIR%%/maps/winter.map
+%%DATADIR%%/maps/wire.map
+%%DATADIR%%/paper.png
+@dirrm %%DATADIR%%/maps
+@dirrm %%DATADIR%%