Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2013 08:20:22 +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: r337322 - in head/games/icbm3d: . files
Message-ID:  <201312240820.rBO8KMou088288@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Dec 24 08:20:21 2013
New Revision: 337322
URL: http://svnweb.freebsd.org/changeset/ports/337322

Log:
  - Bump PORTREVISION
  - Change master sites and icon
  - Support STAGEDIR
  - Add DOCS Option
  - Add Desktop entry file
  - Simplify Makefile
  - Add patches, fix bad C++ code
  
  Approved by:	pawel / wg (mentors, implicit)

Added:
  head/games/icbm3d/files/patch-randnum.c   (contents, props changed)
  head/games/icbm3d/files/patch-text.c   (contents, props changed)
Modified:
  head/games/icbm3d/Makefile
  head/games/icbm3d/distinfo   (contents, props changed)
  head/games/icbm3d/files/patch-makefile   (contents, props changed)

Modified: head/games/icbm3d/Makefile
==============================================================================
--- head/games/icbm3d/Makefile	Tue Dec 24 07:57:42 2013	(r337321)
+++ head/games/icbm3d/Makefile	Tue Dec 24 08:20:21 2013	(r337322)
@@ -3,43 +3,40 @@
 
 PORTNAME=	icbm3d
 PORTVERSION=	0.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
 MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/icbm3d/  \
 		ftp://ftp.billsgames.com/unix/x/icbm3d/ \
-		http://www.newbreedsoftware.com/images/prodicons/:icons
+		SF/nemysisfreebsdp/games/${PORTNAME}/:icons
 DISTFILES=	${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX} \
-		${PORTNAME}.gif:icons
+		${PORTNAME}.png:icons
 EXTRACT_ONLY=	${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Inter-Continental Ballistic Missiles, 3D
 
-WRKSRC=		${WRKDIR}/icbm3d
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
 USE_XORG=	x11
 MAKEFILE=	makefile
 ALL_TARGET=	${PORTNAME}
 
 PLIST_FILES=	bin/${PORTNAME} \
-		share/pixmaps/${PORTNAME}.gif
+		share/pixmaps/${PORTNAME}.png
 
 PORTDOCS=	README.txt
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
-do-install:
-# Executable
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+DESKTOP_ENTRIES="ICBM3D" "" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" ""
 
-# Pixmaps
-	${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.gif ${PREFIX}/share/pixmaps/
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
 
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/icbm3d/distinfo
==============================================================================
--- head/games/icbm3d/distinfo	Tue Dec 24 07:57:42 2013	(r337321)
+++ head/games/icbm3d/distinfo	Tue Dec 24 08:20:21 2013	(r337322)
@@ -1,4 +1,4 @@
 SHA256 (icbm3d.0.4.tar.gz) = 9ad41c154ef47695771a26875d5415bcedcb139352b1e2175f386d206b0038fd
 SIZE (icbm3d.0.4.tar.gz) = 31187
-SHA256 (icbm3d.gif) = e5d6d45ee11ff669414ac2e22943a0786b62b72035884a06abd5f12dcd0d5f15
-SIZE (icbm3d.gif) = 1024
+SHA256 (icbm3d.png) = 993ef04425b4211a699437076386f27368abf5a3d660194c1d800e20fcd1517c
+SIZE (icbm3d.png) = 877

Modified: head/games/icbm3d/files/patch-makefile
==============================================================================
--- head/games/icbm3d/files/patch-makefile	Tue Dec 24 07:57:42 2013	(r337321)
+++ head/games/icbm3d/files/patch-makefile	Tue Dec 24 08:20:21 2013	(r337322)
@@ -1,13 +1,13 @@
---- makefile.orig	1998-07-31 06:41:20.000000000 +0200
-+++ makefile	2012-09-02 23:21:36.000000000 +0200
+--- ./makefile.orig	1998-07-31 06:41:20.000000000 +0200
++++ ./makefile	2013-12-24 08:28:45.000000000 +0100
 @@ -9,14 +9,16 @@
  
  # Makefile user-definable variables------------------------------------------
  
 -CC=gcc
-+CC?=g++
-+PREFIX?=/usr/local
-+LOCALBASE?=/usr/local
++CC?=${CC}
++PREFIX?=${PREFIX}
++LOCALBASE?=${PREFIX}
  MATHLIB=-lm
  
  INSTALLROOT=$(PREFIX)

Added: head/games/icbm3d/files/patch-randnum.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/icbm3d/files/patch-randnum.c	Tue Dec 24 08:20:21 2013	(r337322)
@@ -0,0 +1,10 @@
+--- ./randnum.c.orig	1998-07-29 23:25:59.000000000 +0200
++++ ./randnum.c	2013-12-24 08:33:46.000000000 +0100
+@@ -11,6 +11,7 @@
+ #include <stdio.h>
+ #include <sys/time.h>
+ #include "randnum.h"
++#include <stdlib.h>
+ 
+ void randinit()
+ {

Added: head/games/icbm3d/files/patch-text.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/icbm3d/files/patch-text.c	Tue Dec 24 08:20:21 2013	(r337322)
@@ -0,0 +1,10 @@
+--- ./text.c.orig	1998-07-29 23:25:59.000000000 +0200
++++ ./text.c	2013-12-24 08:28:45.000000000 +0100
+@@ -7,6 +7,7 @@
+ 
+ #include <X11/Xlib.h>
+ #include "text.h"
++#include <string.h>
+ 
+ int FontHeight(XFontStruct *font_struct)
+ {



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