diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-02-22 10:23:38 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-02-22 10:23:38 +0000 |
commit | b1ef492919cb1eb10235b4583da72710baa97f8f (patch) | |
tree | f994b592e05f97d0f279c79595d0bd1feed40454 /games/nuclearchess | |
parent | 6a4677c7edc5f5feb5bba6cfcbc86497165d3c9e (diff) |
Commit the correct patch:
- remove dependency on pamscale, use a pre-built desktop icon
and desktopfileutils instead
- improve DESKTOP_ENTRIES
- move distribution files into their own subdirectory
- use pkg-plist again instead of PLIST macros
Bump PORTREVISION
PR: ports/172887
Submitted by: nemysis@gmx.de
Pointyhat: rene
Notes
Notes:
svn path=/head/; revision=312758
Diffstat (limited to 'games/nuclearchess')
-rw-r--r-- | games/nuclearchess/Makefile | 30 | ||||
-rw-r--r-- | games/nuclearchess/distinfo | 6 | ||||
-rw-r--r-- | games/nuclearchess/pkg-plist | 40 |
3 files changed, 58 insertions, 18 deletions
diff --git a/games/nuclearchess/Makefile b/games/nuclearchess/Makefile index 4e0a7b898637..3e14f0a6cb86 100644 --- a/games/nuclearchess/Makefile +++ b/games/nuclearchess/Makefile @@ -3,44 +3,42 @@ PORTNAME= nuclearchess PORTVERSION= 1.0.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= games -MASTER_SITES= http://www.linux-games.com/nuclearchess/ +MASTER_SITES= http://www.linux-games.com/nuclearchess/ \ + SF/nemysisfreebsdp/:icons +DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}.png:icons +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= nemysis@gmx.ch COMMENT= Chess variant designed to be short and fun for all players LICENSE= GPLv2 -BUILD_DEPENDS= pamscale:${PORTSDIR}/graphics/netpbm - USE_SDL= sdl image +USE_GNOME= desktopfileutils +INSTALLS_ICONS= yes 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} +DESKTOP_ENTRIES="NuclearChess" "${COMMENT}" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "${PORTNAME}" "Game;BoardGame;" 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 + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/ .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif + @-update-desktop-database .include <bsd.port.mk> diff --git a/games/nuclearchess/distinfo b/games/nuclearchess/distinfo index 8f2c861909f5..0d8fabefca90 100644 --- a/games/nuclearchess/distinfo +++ b/games/nuclearchess/distinfo @@ -1,2 +1,4 @@ -SHA256 (nuclearchess-1.0.0.tar.gz) = 52e8b2cd297e0a38be276c0084b018c8ee54709356c7f4c642cd7205976aa21b -SIZE (nuclearchess-1.0.0.tar.gz) = 1377205 +SHA256 (nuclearchess/nuclearchess-1.0.0.tar.gz) = 52e8b2cd297e0a38be276c0084b018c8ee54709356c7f4c642cd7205976aa21b +SIZE (nuclearchess/nuclearchess-1.0.0.tar.gz) = 1377205 +SHA256 (nuclearchess/nuclearchess.png) = 0f79c2bc0fdf2abd313b78d43fab1fcdf400aeefca9d9dac556bbed37abad0d5 +SIZE (nuclearchess/nuclearchess.png) = 2613 diff --git a/games/nuclearchess/pkg-plist b/games/nuclearchess/pkg-plist new file mode 100644 index 000000000000..5c82127a89c6 --- /dev/null +++ b/games/nuclearchess/pkg-plist @@ -0,0 +1,40 @@ +bin/nuclearchess +%%DATADIR%%/gfx/SmallStone.png +%%DATADIR%%/gfx/StoneFont.png +%%DATADIR%%/gfx/anim1.png +%%DATADIR%%/gfx/anim10.png +%%DATADIR%%/gfx/anim11.png +%%DATADIR%%/gfx/anim12.png +%%DATADIR%%/gfx/anim13.png +%%DATADIR%%/gfx/anim14.png +%%DATADIR%%/gfx/anim15.png +%%DATADIR%%/gfx/anim2.png +%%DATADIR%%/gfx/anim3.png +%%DATADIR%%/gfx/anim4.png +%%DATADIR%%/gfx/anim5.png +%%DATADIR%%/gfx/anim6.png +%%DATADIR%%/gfx/anim7.png +%%DATADIR%%/gfx/anim8.png +%%DATADIR%%/gfx/anim9.png +%%DATADIR%%/gfx/atom-rot.png +%%DATADIR%%/gfx/atom.png +%%DATADIR%%/gfx/bauer.png +%%DATADIR%%/gfx/black.png +%%DATADIR%%/gfx/board.png +%%DATADIR%%/gfx/bomb.png +%%DATADIR%%/gfx/bombe.png +%%DATADIR%%/gfx/button-light.png +%%DATADIR%%/gfx/button.png +%%DATADIR%%/gfx/dame.png +%%DATADIR%%/gfx/koenig.png +%%DATADIR%%/gfx/laeufer.png +%%DATADIR%%/gfx/select.png +%%DATADIR%%/gfx/springer.png +%%DATADIR%%/gfx/turm.png +%%DATADIR%%/gfx/white.png +%%DATADIR%%/gfx/wood.png +share/pixmaps/nuclearchess.png +@dirrm %%DATADIR%%/gfx +@dirrm %%DATADIR%% +@exec %%LOCALBASE%%/bin/update-desktop-database -q || /usr/bin/true +@unexec %%LOCALBASE%%/bin/update-desktop-database -q || /usr/bin/true |