aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-12-25 04:15:24 +0800
committernemysis <nemysis@FreeBSD.org>2013-12-25 04:15:24 +0800
commite0ee0f8c0eacaf68afa8c3ed314d5367cca6dccd (patch)
tree811ad82838736fb0794c4027e021a3194768e812 /games
parente02748e8a7be4922c2bb377213c09ba37a245f43 (diff)
downloadfreebsd-ports-gnome-e0ee0f8c0eacaf68afa8c3ed314d5367cca6dccd.tar.gz
freebsd-ports-gnome-e0ee0f8c0eacaf68afa8c3ed314d5367cca6dccd.tar.zst
freebsd-ports-gnome-e0ee0f8c0eacaf68afa8c3ed314d5367cca6dccd.zip
- Change Makefile header
- Bump PORTREVISION - Change master sites, add icon - USES gmake instead of USE_GMAKE - Change PLIST_FILES - Support STAGEDIR - Add DOCS Option - Add Desktop entry file - Simplify Makefile Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'games')
-rw-r--r--games/sets/Makefile35
-rw-r--r--games/sets/distinfo2
2 files changed, 23 insertions, 14 deletions
diff --git a/games/sets/Makefile b/games/sets/Makefile
index 9b4c0dc8ec4b..a682616ebb37 100644
--- a/games/sets/Makefile
+++ b/games/sets/Makefile
@@ -1,37 +1,44 @@
-# Created by: nemysis@gmx.ch
+# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= sets
PORTVERSION= 1.0.0
+PORTREVISION= 1
CATEGORIES= games
-MASTER_SITES= http://www.linuxmotors.com/sets/downloads/
+MASTER_SITES= http://www.linuxmotors.com/sets/downloads/ \
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
EXTRACT_SUFX= .tgz
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= This is an implementation of the sets game
LICENSE= GPLv3
-USE_GMAKE= yes
-ALL_TARGET= ${PORTNAME}
+USES= gmake
USE_SDL= sdl image
+ALL_TARGET= ${PORTNAME}
-PLIST_FILES= bin/${PORTNAME}
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.png
PORTDOCS= README
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
+
+DESKTOP_ENTRIES="Sets" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;CardGame;" ""
do-install:
-# Executable
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
post-install:
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/sets/distinfo b/games/sets/distinfo
index 9aa7680a730c..e42c0285ab5b 100644
--- a/games/sets/distinfo
+++ b/games/sets/distinfo
@@ -1,2 +1,4 @@
SHA256 (sets-1.0.0.tgz) = 2521ea6352a7925965051897e9c92293cccf72d27968eca142b79b88e6700aab
SIZE (sets-1.0.0.tgz) = 10108
+SHA256 (sets.png) = ceeba380f51c8cfa8efba907f1ff3e2674a5a76ba86a4e82159c79c6e56fe221
+SIZE (sets.png) = 2360