Bug 173350

Summary: [PATCH] games/ppracer: OptionsNG, Makefile changed, take maintainership
Product: Ports & Packages Reporter: nemysis <nemysis>
Component: Individual Port(s)Assignee: Rusmir Dusko <nemysis>
Status: Closed FIXED    
Severity: Affects Only Me CC: jgh
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ppracer-0.5.a_8.patch
none
ppracer.diff none

Description nemysis 2012-11-04 05:40:00 UTC
- Take maintainership

Removed file(s):
- pkg-plist

Makefile changed:
+LICENSE=	GPLv2
+PLIST_FILES=
+PORTDATA=	*
+PORTDOCS=
+.include <bsd.port.options.mk>
+post-install:
+.if ${PORT_OPTIONS:MDOCS}

Changed pkg-descr

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

How-To-Repeat: 
portlint -A
looks fine.

port test: clean

Build log

https://redports.org/buildarchive/20121104001945-6013/
Comment 1 nemysis 2012-11-04 12:51:03 UTC
Restored pkg-plist
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-08-14 10:29:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

submitter is now committer.
Comment 3 Rusmir Dusko freebsd_committer freebsd_triage 2014-01-16 15:33:57 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-01-16 15:46:35 UTC
Author: nemysis
Date: Thu Jan 16 15:46:26 2014
New Revision: 339924
URL: http://svnweb.freebsd.org/changeset/ports/339924
QAT: https://qat.redports.org/buildarchive/r339924/

Log:
  - Add master site SF
  - Take maintainership
  - Add licenses (GPLv2)
  - Use the new format for LIB_DEPENDS
  - Add USES desktop-file-utils
  - Disable all warnings with -w
  - Support STAGEDIR
  - Add DOCS and Option
  - Use REINPLACE_CMD instead of simple patches
  - Recreate patches with make makepatch
  - Change pkg-descr, use only one WWW
  
  PR:		ports/173350
  Submitted by:	nemysis (self)

Added:
  head/games/ppracer/files/patch-src__squirrel__squtils.h   (contents, props changed)
Deleted:
  head/games/ppracer/files/patch-src-squirrel-squirrel.h
  head/games/ppracer/files/patch-src-squirrel-squtils.h
Modified:
  head/games/ppracer/Makefile   (contents, props changed)
  head/games/ppracer/pkg-descr   (contents, props changed)

Modified: head/games/ppracer/Makefile
==============================================================================
--- head/games/ppracer/Makefile	Thu Jan 16 15:46:00 2014	(r339923)
+++ head/games/ppracer/Makefile	Thu Jan 16 15:46:26 2014	(r339924)
@@ -5,26 +5,39 @@ PORTNAME=	ppracer
 DISTVERSION=	0.5alpha
 PORTREVISION=	7
 CATEGORIES=	games
-MASTER_SITES=	BERLIOS
+MASTER_SITES=	BERLIOS \
+		SF/${PORTNAME}.berlios/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	3D downhill racing game... kind of like TuxRacer Improved
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
-		freetype:${PORTSDIR}/print/freetype2
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png \
+		libfreetype.so:${PORTSDIR}/print/freetype2
 
 USE_BZIP2=	yes
-USES=		gmake pkgconfig dos2unix
+USES=		gmake pkgconfig dos2unix desktop-file-utils
+DOS2UNIX_REGEX=	.*\.(c|cpp|h)
 USE_SDL=	mixer sdl
 USE_GL=		gl
-GNU_CONFIGURE=	yes
-DOS2UNIX_REGEX=	.*\.(c|cpp|h)
 USE_XORG=	x11 xi xext xmu xt
+GNU_CONFIGURE=	yes
+CFLAGS+=	-w
+
+PORTDOCS=	AUTHORS ChangeLog ChangeLog-pre0.3.9 ChangeLog-tuxracer
+
+OPTIONS_DEFINE= DOCS
 
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
-		-e 's,libpng12,libpng15,g' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's,RacingMode::,,' ${WRKSRC}/src/racingmode.h
+	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
+		-e 's|libpng12|libpng15|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|RacingMode::||' ${WRKSRC}/src/racingmode.h
+	@${REINPLACE_CMD} -e 's|int SQHash|long SQHash|' \
+		${WRKSRC}/src/squirrel/squirrel.h
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/games/ppracer/files/patch-src__squirrel__squtils.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ppracer/files/patch-src__squirrel__squtils.h	Thu Jan 16 15:46:26 2014	(r339924)
@@ -0,0 +1,13 @@
+--- ./src/squirrel/squtils.h.orig	2014-01-16 15:30:36.000000000 +0100
++++ ./src/squirrel/squtils.h	2014-01-16 15:30:36.000000000 +0100
+@@ -2,6 +2,10 @@
+ #ifndef _SQUTILS_H_
+ #define _SQUTILS_H_
+ 
++void *sq_vm_malloc(SQUnsignedInteger size);
++void *sq_vm_realloc(void *p,SQUnsignedInteger oldsize,SQUnsignedInteger size);
++void sq_vm_free(void *p,SQUnsignedInteger size);
++
+ #define sq_new(__ptr,__type) {__ptr=(__type *)sq_vm_malloc(sizeof(__type));new (__ptr) __type;}
+ #define sq_delete(__ptr,__type) {__ptr->~__type();sq_vm_free(__ptr,sizeof(__type));}
+ #define SQ_MALLOC(__size) sq_vm_malloc(__size);

Modified: head/games/ppracer/pkg-descr
==============================================================================
--- head/games/ppracer/pkg-descr	Thu Jan 16 15:46:00 2014	(r339923)
+++ head/games/ppracer/pkg-descr	Thu Jan 16 15:46:26 2014	(r339924)
@@ -1,13 +1,13 @@
-PlanetPenguin Racer is an OpenGL racing game featuring Tux, the
-Linux mascot. The goal of the game is to slide down a snow- and
-ice-covered mountain as quickly as possible. It is based on the
-GPL version of TuxRacer.
+PlanetPenguin Racer is an OpenGL racing game featuring Tux, the Linux mascot.
+The goal of the game is to slide down a snow- and ice-covered mountain as
+quickly as possible. The goal of the game is to slide down a snow- and
+ice-covered mountain as quickly as possible. It is based on the GPL version
+of TuxRacer 0.6.1.
 
 Differences from TuxRacer include:
 
-	* Course progress bar
-	* Themes
-	* New terrain types (lava, etc.)
-	* Actively developed!
+    * Course progress bar
+    * Themes
+    * New terrain types (lava, etc.)
 
-WWW: http://developer.berlios.de/projects/ppracer/
+WWW: https://sourceforge.net/projects/ppracer.berlios/
_______________________________________________
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"