Skip to content

Commit

Permalink
games/alephone: Switch to fork and update to 20230119
Browse files Browse the repository at this point in the history
- Update to latest release
- Align port with upcoming change regarding sound libraries
- This also fixes compilation with FFmpeg 6

Note: Companion ports games/alephone-data and games/alephone-scenarios
might also need updating

Changelog: https://github.com/Aleph-One-Marathon/alephone/releases/tag/release-20230119

PR:		270217
Approved by:	portmgr (maintainer timeout, 3+ weeks)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Apr 8, 2023
1 parent 56be636 commit 6bdb90e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
48 changes: 20 additions & 28 deletions games/alephone/Makefile
@@ -1,61 +1,53 @@
PORTNAME= alephone
DISTVERSION= 20190331
PORTREVISION= 6
DISTVERSION= 20230119
CATEGORIES= games
MASTER_SITES= https://github.com/Aleph-One-Marathon/${PORTNAME}/releases/download/release-${DISTVERSION}/
DISTNAME= AlephOne-${DISTVERSION}

MAINTAINER= fiziologus@gmail.com
COMMENT= Open source version of Bungies Marathon game
WWW= http://source.bungie.org/

LICENSE= GPLv3

LIB_DEPENDS= libexpat.so:textproc/expat2 \
libboost_filesystem.so:devel/boost-libs
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libavcodec.so:multimedia/ffmpeg \
libsndfile.so:audio/libsndfile \

USES= autoreconf compiler:c++11-lang gmake localbase \
USES= compiler:c++17-lang gmake localbase openal \
pkgconfig shared-mime-info sdl gl tar:bzip2

USE_SDL= sdl2 image2 net2 ttf2
USE_GL= gl glu

USE_GITHUB= yes
GH_ACCOUNT= Aleph-One-Marathon
GH_TAGNAME= release-20190331

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa

PORTDOCS= *

DATADIR= ${PREFIX}/share/AlephOne

OPTIONS_DEFINE= MAD FFMPEG OGG SPEEX ZZIP PNG CURL SNDFILE DOCS
OPTIONS_DEFAULT=MAD FFMPEG OGG SPEEX ZZIP PNG CURL SNDFILE
CONFIGURE_ARGS= --without-alsa --without-mad --without-miniupnpc \
--without-smpeg --without-vorbis

OPTIONS_DEFINE= CURL DOCS PNG SPEEX ZZIP
OPTIONS_DEFAULT=CURL DOCS PNG SPEEX ZZIP

FFMPEG_DESC= Use ffmpeg for film export and playback
ZZIP_DESC= Enable zziplib support

MAD_LIB_DEPENDS= libmad.so:audio/libmad
MAD_CONFIGURE_WITH= mad
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_WITH= ffmpeg
OGG_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
OGG_CONFIGURE_WITH= vorbis
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_WITH= curl

PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png

SPEEX_LIB_DEPENDS= libspeex.so:audio/speex \
libspeexdsp.so:audio/speexdsp
SPEEX_CONFIGURE_WITH= speex

ZZIP_LIB_DEPENDS= libzzip.so:devel/zziplib
ZZIP_CONFIGURE_WITH= zzip
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_WITH= curl
SNDFILE_LIB_DEPENDS= libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_WITH= sndfile

post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} README.txt ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions games/alephone/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1587472217
SHA256 (Aleph-One-Marathon-alephone-20190331-release-20190331_GH0.tar.gz) = eee993933d7c24c4dbf8caf5a0fc41ec98cbff31c9f99564de2781030a0ec2f2
SIZE (Aleph-One-Marathon-alephone-20190331-release-20190331_GH0.tar.gz) = 6677609
TIMESTAMP = 1678806377
SHA256 (AlephOne-20230119.tar.bz2) = ac2f517d652896c2a3286b096868f43da3be2781cd17f81085de7a5daa5c3026
SIZE (AlephOne-20230119.tar.bz2) = 6109704

0 comments on commit 6bdb90e

Please sign in to comment.