aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/nuclearchess/Makefile41
-rw-r--r--games/nuclearchess/pkg-plist37
2 files changed, 31 insertions, 47 deletions
diff --git a/games/nuclearchess/Makefile b/games/nuclearchess/Makefile
index c76e10db72c6..4e0a7b898637 100644
--- a/games/nuclearchess/Makefile
+++ b/games/nuclearchess/Makefile
@@ -1,25 +1,46 @@
-# New ports collection makefile for: nuclearchess
-# Date Created: 2006-05-26
-# Whom: Shaun Amott <shaun@inerd.com>
-#
+# Created by: Shaun Amott <shaun@inerd.com>
# $FreeBSD$
-#
PORTNAME= nuclearchess
PORTVERSION= 1.0.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= http://www.linux-games.com/nuclearchess/
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A chess variant designed to be short and fun for all players
+MAINTAINER= nemysis@gmx.ch
+COMMENT= Chess variant designed to be short and fun for all players
-LICENSE= GPLv2 GPLv3
-LICENSE_COMB= dual
+LICENSE= GPLv2
+
+BUILD_DEPENDS= pamscale:${PORTSDIR}/graphics/netpbm
USE_SDL= sdl image
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${DATADIR}
MAKE_JOBS_SAFE= yes
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.png
+
+PORTDATA= *
+PORTDOCS= AUTHORS ChangeLog
+
+DESKTOP_ENTRIES="NuclearChess" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+
+.include <bsd.port.options.mk>
+
+post-build:
+ @(cd ${WRKSRC}/gfx && \
+ ${LOCALBASE}/bin/pngtopnm atom.png | \
+ ${LOCALBASE}/bin/pamscale .22 | ${LOCALBASE}/bin/pnmtopng > nuclearchess.png)
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/gfx/nuclearchess.png ${PREFIX}/share/pixmaps
+
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/games/nuclearchess/pkg-plist b/games/nuclearchess/pkg-plist
deleted file mode 100644
index 88c3d938ea43..000000000000
--- a/games/nuclearchess/pkg-plist
+++ /dev/null
@@ -1,37 +0,0 @@
-bin/nuclearchess
-%%DATADIR%%/gfx/SmallStone.png
-%%DATADIR%%/gfx/anim3.png
-%%DATADIR%%/gfx/bauer.png
-%%DATADIR%%/gfx/dame.png
-%%DATADIR%%/gfx/anim1.png
-%%DATADIR%%/gfx/anim4.png
-%%DATADIR%%/gfx/turm.png
-%%DATADIR%%/gfx/StoneFont.png
-%%DATADIR%%/gfx/anim10.png
-%%DATADIR%%/gfx/anim5.png
-%%DATADIR%%/gfx/black.png
-%%DATADIR%%/gfx/koenig.png
-%%DATADIR%%/gfx/anim11.png
-%%DATADIR%%/gfx/anim6.png
-%%DATADIR%%/gfx/white.png
-%%DATADIR%%/gfx/anim12.png
-%%DATADIR%%/gfx/anim7.png
-%%DATADIR%%/gfx/board.png
-%%DATADIR%%/gfx/laeufer.png
-%%DATADIR%%/gfx/wood.png
-%%DATADIR%%/gfx/anim13.png
-%%DATADIR%%/gfx/anim8.png
-%%DATADIR%%/gfx/bomb.png
-%%DATADIR%%/gfx/anim14.png
-%%DATADIR%%/gfx/anim9.png
-%%DATADIR%%/gfx/bombe.png
-%%DATADIR%%/gfx/anim15.png
-%%DATADIR%%/gfx/atom-rot.png
-%%DATADIR%%/gfx/button-light.png
-%%DATADIR%%/gfx/select.png
-%%DATADIR%%/gfx/anim2.png
-%%DATADIR%%/gfx/atom.png
-%%DATADIR%%/gfx/button.png
-%%DATADIR%%/gfx/springer.png
-@dirrm %%DATADIR%%/gfx
-@dirrm %%DATADIR%%