From 63d0782052b1d42a8b3e2931cb9b0b5f5e0fb8fa Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Wed, 25 Jun 2014 13:36:30 +0000 Subject: [PATCH] - Update to 0.99.3, announce message: bomns * Banish the Autotools to the land of wind and ghosts. CMake for the win. * Beginnings of netplay, thanks to Charles. See the "netplay" branch. * No longer compiles unused/broken AI code bomnsedit * None bomnslauncher * GTK1 launcher is archived and no longer built (it sucks, don't worry) * bomnslauncher2 renamed bomnslauncher - Transfer maintainership to games@ team - Add license (GPLv2) - Switch to USES=cmake and change to fetch from GITHUB - Remove not existent Option and OPTIONS_SUB - Remove pkgconfig, USE_BZIP2 and obsolete patches, changed by upstream - Add CMAKE_ARGS+= -Wno-dev and USE_CSTD=gnu89 - Add DOCS and Option - Symlink the icon - Change WWW --- games/bomns/Makefile | 67 ++++++++++++++++--------------------------- games/bomns/distinfo | 4 +-- games/bomns/pkg-descr | 2 +- games/bomns/pkg-plist | 7 +++-- 4 files changed, 32 insertions(+), 48 deletions(-) diff --git a/games/bomns/Makefile b/games/bomns/Makefile index 22f8ca31b9cf..317dbca53987 100644 --- a/games/bomns/Makefile +++ b/games/bomns/Makefile @@ -2,57 +2,40 @@ # $FreeBSD$ PORTNAME= bomns -PORTVERSION= 0.99.2 -PORTREVISION= 2 +PORTVERSION= 0.99.3 CATEGORIES= games -MASTER_SITES= SF/greenridge/Bomns%20for%20Linux/Bomns%20for%20Linux%20${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Best old-school Deathmatch game ever (only for two players) -USES= pkgconfig -USE_BZIP2= yes +LICENSE= GPLv2 + +LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 + +USE_GITHUB= yes +GH_ACCOUNT= keithfancher +GH_PROJECT= Bomns-for-Linux +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 113be27 + +USES= cmake USE_SDL= mixer sdl -WANT_GNOME= yes +USE_GNOME= gtk20 +CMAKE_ARGS+= -Wno-dev +USE_CSTD= gnu89 INSTALLS_ICONS= yes -GNU_CONFIGURE= yes -CPPFLAGS+= `${SDL_CONFIG} --cflags` -LDFLAGS+= `${SDL_CONFIG} --libs` -CONFIGURE_ARGS= --program-transform-name= +CFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ENV+= LIBS=-L${LOCALBASE}/lib -OPTIONS_DEFINE= EDITOR LAUNCHER OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= EDITOR LAUNCHER OPTIMIZED_CFLAGS -EDITOR_DESC= Enable building of the map editor -LAUNCHER_DESC= Enable building of the GTK2 launcher +PORTDOCS= AUTHORS ChangeLog README +OPTIONS_DEFINE= DOCS -OPTIONS_SUB= yes +post-install: + ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ -EDITOR_CONFIGURE_ENABLE= editor - -LAUNCHER_USE= GNOME=gtk20 -LAUNCHER_CONFIGURE_ENABLE= launcher2 - -.include - -post-patch: -# Fix SDL include statement. -.for f in *.cpp *.h - @${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \ - ${XARGS} -0 \ - ${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' -.endfor - -# Remove -lSDL linker flag. -.for f in Makefile.am Makefile.in - @${FIND} ${WRKSRC}/src -type f -name ${f} -print0 | \ - ${XARGS} -0 \ - ${REINPLACE_CMD} -e 's|-lSDL || ; s|-lSDL$$|| ; s|-lpthread||' -.endfor - -# Enable/disable compilation optimizations. -.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) - @${REINPLACE_CMD} -e 's|-O2||' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/bomns/distinfo b/games/bomns/distinfo index 05d1dd8d2492..6e91fe29338f 100644 --- a/games/bomns/distinfo +++ b/games/bomns/distinfo @@ -1,2 +1,2 @@ -SHA256 (bomns-0.99.2.tar.bz2) = 4be865ecde8798e6635874f714c27f3bc06a4bb2af871c386a952ad7c4d5bfa7 -SIZE (bomns-0.99.2.tar.bz2) = 904065 +SHA256 (bomns-0.99.3.tar.gz) = b7fdc1f19d19e86fa150f1895c89cefcc911d70f4098a835a37b742f5e55160f +SIZE (bomns-0.99.3.tar.gz) = 1745681 diff --git a/games/bomns/pkg-descr b/games/bomns/pkg-descr index c0c5b81d3d02..d44eeab62bb6 100644 --- a/games/bomns/pkg-descr +++ b/games/bomns/pkg-descr @@ -4,4 +4,4 @@ fun factor and its unique ability to increase your sex appeal and significantly lengthen your life. Originally conceived by Charles Lindsay, it has taken many forms since the first "Bomns". -WWW: http://greenridge.sourceforge.net/ +WWW: https://github.com/keithfancher/Bomns-for-Linux diff --git a/games/bomns/pkg-plist b/games/bomns/pkg-plist index d740304c6a8f..29dba2fb5db1 100644 --- a/games/bomns/pkg-plist +++ b/games/bomns/pkg-plist @@ -1,6 +1,6 @@ bin/bomns bin/bomnsedit -bin/bomnslauncher2 +bin/bomnslauncher share/applications/bomns.desktop %%DATADIR%%/graphics/bomn32.bmp %%DATADIR%%/graphics/editor_cursor.bmp @@ -34,7 +34,8 @@ share/icons/hicolor/256x256/apps/bomns.png share/icons/hicolor/32x32/apps/bomns.png share/icons/hicolor/48x48/apps/bomns.png share/icons/hicolor/64x64/apps/bomns.png -@dirrm %%DATADIR%%/sounds -@dirrm %%DATADIR%%/levels +share/pixmaps/bomns.png @dirrm %%DATADIR%%/graphics +@dirrm %%DATADIR%%/levels +@dirrm %%DATADIR%%/sounds @dirrm %%DATADIR%%