Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2008 23:28:38 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/121839: [MAINTAINER] games/randomshooter: update to 0.3-1
Message-ID:  <20080318202838.333611702D@hades.panopticon>
Resent-Message-ID: <200803182030.m2IKU1lU010948@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121839
>Category:       ports
>Synopsis:       [MAINTAINER] games/randomshooter: update to 0.3-1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 18 20:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Fri Mar 14 14:26:43 MSK 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
* Update to 0.3-1
>How-To-Repeat:
>Fix:

--- randomshooter.patch begins here ---
diff -ruN randomshooter.orig/Makefile randomshooter/Makefile
--- randomshooter.orig/Makefile	2008-03-18 22:59:54.000000000 +0300
+++ randomshooter/Makefile	2008-03-18 23:20:53.000000000 +0300
@@ -6,11 +6,11 @@
 #
 
 PORTNAME=	randomshooter
-DISTVERSION=	0.1-1
+DISTVERSION=	0.3-1
 CATEGORIES=	games
 # original url: http://parallelrealities.co.uk/download.php?proj=randomShooter&file=${DISTNAME}&type=zip
 MASTER_SITES=	http://www.amdmi3.ru/distfiles/
-DISTNAME=	RandomShooter-${DISTVERSION}
+DISTNAME=	randomshooter-${DISTVERSION}
 
 MAINTAINER=	amdmi3@amdmi3.ru
 COMMENT=	A simple shoot'em up with online scoring and replays
@@ -18,16 +18,15 @@
 USE_GMAKE=	yes
 USE_SDL=	sdl mixer image ttf net
 
-WRKSRC=		${WRKDIR}/RandomShooter
+WRKSRC=		${WRKDIR}/${DISTNAME:S/-1$$//}
 PORTDOCS=	*
 
 MAKEFILE=	makefile
-MAKE_ENV=	CXX="${CXX}"
-CXXFLAGS+=	-DINSTALL_DIR=\\\"${DATADIR}/\\\"
+MAKE_ENV=	CXX="${CXX}" DATADIR=${DATADIR}/
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-.for dir in font gfx music
+.for dir in font gfx help music
 	${MKDIR} ${DATADIR}/${dir}
 	${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}
 .endfor
diff -ruN randomshooter.orig/distinfo randomshooter/distinfo
--- randomshooter.orig/distinfo	2008-03-18 22:59:54.000000000 +0300
+++ randomshooter/distinfo	2008-03-18 23:05:58.000000000 +0300
@@ -1,3 +1,3 @@
-MD5 (RandomShooter-0.1-1.tar.gz) = 710d334ebaaea7336bb08cfdf61f5839
-SHA256 (RandomShooter-0.1-1.tar.gz) = 7dea906bf6573784953075a81f795451f9dcc158a834c555651698094103a759
-SIZE (RandomShooter-0.1-1.tar.gz) = 362257
+MD5 (randomshooter-0.3-1.tar.gz) = 8204901f92a9f78f17da80949e592741
+SHA256 (randomshooter-0.3-1.tar.gz) = c97eb6792b4c59036cfc440dac05c2b16ab55bdc4002a3d06409fe32e905411c
+SIZE (randomshooter-0.3-1.tar.gz) = 364623
diff -ruN randomshooter.orig/files/patch-makefile randomshooter/files/patch-makefile
--- randomshooter.orig/files/patch-makefile	2008-03-18 22:59:54.000000000 +0300
+++ randomshooter/files/patch-makefile	2008-03-18 23:20:13.000000000 +0300
@@ -1,11 +1,15 @@
---- makefile.orig	2008-02-26 00:44:53.000000000 +0300
-+++ makefile	2008-02-27 23:28:42.000000000 +0300
-@@ -1,19 +1,19 @@
- VERSION = 0.1
+--- makefile.orig	2008-03-02 14:32:18.000000000 +0300
++++ makefile	2008-03-18 23:20:03.000000000 +0300
+@@ -1,22 +1,20 @@
+-RELEASE = 0
++RELEASE = 1
+ VERSION = 0.2
+-BINDIR = /usr/games
+-DATADIR = /usr/share/games/randomshooter/
  
--CFLAGS = -Wall -pedantic -Werror -DUNIX -DVERSION=$(VERSION)
+-CFLAGS = -Wall -pedantic -Werror -DUNIX -DVERSION=$(VERSION) -DINSTALL_DIR=\"$(DATADIR)\" -DRELEASE=$(RELEASE)
 -LFLAGS = `sdl-config --libs` -lSDL -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net
-+CXXFLAGS += -Wall -DUNIX -DVERSION=$(VERSION) `${SDL_CONFIG} --cflags`
++CXXFLAGS += -Wall -DUNIX -DVERSION=$(VERSION) -DINSTALL_DIR=\"$(DATADIR)\" -DRELEASE=$(RELEASE) `${SDL_CONFIG} --cflags`
 +LFLAGS = `${SDL_CONFIG} --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net
  OBJS   = animation.o audio.o bullets.o collisions.o colors.o draw.o enemies.o entities.o font.o game.o highscores.o
  OBJS += init.o input.o main.o menu.o movement.o particles.o player.o random.o replay.o score.o screenshot.o
@@ -24,10 +28,3 @@
  
  # linking the program.
  $(PROG): $(OBJS)
-@@ -24,4 +24,4 @@
- 	rm $(PROG) *.o
- 
- install:
--	echo "make install isn't supported yet..."
-\ No newline at end of file
-+	echo "make install isn't supported yet..."
diff -ruN randomshooter.orig/pkg-plist randomshooter/pkg-plist
--- randomshooter.orig/pkg-plist	2008-03-18 22:59:54.000000000 +0300
+++ randomshooter/pkg-plist	2008-03-18 23:24:24.000000000 +0300
@@ -48,8 +48,10 @@
 %%DATADIR%%/gfx/points_frame0013.png
 %%DATADIR%%/gfx/points_frame0014.png
 %%DATADIR%%/gfx/points_frame0015.png
+%%DATADIR%%/help/help.txt
 %%DATADIR%%/music/17.mod
 @dirrm %%DATADIR%%/music
+@dirrm %%DATADIR%%/help
 @dirrm %%DATADIR%%/gfx
 @dirrm %%DATADIR%%/font
 @dirrm %%DATADIR%%
--- randomshooter.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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