1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add pouetchess.

pouetChess is an open-source 3D chess game with very few and basic
dependencies. Moreover, pouetChess has an embedded Artificial Intelligence so
engines such as GNUChess are not even needed.

WWW: http://pouetchess.sourceforge.net/

PR:		ports/91935
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
This commit is contained in:
Jean-Yves Lefort 2006-01-18 03:20:14 +00:00
parent 10a97f6e28
commit 32697811f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153776
5 changed files with 98 additions and 0 deletions

View File

@ -455,6 +455,7 @@
SUBDIR += pmars SUBDIR += pmars
SUBDIR += pmars-sdl SUBDIR += pmars-sdl
SUBDIR += polypuzzle SUBDIR += polypuzzle
SUBDIR += pouetchess
SUBDIR += powermanga SUBDIR += powermanga
SUBDIR += powwow SUBDIR += powwow
SUBDIR += ppracer SUBDIR += ppracer

56
games/pouetchess/Makefile Normal file
View File

@ -0,0 +1,56 @@
# New ports collection makefile for: pouetChess
# Date created: 18 Jan 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= pouetchess
PORTVERSION= 0.1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= pouetChess_${PORTVERSION}
MAINTAINER= amdmi3@mail.ru
COMMENT= An open-source 3D chess game
USE_X_PREFIX= yes
USE_SDL= sdl image
USE_GL= yes
USE_GMAKE= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/pouetChess
MAKE_ENV= CXX="${CXX}"
post-patch:
@${FIND} ${WRKSRC} \( -name "*.cpp" -o -name "*.h" -o -name Makefile \
-o -name config.ini \) -exec ${REINPLACE_CMD} -e \
"s|$$(${PRINTF} '\r')$$||" {} \;
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/*.cpp ${WRKSRC}/src/*.h
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^LIBS/ s|$$| -L${X11BASE}/lib|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/CXX / d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/CXXFLAGS.*+=/ d' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^CXXFLAGS/ s|:=|+=|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^CXXFLAGS/ s|$$| -I${X11BASE}/include|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|\($$(CXX)\) \(-MM\)|\1 $$(CXXFLAGS) \2|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|config\.ini|${PREFIX}/etc/pouetChess.conf|' ${WRKSRC}/src/globalInfos.cpp
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/globalInfos.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/pouetChess ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/bin/config.ini ${PREFIX}/etc/pouetChess.conf.sample
if [ ! -f ${PREFIX}/etc/pouetChess.conf ]; then \
${INSTALL_DATA} ${WRKSRC}/bin/config.ini ${PREFIX}/etc/pouetChess.conf; \
fi
.for i in objets3d textures
${MKDIR} ${DATADIR}/${i}
${INSTALL_DATA} ${WRKSRC}/bin/data/${i}/* ${DATADIR}/${i}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (pouetChess_0.1.tar.gz) = e4eca429886472b6b9826f09fea504b0
SHA256 (pouetChess_0.1.tar.gz) = fdf69b3757fc69756366b3a110f54c346cc18d057f8023818339380c4639fb9a
SIZE (pouetChess_0.1.tar.gz) = 364154

View File

@ -0,0 +1,5 @@
pouetChess is an open-source 3D chess game with very few and basic
dependencies. Moreover, pouetChess has an embedded Artificial Intelligence so
engines such as GNUChess are not even needed.
WWW: http://pouetchess.sourceforge.net/

View File

@ -0,0 +1,33 @@
bin/pouetChess
@unexec if cmp -s %D/etc/pouetChess.conf %D/etc/pouetChess.conf.sample; then rm -f %D/etc/pouetChess.conf; fi
etc/pouetChess.conf.sample
@exec if [ ! -f %D/etc/pouetChess.conf ]; then cp -p %D/etc/pouetChess.conf.sample %D/etc/pouetChess.conf; fi
%%DATADIR%%/objets3d/cavalier.lwo
%%DATADIR%%/objets3d/dame.lwo
%%DATADIR%%/objets3d/fleche.lwo
%%DATADIR%%/objets3d/fou.lwo
%%DATADIR%%/objets3d/pion.lwo
%%DATADIR%%/objets3d/plateau.lwo
%%DATADIR%%/objets3d/roi.lwo
%%DATADIR%%/objets3d/table.lwo
%%DATADIR%%/objets3d/tour.lwo
%%DATADIR%%/textures/1.png
%%DATADIR%%/textures/2.png
%%DATADIR%%/textures/blender.png
%%DATADIR%%/textures/camera.png
%%DATADIR%%/textures/credits.png
%%DATADIR%%/textures/damier.jpg
%%DATADIR%%/textures/exit.png
%%DATADIR%%/textures/font.png
%%DATADIR%%/textures/force.png
%%DATADIR%%/textures/gimp.png
%%DATADIR%%/textures/kate.png
%%DATADIR%%/textures/murs.jpg
%%DATADIR%%/textures/porte.jpg
%%DATADIR%%/textures/quitter.png
%%DATADIR%%/textures/sol.jpg
%%DATADIR%%/textures/titre.png
%%DATADIR%%/textures/tux.png
@dirrm %%DATADIR%%/objets3d
@dirrm %%DATADIR%%/textures
@dirrm %%DATADIR%%