diff options
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/caph/Makefile | 60 | ||||
-rw-r--r-- | games/caph/distinfo | 3 | ||||
-rw-r--r-- | games/caph/pkg-descr | 6 | ||||
-rw-r--r-- | games/caph/pkg-plist | 32 |
5 files changed, 102 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 4c4e5efedd50..ce15c93d1efe 100644 --- a/games/Makefile +++ b/games/Makefile @@ -117,6 +117,7 @@ SUBDIR += bygfoot SUBDIR += bzflag SUBDIR += cake + SUBDIR += caph SUBDIR += cardpics SUBDIR += cave9 SUBDIR += cavezofphear 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%% |