Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games/glob2: Update to 0.9.5.0 snapshot
- Update to the latest snapshot. 'glob2 --version' reports 0.9.5.0 - Clean up Makefile, drop stale patches, remove useless pkg-message. - Switch to SDL2. - Depend on libportaudio unconditionally.
- Loading branch information
1 parent
5eb3ea6
commit 512cec2
Showing
5 changed files
with
78 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,42 @@ | ||
# Created by: thierry@pompo.net | ||
# $FreeBSD$ | ||
|
||
PORTNAME= glob2 | ||
PORTVERSION= 0.9.4.4 | ||
PORTREVISION= 29 | ||
PORTVERSION= 0.9.5.0.g20230613 | ||
CATEGORIES= games | ||
MASTER_SITES= SAVANNAH/${PORTNAME}/${PORTVERSION:R}/ | ||
|
||
MAINTAINER= ports@FreeBSD.org | ||
COMMENT= Globulation 2, free and innovative strategy game | ||
MAINTAINER= makc@FreeBSD.org | ||
COMMENT= Globulation 2, real-time strategy game | ||
WWW= https://globulation2.org/ | ||
|
||
LICENSE= GPLv3+ | ||
LICENSE_FILE= ${WRKSRC}/COPYING | ||
|
||
LIB_DEPENDS= libvorbis.so:audio/libvorbis \ | ||
libportaudio.so:audio/portaudio \ | ||
libspeex.so:audio/speex \ | ||
libfribidi.so:converters/fribidi \ | ||
libboost_thread.so:devel/boost-libs \ | ||
libfreetype.so:print/freetype2 | ||
|
||
OPTIONS_DEFINE= DOCS PORTAUDIO | ||
libboost_thread.so:devel/boost-libs | ||
|
||
USES= compiler:c++11-lang gl gnome pkgconfig scons:python2 sdl | ||
USE_SDL= image net sdl ttf | ||
USES= compiler:c++14-lang gl localbase:ldflags pkgconfig scons sdl | ||
USE_SDL= image2 net2 sdl2 ttf2 | ||
USE_GL= gl glu | ||
USE_CXXSTD= c++14 | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= Globulation2 | ||
GH_TAGNAME= 39980149 | ||
|
||
MAKE_ARGS= CCFLAGS="${CFLAGS}" \ | ||
LINKFLAGS="${LDFLAGS}" \ | ||
BINDIR="${STAGEDIR}${PREFIX}/bin" \ | ||
INSTALLDIR="${STAGEDIR}${PREFIX}/share" \ | ||
DATADIR="${DATADIR}" | ||
INSTALLS_ICONS= yes | ||
|
||
CFLAGS+= -I${LOCALBASE}/include -Wno-return-type | ||
LDFLAGS+= -lpthread -L${LOCALBASE}/lib | ||
DATADIR="${DATADIR}" \ | ||
--portaudio=true | ||
|
||
PORTDOCS= README | ||
SUB_FILES= pkg-message | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
.if ${PORT_OPTIONS:MPORTAUDIO} | ||
LIB_DEPENDS+= libportaudio.so:audio/portaudio | ||
MAKE_ARGS+= --portaudio=true | ||
.else | ||
MAKE_ARGS+= --portaudio=false | ||
.endif | ||
|
||
pre-configure: | ||
${REINPLACE_CMD} -e \ | ||
's|"-g"|""|' \ | ||
${WRKSRC}/SConstruct | ||
${REINPLACE_CMD} -e \ | ||
'/^Icon/s|=.*|=${PORTNAME}|' \ | ||
${WRKSRC}/data/${PORTNAME}.desktop | ||
${REINPLACE_CMD} -e \ | ||
'/(PACKAGE_SOURCE_DIR)/s|^|//|' \ | ||
post-patch: | ||
${REINPLACE_CMD} '/addDir(PACKAGE_SOURCE_DIR)/d' \ | ||
${WRKSRC}/libgag/src/FileManager.cpp | ||
|
||
manual-regression-test: | ||
# Don't enable these tests on pointyhat, they take too long. | ||
.if defined(MAINTAINER_MODE) | ||
(cd ${WRKSRC}/src && ./glob2 -test-games) | ||
.else | ||
(cd ${WRKSRC}/src && ./glob2 -test-games-nox) | ||
.endif | ||
|
||
post-install: | ||
.for s in 16 24 32 48 64 128 | ||
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps | ||
(cd ${WRKSRC}/data/icons && ${INSTALL_DATA} glob2-icon-${s}x${s}.png \ | ||
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/${PORTNAME}.png) | ||
.endfor | ||
${RLN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ | ||
${STAGEDIR}${PREFIX}/share/pixmaps | ||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}) | ||
# workaround broken install: *.txt are required for game to run | ||
${INSTALL_DATA} ${WRKSRC}/data/*.txt ${STAGEDIR}${DATADIR}/data/ | ||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/glob2 | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1700085390 | ||
SHA256 (Globulation2-glob2-0.9.5.0.g20230613-39980149_GH0.tar.gz) = 7a638d9f9d8b6a33eb8bfaea345bda18cd3ec1640a99e0c21539b12ac8cee5cd | ||
SIZE (Globulation2-glob2-0.9.5.0.g20230613-39980149_GH0.tar.gz) = 15901135 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters