Index: head/games/bloboats/Makefile =================================================================== --- head/games/bloboats/Makefile (revision 433221) +++ head/games/bloboats/Makefile (revision 433222) @@ -1,26 +1,28 @@ # Created by: Emanuel Haupt # $FreeBSD$ PORTNAME= bloboats PORTVERSION= 1.0.2 DISTVERSIONSUFFIX= -source PORTREVISION= 6 CATEGORIES= games MASTER_SITES= http://bloboats.dy.fi/mirror/ \ LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= Boat racing game in the spirit of Elasto Mania or X-Moto LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/copying.txt -USES= gmake +USES= dos2unix gmake USE_SDL= mixer image net sdl USE_GL= gl glu MAKE_ENV+= DATADIR="${DATADIR}" STAGEDIR=${STAGEDIR} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +DOS2UNIX_FILES= src/*.cpp .include Index: head/games/bloboats/files/patch-Makefile =================================================================== --- head/games/bloboats/files/patch-Makefile (revision 433221) +++ head/games/bloboats/files/patch-Makefile (revision 433222) @@ -1,59 +1,59 @@ ---- Makefile.orig 2010-11-23 19:27:16 UTC +--- Makefile.orig 2017-02-03 12:18:46 UTC +++ Makefile @@ -7,16 +7,13 @@ ### Installation directory (Installation prefix) # If you don't have root privileges, set this to /home/tentacleman/bloboats/ # for example, otherwise /. Don't use ~ or other environment variables! -PREFIX = / ### Or if you don't want to run make install at all, uncomments the next line # and comment the line below. Compile and run with './bin/bloboats' #DATADIR = data -DATADIR = $(PREFIX)/usr/games/bloboats/data - ### If you do make install, you may perhaps want to set these -BINARYDIR = $(PREFIX)/usr/bin +BINARYDIR = $(PREFIX)/bin CONFIGDIR = $(PREFIX)/etc PRIVATEDIR = ~/.bloboats @@ -53,13 +50,13 @@ ICON_CMD = i586-mingw32msvc-windres -i s ### C++ compiler to be used -CXX_DEFAULT = g++ +CXX_DEFAULT ?= g++ CXX_FREEBSD = g++ CXX_NETBSD = g++ CXX_MACOSX = g++ CXX_CROSS = i586-mingw32msvc-g++ -CXX = $(CXX_$(TARGET)) +CXX ?= g++ ### SDL-Config in your system @@ -154,14 +151,14 @@ config: echo "#define DEBUG $(DEBUG)" >> src/compiling_settings.h install: - mkdir -p $(BINARYDIR)/ - mkdir -p $(CONFIGDIR)/ - cp bloboats.dirs $(CONFIGDIR)/ - mkdir -p $(DATADIR)/ - cp -R data/* $(DATADIR)/ - cp bin/$(BINARY) $(BINARYDIR)/ - chmod -R 744 $(DATADIR) - chmod 755 `find $(DATADIR) -type d` + mkdir -p $(STAGEDIR)$(BINARYDIR)/ + mkdir -p $(STAGEDIR)$(CONFIGDIR)/ + cp bloboats.dirs $(STAGEDIR)$(CONFIGDIR)/ + mkdir -p $(STAGEDIR)$(DATADIR)/ + cp -R data/* $(STAGEDIR)$(DATADIR)/ + cp bin/$(BINARY) $(STAGEDIR)$(BINARYDIR)/ + chmod -R 744 $(STAGEDIR)$(DATADIR) + chmod 755 `find $(STAGEDIR)$(DATADIR) -type d` uninstall: rm -f $(CONFIGDIR)/bloboats.dirs Index: head/games/bloboats/files/patch-src_menu.cpp =================================================================== --- head/games/bloboats/files/patch-src_menu.cpp (nonexistent) +++ head/games/bloboats/files/patch-src_menu.cpp (revision 433222) @@ -0,0 +1,12 @@ +--- src/menu.cpp.orig 2017-02-03 12:18:46 UTC ++++ src/menu.cpp +@@ -1567,7 +1567,8 @@ void menu::resolution() { + // Get resolutions + vector resolutions; + SDL_Rect** modes = SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE|SDL_OPENGL); +- if(modes > 0) { ++ // if(modes > 0) { ++ if(modes != '\0') { + Uint32 bpp = SDL_GetVideoInfo()->vfmt->BitsPerPixel; + for(int i=0; modes[i] && i < 10; ++i) { + Resolution resolution; Property changes on: head/games/bloboats/files/patch-src_menu.cpp ___________________________________________________________________ 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