Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 22:58:42 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337394 - head/games/sdl_jewels
Message-ID:  <201312242258.rBOMwgBF013804@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Dec 24 22:58:42 2013
New Revision: 337394
URL: http://svnweb.freebsd.org/changeset/ports/337394

Log:
  - Change Makefile header
  - Bump PORTREVISION
  - Change master sites and icon
  - Remove dependency for graphics/netpbm
  - USES gmake instead of USE_GMAKE
  - Use pkg-plist instead of PLIST_FILES and PORTDATA
  - Add DOCS Option
  - Support STAGEDIR
  - Change Desktop entry file
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/sdl_jewels/pkg-plist   (contents, props changed)
Modified:
  head/games/sdl_jewels/Makefile
  head/games/sdl_jewels/distinfo

Modified: head/games/sdl_jewels/Makefile
==============================================================================
--- head/games/sdl_jewels/Makefile	Tue Dec 24 22:36:46 2013	(r337393)
+++ head/games/sdl_jewels/Makefile	Tue Dec 24 22:58:42 2013	(r337394)
@@ -1,13 +1,14 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	sdl_jewels
 PORTVERSION=	1.1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 MASTER_SITES=	http://www.linuxmotors.com/gljewel/downloads/ \
-		http://www.linuxmotors.com/gljewel/:icons
+		SF/nemysisfreebsdp/${CATEGORIES}/:icons
 DISTFILES=	${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz \
-		gljewel.gif:icons
+		${PORTNAME}.png:icons
 DIST_SUBDIR=	${PORTNAME}
 EXTRACT_ONLY=	${PORTNAME:S/sdl/SDL/}-${DISTVERSION}.tgz
 
@@ -16,48 +17,35 @@ COMMENT=	Tile-matching 8x8 puzzle game
 
 LICENSE=	GPLv2
 
-BUILD_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm
-
 WRKSRC=		${WRKDIR}/${PORTNAME:S/sdl/SDL/}-${PORTVERSION}
 
+USES=		gmake
 USE_SDL=	sdl image mixer
-USE_GMAKE=	yes
 ALL_TARGET=
 
-PLIST_FILES=	bin/sdljewels \
-		share/pixmaps/sdljewels.png
-
-PORTDATA=	*
 PORTDOCS=	ChangeLog README
 
-DESKTOP_ENTRIES="SDL Jewels" "${COMMENT}" "sdljewels" \
-		"sdljewels" "Game;ArcadeGame;" ${FALSE}
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="SDL Jewels" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;BoardGame;" ""
 
 post-patch:
 	@${RM} -rf ${WRKSRC}/data/CVS
-	@${REINPLACE_CMD} -e 's|data/bigfont.ppm|${DATADIR}/data/bigfont.ppm|' \
-	-e 's|dirlist\[\]="data";|dirlist[]="${DATADIR}/data";|' \
-	-e 's|char name[256],|char name[512],|' \
+	@${REINPLACE_CMD} -e 's|data/bigfont.ppm|${DATADIR}/data/bigfont.ppm| ; \
+	s|dirlist\[\]="data";|dirlist[]="${DATADIR}/data";| ; \
+	s|char name[256],|char name[512],|' \
 		${WRKSRC}/gljewel.c ${WRKSRC}/sound.c
-	@${REINPLACE_CMD} -e 's|CFLAGS = -O2 -Wall|CFLAGS+=|' \
-	-e 's|LDFLAGS =|LDFLAGS+=|' ${WRKSRC}/Makefile
-
-post-build:
-	@(cd ${WRKSRC} && \
-		${LOCALBASE}/bin/giftopnm ${DISTDIR}/${DIST_SUBDIR}/gljewel.gif | \
-		${LOCALBASE}/bin/pamscale .1 | ${LOCALBASE}/bin/pnmtopng > sdljewels.png)
+	@${REINPLACE_CMD} -e 's|CFLAGS = -O2 -Wall|CFLAGS+=| ; \
+	s|LDFLAGS =|LDFLAGS+=|' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${PREFIX}/bin/sdljewels
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
-	${INSTALL_DATA} ${WRKSRC}/sdljewels.png ${PREFIX}/share/pixmaps
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/gljewel ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/sdl_jewels/distinfo
==============================================================================
--- head/games/sdl_jewels/distinfo	Tue Dec 24 22:36:46 2013	(r337393)
+++ head/games/sdl_jewels/distinfo	Tue Dec 24 22:58:42 2013	(r337394)
@@ -1,4 +1,4 @@
 SHA256 (sdl_jewels/SDL_jewels-1.1.1.tgz) = c9a40b7e18fabb03e4065e656bc2c30f595103bf20dc74a10847c3f3aa138ee7
 SIZE (sdl_jewels/SDL_jewels-1.1.1.tgz) = 195366
-SHA256 (sdl_jewels/gljewel.gif) = 73e5cf488e9a7c399b30d72f9920412834386b6eb6c66fdd0e941300e220683d
-SIZE (sdl_jewels/gljewel.gif) = 57312
+SHA256 (sdl_jewels/sdl_jewels.png) = 0d84c2b23e7a8aee7d485e63d3222bd9188149829ecdea848302bde1f5e7083d
+SIZE (sdl_jewels/sdl_jewels.png) = 5043

Added: head/games/sdl_jewels/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/sdl_jewels/pkg-plist	Tue Dec 24 22:58:42 2013	(r337394)
@@ -0,0 +1,12 @@
+bin/sdl_jewels
+share/pixmaps/sdl_jewels.png
+%%DATADIR%%/data/alert.raw
+%%DATADIR%%/data/bigdrop.raw
+%%DATADIR%%/data/bigfont.ppm
+%%DATADIR%%/data/drop.raw
+%%DATADIR%%/data/gameover.raw
+%%DATADIR%%/data/illegal.raw
+%%DATADIR%%/data/row.raw
+%%DATADIR%%/data/swap.raw
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312242258.rBOMwgBF013804>