Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Nov 2017 09:04:31 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453444 - in head/games/simplevaders: . files
Message-ID:  <201711040904.vA494Vs1054749@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Nov  4 09:04:31 2017
New Revision: 453444
URL: https://svnweb.freebsd.org/changeset/ports/453444

Log:
  - Update to 0.8.1
  - Fix LICENSE
  - Switch to USES=localbase
  - Switch to upstream build
  - Update WWW

Added:
  head/games/simplevaders/files/patch-Makefile   (contents, props changed)
Deleted:
  head/games/simplevaders/files/patch-main.cpp
Modified:
  head/games/simplevaders/Makefile
  head/games/simplevaders/distinfo
  head/games/simplevaders/pkg-descr

Modified: head/games/simplevaders/Makefile
==============================================================================
--- head/games/simplevaders/Makefile	Sat Nov  4 08:53:58 2017	(r453443)
+++ head/games/simplevaders/Makefile	Sat Nov  4 09:04:31 2017	(r453444)
@@ -2,34 +2,27 @@
 # $FreeBSD$
 
 PORTNAME=	simplevaders
-PORTVERSION=	0.8
-PORTREVISION=	10
+PORTVERSION=	0.8.1
 CATEGORIES=	games
-MASTER_SITES=	http://dusted.dk/download/ \
-		http://mirror.amdmi3.ru/distfiles/
+MASTER_SITES=	http://dusted.dk/pages/simplevaders/ \
+		https://mirror.amdmi3.ru/distfiles/
+DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Space-Invaders like 2D space shooter
 
-LICENSE=	GPLv3
+LICENSE=	GPLv3+
 
-USES=		tar:bzip2
+USES=		localbase:ldflags tar:bzip2
 USE_SDL=	sdl mixer image ttf
 USE_GL=		gl glu
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
-
 PLIST_FILES=	bin/${PORTNAME}
 PORTDATA=	*
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/main.cpp
 	@${RM} ${WRKSRC}/data/*\~
-
-do-build:
-	(cd ${WRKSRC} && ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} main.cpp \
-		-o ${PORTNAME} `${SDL_CONFIG} --cflags --libs` -lSDL_ttf \
-		-lSDL_mixer -lSDL_image -lGL -lGLU)
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

Modified: head/games/simplevaders/distinfo
==============================================================================
--- head/games/simplevaders/distinfo	Sat Nov  4 08:53:58 2017	(r453443)
+++ head/games/simplevaders/distinfo	Sat Nov  4 09:04:31 2017	(r453444)
@@ -1,2 +1,3 @@
-SHA256 (simplevaders-0.8.tar.bz2) = dc39e8f1ae0ee51edf6836321705b8f8fb086cfce5a8d55b71a3960aad794da4
-SIZE (simplevaders-0.8.tar.bz2) = 415625
+TIMESTAMP = 1508156950
+SHA256 (simplevaders_0.8.1.tar.bz2) = c08b2c0bd8b60d4f5f3ec6c3a3af734553e17c9e1ad7610c9206774026cf4bf7
+SIZE (simplevaders_0.8.1.tar.bz2) = 398108

Added: head/games/simplevaders/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/simplevaders/files/patch-Makefile	Sat Nov  4 09:04:31 2017	(r453444)
@@ -0,0 +1,25 @@
+--- Makefile.orig	2016-06-19 09:15:04 UTC
++++ Makefile
+@@ -1,6 +1,6 @@
+-CC=g++
+-CFLAGS=-c -Wall
+-LDFLAGS=-lGL -lGLU -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image
++CXX?=g++
++CXXFLAGS+=-c -Wall
++LDFLAGS+=-lGL -lGLU -lSDL -lSDL_ttf -lSDL_mixer -lSDL_image
+ SOURCES=main.cpp
+ OBJECTS=$(SOURCES:.cpp=.o)
+ EXECUTABLE=simplevaders
+@@ -8,10 +8,10 @@ EXECUTABLE=simplevaders
+ all: $(SOURCES) $(EXECUTABLE)
+ 	
+ $(EXECUTABLE): $(OBJECTS)
+-	$(CC) $(LDFLAGS) $(OBJECTS) -o $@
++	$(CXX) $(LDFLAGS) $(OBJECTS) -o $@
+ 
+ .cpp.o:
+-	$(CC) $(CFLAGS) $< -o $@
++	$(CXX) $(CXXFLAGS) $< -o $@
+ 
+ clean:
+ 	rm *.o

Modified: head/games/simplevaders/pkg-descr
==============================================================================
--- head/games/simplevaders/pkg-descr	Sat Nov  4 08:53:58 2017	(r453443)
+++ head/games/simplevaders/pkg-descr	Sat Nov  4 09:04:31 2017	(r453444)
@@ -4,4 +4,4 @@ uses OpenGL and includes particle effects.
 The objective is to shoot the aliens before they reach the bottom
 of the screen.
 
-WWW: http://dusted.dk/?view=linux-game-simplevaders
+WWW: http://dusted.dk/pages/simplevaders/



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