Bug 179935 - [PATCH] games/tuxpuck: Trim Makefile
Summary: [PATCH] games/tuxpuck: Trim Makefile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-24 20:50 UTC by nemysis
Modified: 2013-06-28 19:20 UTC (History)
1 user (show)

See Also:


Attachments
tuxpuck-0.8.2_17.patch (2.50 KB, patch)
2013-06-24 20:50 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-24 20:50:00 UTC
- Shorten header
- Remove versions from LIB_DEPENDS
- Change portname to ${PORTNAME}
- Use REINPLACE_CMD instead of simple patches
- Trim Makefile
- Remove files/patch-utils::Makefile

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)

How-To-Repeat: 
Build log

https://redports.org/buildarchive/20130624175400-54797/
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-06-28 19:15:42 UTC
Author: lippe
Date: Fri Jun 28 18:15:30 2013
New Revision: 321969
URL: http://svnweb.freebsd.org/changeset/ports/321969

Log:
  - Trim Makefile
  
  PR:		ports/179935
  Submitted by:	nemysis <nemysis@gmx.ch>

Deleted:
  head/games/tuxpuck/files/patch-utils::Makefile
Modified:
  head/games/tuxpuck/Makefile   (contents, props changed)

Modified: head/games/tuxpuck/Makefile
==============================================================================
--- head/games/tuxpuck/Makefile	Fri Jun 28 18:11:52 2013	(r321968)
+++ head/games/tuxpuck/Makefile	Fri Jun 28 18:15:30 2013	(r321969)
@@ -1,44 +1,43 @@
-# ex:ts=8
-# New ports collection makefile for:	tuxpuck
-# Date created:		25 April 2002
-# Whom:			Jan Stocker <Jan.Stocker@t-online.de>
-#
+# Created by: Jan Stocker <Jan.Stocker@t-online.de>
 # $FreeBSD$
-#
 
 PORTNAME=	tuxpuck
 PORTVERSION=	0.8.2
-PORTREVISION=	17
+PORTREVISION=	18
 CATEGORIES=	games
 MASTER_SITES=	http://www.sourcefiles.org/Games/Sports/Miscellaneous/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Shufflepuck Cafe Clone
 
-LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
+LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
 		png15:${PORTSDIR}/graphics/png \
-		vorbis.4:${PORTSDIR}/audio/libvorbis \
-		freetype.9:${PORTSDIR}/print/freetype2
+		vorbis:${PORTSDIR}/audio/libvorbis \
+		freetype:${PORTSDIR}/print/freetype2
 
 USE_SDL=	sdl
 USE_GMAKE=	yes
-ALL_TARGET=	tuxpuck
+ALL_TARGET=	${PORTNAME}
 MAKE_JOBS_UNSAFE=	yes
 
 CFLAGS+=	-I${LOCALBASE}/include/libpng15
+
 MANCOMPRESSED=	yes
-MAN6=		tuxpuck.6
-PLIST_FILES=	bin/tuxpuck
+
+PLIST_FILES=	bin/${PORTNAME}
+
+MAN6=		${PORTNAME}.6
 
 .include <bsd.port.pre.mk>
 
 post-patch:
 	cd ${WRKSRC}; \
-	${REINPLACE_CMD} "s,timer_create,_timer_create,g" \
+	${REINPLACE_CMD} 's|timer_create|_timer_create|g' \
 	tuxpuck.c video.c timer.c intro.c tuxpuck.h
+	${REINPLACE_CMD} -e 's|sdl-config|$$(SDL_CONFIG)|g' ${WRKSRC}/utils/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/tuxpuck ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/man/tuxpuck.6.gz ${MANPREFIX}/man/man6
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/man/${MAN6}.gz ${MAN6PREFIX}/man/man6
 
 .include <bsd.port.post.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2013-06-28 19:15:58 UTC
State Changed
From-To: open->closed

Committed. Thanks!