summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2006-01-18 03:20:14 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2006-01-18 03:20:14 +0000
commit32697811f6082a0c5bf39cea17c6aefe798e4a6d (patch)
tree424c87243ee8ef5aba1c2883b5245acb0e001f4b /games
parent- Remove vendor optimizations from CFLAGS [1] (diff)
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>
Notes
Notes: svn path=/head/; revision=153776
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/pouetchess/Makefile56
-rw-r--r--games/pouetchess/distinfo3
-rw-r--r--games/pouetchess/pkg-descr5
-rw-r--r--games/pouetchess/pkg-plist33
5 files changed, 98 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index cc1dc56ace42..03ea57e4e436 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -455,6 +455,7 @@
SUBDIR += pmars
SUBDIR += pmars-sdl
SUBDIR += polypuzzle
+ SUBDIR += pouetchess
SUBDIR += powermanga
SUBDIR += powwow
SUBDIR += ppracer
diff --git a/games/pouetchess/Makefile b/games/pouetchess/Makefile
new file mode 100644
index 000000000000..13d3ca67fc6a
--- /dev/null
+++ b/games/pouetchess/Makefile
@@ -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>
diff --git a/games/pouetchess/distinfo b/games/pouetchess/distinfo
new file mode 100644
index 000000000000..e4834c9098ce
--- /dev/null
+++ b/games/pouetchess/distinfo
@@ -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
diff --git a/games/pouetchess/pkg-descr b/games/pouetchess/pkg-descr
new file mode 100644
index 000000000000..8dff5e1fcd66
--- /dev/null
+++ b/games/pouetchess/pkg-descr
@@ -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/
diff --git a/games/pouetchess/pkg-plist b/games/pouetchess/pkg-plist
new file mode 100644
index 000000000000..b39e26d6fbc4
--- /dev/null
+++ b/games/pouetchess/pkg-plist
@@ -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%%