2006-01-18 04:20:14 +01:00
|
|
|
# New ports collection makefile for: pouetChess
|
|
|
|
# Date created: 18 Jan 2006
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-01-18 04:20:14 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pouetchess
|
2006-02-06 01:23:38 +01:00
|
|
|
PORTVERSION= 0.1.1
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 11
|
2006-01-18 04:20:14 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.11
|
2006-02-06 01:23:38 +01:00
|
|
|
DISTNAME= pouetChess_0.11_src
|
2006-01-18 04:20:14 +01:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2013-01-23 00:12:20 +01:00
|
|
|
COMMENT= Open-source 3D chess game
|
2006-01-18 04:20:14 +01:00
|
|
|
|
|
|
|
USE_SDL= sdl image
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= gl
|
2006-01-18 04:20:14 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2006-02-06 01:23:38 +01:00
|
|
|
WRKSRC= ${WRKDIR}/pouetChess_0.11
|
2006-01-18 04:20:14 +01:00
|
|
|
|
2006-01-20 15:13:22 +01:00
|
|
|
DESKTOP_ENTRIES="pouetChess" \
|
|
|
|
"Play chess" \
|
|
|
|
"${DATADIR}/textures/1.png" \
|
|
|
|
"pouetChess" \
|
2013-01-23 00:12:20 +01:00
|
|
|
"Game;BoardGame;" \
|
2006-01-20 15:13:22 +01:00
|
|
|
false
|
|
|
|
|
2006-01-18 04:20:14 +01:00
|
|
|
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-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^LIBS/ s|$$| -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile
|
2006-01-18 04:20:14 +01:00
|
|
|
@${REINPLACE_CMD} -e '/CXX / d' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/CXXFLAGS.*+=/ d' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/^CXXFLAGS/ s|:=|+=|' ${WRKSRC}/Makefile
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^CXXFLAGS/ s|$$| -I${LOCALBASE}/include|' ${WRKSRC}/Makefile
|
2006-01-18 04:20:14 +01:00
|
|
|
|
|
|
|
@${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
|
2006-02-06 01:23:38 +01:00
|
|
|
.for i in objets3d textures icons
|
2006-01-18 04:20:14 +01:00
|
|
|
${MKDIR} ${DATADIR}/${i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/data/${i}/* ${DATADIR}/${i}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|