diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2015-12-01 18:44:25 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2015-12-01 18:44:25 +0000 |
commit | 4101d23e7cd34f3bb5f12996e06db0e6c7df520d (patch) | |
tree | 0c95c3d785c08a7caa54cc7c8d7fce3f8338fbd6 /games/blobwars | |
parent | 3e25b3a2da72d3c44dea6e93caed913510bc9b03 (diff) | |
download | ports-4101d23e7cd34f3bb5f12996e06db0e6c7df520d.tar.gz ports-4101d23e7cd34f3bb5f12996e06db0e6c7df520d.zip |
Notes
Diffstat (limited to 'games/blobwars')
-rw-r--r-- | games/blobwars/Makefile | 38 | ||||
-rw-r--r-- | games/blobwars/distinfo | 4 | ||||
-rw-r--r-- | games/blobwars/files/patch-Makefile | 37 | ||||
-rw-r--r-- | games/blobwars/files/patch-icons-blobwars.desktop | 16 | ||||
-rw-r--r-- | games/blobwars/files/patch-src-headers.h | 14 | ||||
-rw-r--r-- | games/blobwars/files/patch-src__CReplayData.cpp | 12 | ||||
-rw-r--r-- | games/blobwars/files/patch-src__pak.cpp | 20 | ||||
-rw-r--r-- | games/blobwars/pkg-plist | 1 |
8 files changed, 88 insertions, 54 deletions
diff --git a/games/blobwars/Makefile b/games/blobwars/Makefile index a1d319c7c77c..af4dceb65271 100644 --- a/games/blobwars/Makefile +++ b/games/blobwars/Makefile @@ -2,12 +2,11 @@ # $FreeBSD$ PORTNAME= blobwars -PORTVERSION= 1.19 -PORTREVISION= 3 +PORTVERSION= 2.00 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@FreeBSD.org COMMENT= Mission and Objective based 2D Platform Game LICENSE= GPLv2 CCbyNCSA3 # GPLv2 or later @@ -18,13 +17,12 @@ LICENSE_TEXT_CCbyNCSA3=CC-BY 3.0 LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept USES= gmake -USE_SDL= image mixer net sdl ttf +USE_SDL= image2 mixer2 net2 sdl2 ttf2 WITH_ZLIB= yes -MAKEFILE= makefile INSTALLS_ICONS= yes -PORTDOCS= *.gif *.png *.html changes hacking porting readme samples +PORTDOCS= * OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes @@ -35,27 +33,27 @@ NLS_USES= gettext post-patch: @${REINPLACE_CMD} \ - -e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \ - s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)|| ; \ - s|USEPAK ?= 0|USEPAK ?= 1| ; \ - s|/usr|${LOCALBASE}| ; \ - s|$$(PREFIX)/games/|$$(PREFIX)/bin/| ; \ - s|/share/games/blobwars/|/share/blobwars/| ; \ - s| -Werror||' \ - -e '/LIBS =/s/-lz/-lz -lintl/' \ - ${WRKSRC}/makefile + -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/Makefile + +# Correct Permissions + ${CHMOD} 664 ${WRKSRC}/icons/* + +.if ! ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} \ + -e 's|mkdir -p $$(DESTDIR)$$(DOCDIR)|| ; \ + s|cp -p $$(DOCS) $$(DESTDIR)$$(DOCDIR)||' \ + ${WRKSRC}/Makefile +.endif .if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -i '' -e '/LOCALE_MO =/d' \ - ${WRKSRC}/makefile + ${WRKSRC}/Makefile .endif post-install: - ${LN} -sf ${PREFIX}/share/icons/hicolor/64x64/apps/${PORTNAME}.png \ + ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} - .include <bsd.port.mk> diff --git a/games/blobwars/distinfo b/games/blobwars/distinfo index e42e2bcf1005..85a67b10c2a1 100644 --- a/games/blobwars/distinfo +++ b/games/blobwars/distinfo @@ -1,2 +1,2 @@ -SHA256 (blobwars-1.19.tar.gz) = f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed -SIZE (blobwars-1.19.tar.gz) = 67019647 +SHA256 (blobwars-2.00.tar.gz) = c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99 +SIZE (blobwars-2.00.tar.gz) = 66982603 diff --git a/games/blobwars/files/patch-Makefile b/games/blobwars/files/patch-Makefile new file mode 100644 index 000000000000..378a94b96564 --- /dev/null +++ b/games/blobwars/files/patch-Makefile @@ -0,0 +1,37 @@ +--- Makefile.orig 2015-11-21 23:18:19.000000000 +0100 ++++ Makefile 2015-12-01 18:02:56.589310006 +0100 +@@ -6,11 +6,11 @@ + + VERSION = 2.00 + RELEASE ?= 0 +-USEPAK ?= 0 ++USEPAK ?= 1 + +-PREFIX ?= /usr +-BINDIR ?= $(PREFIX)/games/ +-DATADIR ?= $(PREFIX)/share/games/blobwars/ ++PREFIX ?= %%LOCALBASE%% ++BINDIR ?= $(PREFIX)/bin/ ++DATADIR ?= $(PREFIX)/share/blobwars/ + DOCDIR ?= $(PREFIX)/share/doc/$(PROG)/ + ICONDIR ?= $(PREFIX)/share/icons/hicolor/ + DESKTOPDIR ?= $(PREFIX)/share/applications/ +@@ -21,8 +21,8 @@ + CXXFLAGS += `pkg-config --cflags sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK) + CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall + CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT) +-CXXFLAGS += $(CFLAGS) -Werror +-LIBS = `pkg-config --libs sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -lz ++CXXFLAGS += $(CFLAGS) ++LIBS = `pkg-config --libs sdl2 SDL2_mixer SDL2_image SDL2_ttf SDL2_net` -lz -lintl + PAKLIBS = -lz + + OBJS += CAudio.o +@@ -141,6 +141,7 @@ + $(RM) $(ICONDIR)$(ICONS)$(PROG).png + $(RM) $(ICONDIR)16x16/apps/$(PROG).png + $(RM) $(ICONDIR)32x32/apps/$(PROG).png ++ $(RM) $(ICONDIR)48x48/apps/$(PROG).png + $(RM) $(ICONDIR)64x64/apps/$(PROG).png + $(RM) $(DESKTOPDIR)$(PROG).desktop + diff --git a/games/blobwars/files/patch-icons-blobwars.desktop b/games/blobwars/files/patch-icons-blobwars.desktop new file mode 100644 index 000000000000..73c25b748e11 --- /dev/null +++ b/games/blobwars/files/patch-icons-blobwars.desktop @@ -0,0 +1,16 @@ +--- icons/blobwars.desktop.orig 2015-11-21 23:18:19.000000000 +0100 ++++ icons/blobwars.desktop 2015-12-01 19:01:43.549184133 +0100 +@@ -1,9 +1,11 @@ + [Desktop Entry] + Encoding=UTF-8 +-Categories=Game;ActionGame; + Name=Blob Wars : Metal Blob Solid ++GenericName=Blob Wars + Comment=Mission and Objective based 2D Platform Game + Icon=blobwars + Exec=blobwars +-Terminal=false + Type=Application ++Categories=Game;ArcadeGame; ++Terminal=false ++StartupNotify=false diff --git a/games/blobwars/files/patch-src-headers.h b/games/blobwars/files/patch-src-headers.h new file mode 100644 index 000000000000..de109a503733 --- /dev/null +++ b/games/blobwars/files/patch-src-headers.h @@ -0,0 +1,14 @@ +--- src/headers.h.orig 2015-11-21 23:18:19.000000000 +0100 ++++ src/headers.h 2015-12-01 17:38:16.209096616 +0100 +@@ -56,11 +56,6 @@ + #define textdomain(x) while(false) + #endif + +-#if !defined(OpenBSD) && !defined(FreeBSD) && !defined(__APPLE__) +-static inline void strlcat(char *dest, const char *src, size_t n) { strncat(dest, src, n - 1); } +-static inline void strlcpy(char *dest, const char *src, size_t n) { strncpy(dest, src, n); dest[n - 1] = 0; } +-#endif +- + #include "defs.h" + + #include "CMath.h" diff --git a/games/blobwars/files/patch-src__CReplayData.cpp b/games/blobwars/files/patch-src__CReplayData.cpp deleted file mode 100644 index dfe24dcb1650..000000000000 --- a/games/blobwars/files/patch-src__CReplayData.cpp +++ /dev/null @@ -1,12 +0,0 @@ ---- ./src/CReplayData.cpp.orig 2011-04-17 16:56:56.000000000 +0200 -+++ ./src/CReplayData.cpp 2013-12-08 23:21:23.000000000 +0100 -@@ -38,7 +38,8 @@ - - void ReplayData::printReplayInformation() - { -- tm *timeinfo = localtime(&header.randomSeed); -+ time_t t = header.randomSeed; -+ tm *timeinfo = localtime(&t); - printf("Recorded on : %s", asctime(timeinfo)); - printf("Map : %s\n", header.map); - printf("Score : %d\n", header.score); diff --git a/games/blobwars/files/patch-src__pak.cpp b/games/blobwars/files/patch-src__pak.cpp deleted file mode 100644 index 5cb183a5430c..000000000000 --- a/games/blobwars/files/patch-src__pak.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- ./src/pak.cpp.orig 2011-04-17 16:56:56.000000000 +0200 -+++ ./src/pak.cpp 2013-12-08 23:09:51.000000000 +0100 -@@ -119,7 +119,7 @@ - { - printf("Couldn't open %s for reading!\n", filename); - closedir(dirp); -- gzclose(pak); -+ gzclose((gzFile)pak); - exit(1); - } - -@@ -141,7 +141,7 @@ - { - printf("Couldn't open %s for reading!\n", filename); - closedir(dirp); -- gzclose(pak); -+ gzclose((gzFile)pak); - exit(1); - } - else diff --git a/games/blobwars/pkg-plist b/games/blobwars/pkg-plist index 8c669ba697f9..d747a561a120 100644 --- a/games/blobwars/pkg-plist +++ b/games/blobwars/pkg-plist @@ -3,6 +3,7 @@ share/applications/blobwars.desktop %%DATADIR%%/blobwars.pak share/icons/hicolor/16x16/apps/blobwars.png share/icons/hicolor/32x32/apps/blobwars.png +share/icons/hicolor/48x48/apps/blobwars.png share/icons/hicolor/64x64/apps/blobwars.png %%NLS%%share/locale/ca/LC_MESSAGES/blobwars.mo %%NLS%%share/locale/da/LC_MESSAGES/blobwars.mo |