diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-06-06 19:02:56 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-06-06 19:02:56 +0000 |
commit | 00f38b60057cb1d58cff24be6b2ca0f0d643c0df (patch) | |
tree | 4de7a12d10f414278bab5e5dac7a9b2f6e25f371 /games/chanta | |
parent | 4495ee62ba905dc9915631f74a55df514d753452 (diff) | |
download | ports-00f38b60057cb1d58cff24be6b2ca0f0d643c0df.tar.gz ports-00f38b60057cb1d58cff24be6b2ca0f0d643c0df.zip |
Notes
Diffstat (limited to 'games/chanta')
-rw-r--r-- | games/chanta/Makefile | 50 | ||||
-rw-r--r-- | games/chanta/distinfo | 3 | ||||
-rw-r--r-- | games/chanta/files/patch-configure | 29 | ||||
-rw-r--r-- | games/chanta/pkg-descr | 4 | ||||
-rw-r--r-- | games/chanta/pkg-plist | 18 |
5 files changed, 104 insertions, 0 deletions
diff --git a/games/chanta/Makefile b/games/chanta/Makefile new file mode 100644 index 000000000000..e822d40a45c0 --- /dev/null +++ b/games/chanta/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: chanta +# Date created: 2006-04-01 +# Whom: Charlie & <root@HellFire.BSD.org.pe> +# +# $FreeBSD$ +# + +PORTNAME= chanta +PORTVERSION= 0.15 +CATEGORIES= games +MASTER_SITES= http://www.losersjuegos.com.ar/juegos/chanta/descargas/ + +MAINTAINER= acardenas@bsd.org.pe +COMMENT= Free 2D jump and run game + +USE_X_PREFIX= yes +USE_SDL= sdl image mixer +USE_GMAKE= yes +GNU_CONFIGURE= yes +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD} +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + +CHANTADIRS= data ima + +post-extract: + @${FIND} -E ${WRKSRC}/src/ -type f -iregex ".*\.(cpp|h)" \ + -print0 | ${XARGS} -0 ${REINPLACE_CMD} -e 's/<SDL/<SDL11/' + +post-configure: + @${REINPLACE_CMD} -e 's|-lSDL |`sdl11-config --libs` |g' ${WRKSRC}/src/${MAKEFILE} + @${REINPLACE_CMD} -e 's|^CXXFLAGS|^CXXFLAGS?|g' ${WRKSRC}/src/${MAKEFILE} + +do-install: + ${MKDIR} ${DATADIR} + @cd ${WRKSRC}/src && \ + ${INSTALL_PROGRAM} chanta ${PREFIX}/bin && \ + ${FIND} ${CHANTADIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ + ${FIND} -E ${CHANTADIRS} -type f -iregex ".*\.(png|dat)" \ + -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + @cd ${WRKSRC} && \ + ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/games/chanta/distinfo b/games/chanta/distinfo new file mode 100644 index 000000000000..2d955400d927 --- /dev/null +++ b/games/chanta/distinfo @@ -0,0 +1,3 @@ +MD5 (chanta-0.15.tar.gz) = 27d482ff824d9206d1607529a69a6f9c +SHA256 (chanta-0.15.tar.gz) = a5d4f5a853339b00087363905998c536f78ad524b8afa200202a7273c1498cba +SIZE (chanta-0.15.tar.gz) = 300023 diff --git a/games/chanta/files/patch-configure b/games/chanta/files/patch-configure new file mode 100644 index 000000000000..15b0d999b59e --- /dev/null +++ b/games/chanta/files/patch-configure @@ -0,0 +1,29 @@ +--- configure Mon Jul 18 16:01:00 2005 ++++ configure Wed Apr 5 21:21:06 2006 +@@ -3357,7 +3357,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lSDL $LIBS" ++LIBS="`sdl11-config --libs` $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -3434,7 +3434,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lSDL_mixer $LIBS" ++LIBS="-lSDL_mixer `sdl11-config --libs` $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -3511,7 +3511,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lSDL_image $LIBS" ++LIBS="-lSDL_image `sdl11-config --libs` $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF diff --git a/games/chanta/pkg-descr b/games/chanta/pkg-descr new file mode 100644 index 000000000000..7f1003922b91 --- /dev/null +++ b/games/chanta/pkg-descr @@ -0,0 +1,4 @@ +Chanta Claus is a free jump and run game, where you have to collect all money +for each level. + +WWW: http://www.losersjuegos.com.ar diff --git a/games/chanta/pkg-plist b/games/chanta/pkg-plist new file mode 100644 index 000000000000..3dce4e68cbac --- /dev/null +++ b/games/chanta/pkg-plist @@ -0,0 +1,18 @@ +bin/chanta +%%DATADIR%%/data/niveles.dat +%%DATADIR%%/ima/chanta.png +%%DATADIR%%/ima/chica.png +%%DATADIR%%/ima/enemigo1.png +%%DATADIR%%/ima/item.png +%%DATADIR%%/ima/logo.png +%%DATADIR%%/ima/menu.png +%%DATADIR%%/ima/tiles.png +%%DATADIR%%/ima/titulo_claus.png +%%DATADIR%%/ima/titulo_chanta.png +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%%/ima +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |