Index: head/games/sdl-ball/Makefile =================================================================== --- head/games/sdl-ball/Makefile (revision 373697) +++ head/games/sdl-ball/Makefile (revision 373698) @@ -1,42 +1,38 @@ # Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= sdl-ball -PORTVERSION= 1.01 -PORTREVISION= 8 +PORTVERSION= 1.02 CATEGORIES= games MASTER_SITES= SF MAINTAINER= amdmi3@FreeBSD.org COMMENT= Arkanoid/Breakout clone with pretty graphics -LICENSE= GPLv3 +LICENSE= GPLv3 # or later LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= tar:bzip2 dos2unix gmake USE_SDL= sdl mixer image ttf USE_GL= gl glu MAKE_ENV= DATADIR=${DATADIR}/ DOS2UNIX_FILES= main.cpp -WRKSRC= ${WRKDIR}/${PORTNAME} - -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} \ + share/applications/${PORTNAME}.desktop \ + share/pixmaps/${PORTNAME}.png PORTDOCS= * PORTDATA= * OPTIONS_DEFINE= DOCS -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}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DATADIR} cd ${WRKSRC}/themes && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/themes/default/icon32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + ${INSTALL_DATA} ${WRKSRC}/sdl-ball.desktop ${STAGEDIR}${PREFIX}/share/applications/ .include Index: head/games/sdl-ball/distinfo =================================================================== --- head/games/sdl-ball/distinfo (revision 373697) +++ head/games/sdl-ball/distinfo (revision 373698) @@ -1,2 +1,2 @@ -SHA256 (sdl-ball-1.01.tar.bz2) = 85e2a857c8c318e81732e3c1e843fc70d7199fa83e2f4efc42239ebbe8d7b9e6 -SIZE (sdl-ball-1.01.tar.bz2) = 3467329 +SHA256 (sdl-ball-1.02.tar.bz2) = 03ae91c0ddbcf055a224b765da55dc5c8417e9b09971eb56280c8e602ba01423 +SIZE (sdl-ball-1.02.tar.bz2) = 3286131 Index: head/games/sdl-ball/files/patch-main.cpp =================================================================== --- head/games/sdl-ball/files/patch-main.cpp (revision 373697) +++ head/games/sdl-ball/files/patch-main.cpp (nonexistent) @@ -1,19 +0,0 @@ ---- main.cpp.orig 2013-09-13 20:14:07.890226440 +0400 -+++ main.cpp 2013-09-13 20:14:24.001226100 +0400 -@@ -31,6 +31,7 @@ - #include - #include - #include -+#include // for usleep() - - #include - -@@ -1420,7 +1421,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 Property changes on: head/games/sdl-ball/files/patch-main.cpp ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/sdl-ball/files/patch-Makefile =================================================================== --- head/games/sdl-ball/files/patch-Makefile (nonexistent) +++ head/games/sdl-ball/files/patch-Makefile (revision 373698) @@ -0,0 +1,27 @@ +--- Makefile.orig 2008-12-31 03:42:35.000000000 +0300 ++++ Makefile 2014-12-01 00:26:16.000000000 +0300 +@@ -2,9 +2,9 @@ + + #append -DWITH_WIIUSE to compile with WIIUSE support! + #append -DNOSOUND to compile WITHOUT sound support +-CC=g++ -DDATADIR="\"$(DATADIR)\"" ++CXX?=g++ + +-CFLAGS+=-c -Wall `sdl-config --cflags` ++CXXFLAGS+=-Wall `sdl-config --cflags` -DDATADIR="\"$(DATADIR)\"" + + #append -lwiiuse to compile with WIIUSE support + #remove -lSDL_mixer if compiling with -DNOSOUND +@@ -18,10 +18,10 @@ + all: $(SOURCES) $(EXECUTABLE) + + $(EXECUTABLE): $(OBJECTS) +- $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ ++ $(CXX) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ + + .cpp.o: +- $(CC) $(CFLAGS) $< -o $@ ++ $(CXX) -c $(CXXFLAGS) $< -o $@ + + clean: + rm -f *.o sdl-ball Property changes on: head/games/sdl-ball/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property