svn commit: r321070 - in head/games/sdl-ball: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Jun 16 19:48:09 UTC 2013
Author: amdmi3
Date: Sun Jun 16 19:48:08 2013
New Revision: 321070
URL: http://svnweb.freebsd.org/changeset/ports/321070
Log:
- Fix build with clang
- Add LICENSE
- Simplify build
- Switch to dynamic plist
Added:
head/games/sdl-ball/files/patch-main.cpp (contents, props changed)
Deleted:
head/games/sdl-ball/files/patch-Makefile
head/games/sdl-ball/pkg-plist
Modified:
head/games/sdl-ball/Makefile
Modified: head/games/sdl-ball/Makefile
==============================================================================
--- head/games/sdl-ball/Makefile Sun Jun 16 19:38:38 2013 (r321069)
+++ head/games/sdl-ball/Makefile Sun Jun 16 19:48:08 2013 (r321070)
@@ -10,21 +10,36 @@ MASTER_SITES= SF
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Arkanoid/Breakout clone with pretty graphics
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
USE_BZIP2= yes
USE_SDL= sdl mixer image ttf
USE_GL= gl glu
MAKE_ENV= DATADIR=${DATADIR}/
+USE_GMAKE= yes
+USE_DOS2UNIX= main.cpp
WRKSRC= ${WRKDIR}/${PORTNAME}
+PLIST_FILES= bin/${PORTNAME}
+
PORTDOCS= *
+PORTDATA= *
.include <bsd.port.options.mk>
+do-build:
+ cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --cflags --libs` \
+ -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer \
+ -DDATADIR="\"${DATADIR}/\"" main.cpp -o ${PORTNAME}
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sdl-ball ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
cd ${WRKSRC}/themes && ${COPYTREE_SHARE} . ${DATADIR}/
+.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
Added: head/games/sdl-ball/files/patch-main.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/sdl-ball/files/patch-main.cpp Sun Jun 16 19:48:08 2013 (r321070)
@@ -0,0 +1,11 @@
+--- main.cpp.orig 2009-01-11 19:09:56.000000000 +0300
++++ main.cpp 2013-05-30 21:59:20.884120034 +0400
+@@ -1420,7 +1420,7 @@
+ //Leaves an trail of the ball
+ class tracer {
+ private:
+- GLfloat x[100], y[100], r[100], g[100], b[100], a[100],s[100], cr,cg,cb,;
++ GLfloat x[100], y[100], r[100], g[100], b[100], a[100],s[100], cr,cg,cb;
+ bool active[100];
+ int color;
+ GLfloat lastX, lastY; //Last position where we spawned one
More information about the svn-ports-all
mailing list