1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Update to 0.8.1

- Fix LICENSE
- Switch to USES=localbase
- Switch to upstream build
- Update WWW
This commit is contained in:
Dmitry Marakasov 2017-11-04 09:04:31 +00:00
parent ca6bbf0532
commit 45a2358a50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453444
5 changed files with 35 additions and 26 deletions

View File

@ -2,23 +2,21 @@
# $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= *
@ -26,11 +24,6 @@ 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
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}

View File

@ -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

View File

@ -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

View File

@ -1,10 +0,0 @@
--- main.cpp.orig 2013-09-13 20:45:37.434226771 +0400
+++ main.cpp 2013-09-13 20:46:02.845227068 +0400
@@ -34,6 +34,7 @@
#include <SDL/SDL_image.h>
#include <math.h>
#include <string.h>
+#include <unistd.h> // for usleep()
#define ALIEN_SHOOT_DELAY rand() % 5000/(level/5.0f);
#define NUM_PSYS 20

View File

@ -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/