From ee3eabd78fed84bb9ebd8ba353865b1887bdb2a8 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Sun, 12 Sep 2010 23:31:50 +0000 Subject: 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/ --- games/caph/Makefile | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ games/caph/distinfo | 3 +++ games/caph/pkg-descr | 6 ++++++ games/caph/pkg-plist | 32 ++++++++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 games/caph/Makefile create mode 100644 games/caph/distinfo create mode 100644 games/caph/pkg-descr create mode 100644 games/caph/pkg-plist (limited to 'games/caph') 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 +# +# $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 + +.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 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%% -- cgit