Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 22:30:07 +0000 (UTC)
From:      Alex Kozlov <ak@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305990 - head/games/sdl_lopan
Message-ID:  <201210162230.q9GMU7c7033944@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ak
Date: Tue Oct 16 22:30:07 2012
New Revision: 305990
URL: http://svn.freebsd.org/changeset/ports/305990

Log:
  - Convert Makefile headers to new style
  - Convert to new options framework
  - Remove redundant comments
  - Add DESKTOP_ENTRIES
  - Bump PORTREVISION
  
  Submitted by:	nemysis <nemysis at gmx.ch> (maintainer)
  Feature safe:	yes

Modified:
  head/games/sdl_lopan/Makefile
  head/games/sdl_lopan/distinfo   (contents, props changed)

Modified: head/games/sdl_lopan/Makefile
==============================================================================
--- head/games/sdl_lopan/Makefile	Tue Oct 16 22:23:37 2012	(r305989)
+++ head/games/sdl_lopan/Makefile	Tue Oct 16 22:30:07 2012	(r305990)
@@ -1,54 +1,61 @@
-# New Ports collection makefile for:	SDL_Lopan
-# Date created:		2012-04-26
-# Whom:			nemysis@gmx.ch
-#
 # $FreeBSD$
-#
 
 PORTNAME=	sdl_lopan
 PORTVERSION=	10
+PORTREVISION=	1
 CATEGORIES=	games
-MASTER_SITES=	http://www.linuxmotors.com/sdllopan/downloads/
-DISTNAME=	${PORTNAME:S/_//}-${PORTVERSION}
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	http://www.linuxmotors.com/sdllopan/downloads/ \
+		http://www.linuxmotors.com/sdllopan/:icons
+DISTFILES=	sdllopan-${DISTVERSION}.tgz \
+		sdllopan.gif:icons
+DIST_SUBDIR=	${PORTNAME}
+EXTRACT_ONLY=	sdllopan-${DISTVERSION}.tgz
 
 MAINTAINER=	nemysis@gmx.ch
 COMMENT=	Mahjong game remake
 
 LICENSE=	GPLv2
 
+BUILD_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm
+
 WRKSRC=		${WRKDIR}/sdllopan-${PORTVERSION}
 
 USE_SDL=	sdl image mixer
 USE_GMAKE=	yes
 MAKE_JOBS_SAFE=	yes
 
-PLIST_FILES=	bin/sdllopan
+ALL_TARGET=
+
+PLIST_FILES=	bin/sdllopan \
+		share/pixmaps/sdllopan.png
 
 PORTDATA=	*
 PORTDOCS=	Changelog README
 
-ALL_TARGET=
+DESKTOP_ENTRIES="SDL Lopan" "${COMMENT}" "sdllopan" \
+		"sdllopan" "Game;ArcadeGame;" ${FALSE}
+
+.include <bsd.port.options.mk>
 
 post-patch:
-# Fix data location
-	@${REINPLACE_CMD} -e 's!data/bg%d.pcx!${DATADIR}/data/bg%d.pcx!' \
-	-e 's!data/tiles%d.pcx!${DATADIR}/data/tiles%d.pcx!' \
-	-e 's!char temp\[64\];!char temp\[256\];!' \
-	${WRKSRC}/lopan.c
+	@${REINPLACE_CMD} -e 's|data/bg%d.pcx|${DATADIR}/data/bg%d.pcx|' \
+	-e 's|data/tiles%d.pcx|${DATADIR}/data/tiles%d.pcx|' \
+	-e 's|char temp\[64\];|char temp\[256\];|' \
+		${WRKSRC}/lopan.c
+
+post-build:
+	@(cd ${WRKSRC} && \
+		${LOCALBASE}/bin/giftopnm ${DISTDIR}/${DIST_SUBDIR}/sdllopan.gif | \
+		${LOCALBASE}/bin/pamscale .1 | ${LOCALBASE}/bin/pnmtopng > sdllopan.png)
 
 do-install:
-# Executable
 	${INSTALL_PROGRAM} ${WRKSRC}/lopan ${PREFIX}/bin/sdllopan
-# Data
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
+	${INSTALL_DATA} ${WRKSRC}/sdllopan.png ${PREFIX}/share/pixmaps
 
-# Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/games/sdl_lopan/distinfo
==============================================================================
--- head/games/sdl_lopan/distinfo	Tue Oct 16 22:23:37 2012	(r305989)
+++ head/games/sdl_lopan/distinfo	Tue Oct 16 22:30:07 2012	(r305990)
@@ -1,2 +1,4 @@
-SHA256 (sdllopan-10.tgz) = 386de065bc8c3449c3b0b5e5651cb035cb1bdc242b425c865dd387c54ce708c3
-SIZE (sdllopan-10.tgz) = 380102
+SHA256 (sdl_lopan/sdllopan-10.tgz) = 386de065bc8c3449c3b0b5e5651cb035cb1bdc242b425c865dd387c54ce708c3
+SIZE (sdl_lopan/sdllopan-10.tgz) = 380102
+SHA256 (sdl_lopan/sdllopan.gif) = 390f26f4792e1116b4f4456a1e2b9713bca6b9fd200badb85e4b9be403a0988a
+SIZE (sdl_lopan/sdllopan.gif) = 45164



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