From 5d9e4bb7669c6ce817218ec28f67c11faf4041ce Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 21 Feb 2013 14:16:23 +0000 Subject: - Use PLIST macros instead of pkg-plist - Set LICENSE to GPLv2 - Convert Makefile header - Convert to optionsNG - Remove indefinite article from COMMENT - Add build dependency on pamscale (graphics/netpbm) - Add DESKTOP_ENTRIES - Bump PORTREVISION - Pass maintainership to submitter PR: ports/172887 Submitted by: nemysis@gmx.ch --- games/nuclearchess/Makefile | 41 +++++++++++++++++++++++++++++++---------- games/nuclearchess/pkg-plist | 37 ------------------------------------- 2 files changed, 31 insertions(+), 47 deletions(-) delete mode 100644 games/nuclearchess/pkg-plist (limited to 'games') diff --git a/games/nuclearchess/Makefile b/games/nuclearchess/Makefile index c76e10db72c..4e0a7b89863 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 -# +# Created by: Shaun Amott # $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 + +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 diff --git a/games/nuclearchess/pkg-plist b/games/nuclearchess/pkg-plist deleted file mode 100644 index 88c3d938ea4..00000000000 --- 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%% -- cgit