summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-06-25 13:36:30 +0000
committernemysis <nemysis@FreeBSD.org>2014-06-25 13:36:30 +0000
commit19b746bb232835501d6855f9673491761400c075 (patch)
treee0b0b06b46578c6940b8b5aa030cb3b0f9f0f326
parentb06a2fb920249e05814ce757c67dc801cf2dcfc2 (diff)
downloadFreeBSD-ports-19b746bb232835501d6855f9673491761400c075.zip
FreeBSD-ports-19b746bb232835501d6855f9673491761400c075.tar.gz
- 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
-rw-r--r--games/bomns/Makefile65
-rw-r--r--games/bomns/distinfo4
-rw-r--r--games/bomns/pkg-descr2
-rw-r--r--games/bomns/pkg-plist7
4 files changed, 31 insertions, 47 deletions
diff --git a/games/bomns/Makefile b/games/bomns/Makefile
index 22f8ca3..317dbca 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
-USE_SDL= mixer sdl
-WANT_GNOME= yes
-INSTALLS_ICONS= yes
-
-GNU_CONFIGURE= yes
-CPPFLAGS+= `${SDL_CONFIG} --cflags`
-LDFLAGS+= `${SDL_CONFIG} --libs`
-CONFIGURE_ARGS= --program-transform-name=
+LICENSE= GPLv2
-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
+LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
-OPTIONS_SUB= yes
+USE_GITHUB= yes
+GH_ACCOUNT= keithfancher
+GH_PROJECT= Bomns-for-Linux
+GH_TAGNAME= ${GH_COMMIT}
+GH_COMMIT= 113be27
-EDITOR_CONFIGURE_ENABLE= editor
-
-LAUNCHER_USE= GNOME=gtk20
-LAUNCHER_CONFIGURE_ENABLE= launcher2
+USES= cmake
+USE_SDL= mixer sdl
+USE_GNOME= gtk20
+CMAKE_ARGS+= -Wno-dev
+USE_CSTD= gnu89
+INSTALLS_ICONS= yes
-.include <bsd.port.options.mk>
+CFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ENV+= LIBS=-L${LOCALBASE}/lib
-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
+PORTDOCS= AUTHORS ChangeLog README
+OPTIONS_DEFINE= DOCS
-# 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
+post-install:
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
-# 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 <bsd.port.mk>
diff --git a/games/bomns/distinfo b/games/bomns/distinfo
index 05d1dd8..6e91fe2 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 c0c5b81..d44eeab 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 d740304..29dba2f 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%%
OpenPOWER on IntegriCloud