summaryrefslogtreecommitdiff
path: root/games/alephone
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-12-10 00:40:08 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-15 17:06:26 +0700
commite93fccb3630a8b87a0820cda2401db4c0766a373 (patch)
tree4b406c0d3e7120fab6f01ef5193feb3411bc8dfe /games/alephone
parentff9a3454ef0d7f28c19f363f2dfb93cea6d4dc6c (diff)
downloadslackbuilds-e93fccb3630a8b87a0820cda2401db4c0766a373.tar.gz
games/alephone: Updated for version 20190331.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/alephone')
-rw-r--r--games/alephone/alephone.SlackBuild14
-rw-r--r--games/alephone/alephone.info8
-rw-r--r--games/alephone/ffmpeg3.patch100
3 files changed, 10 insertions, 112 deletions
diff --git a/games/alephone/alephone.SlackBuild b/games/alephone/alephone.SlackBuild
index bcbd1d4ef8..24f2781fd1 100644
--- a/games/alephone/alephone.SlackBuild
+++ b/games/alephone/alephone.SlackBuild
@@ -6,14 +6,15 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20191209 bkw: update for 20190331
# 20150915 bkw:
# - update for 20150620 release
# - ffmpeg patches no longer needed
# - move binary to /usr/games
PRGNAM=alephone
-VERSION=${VERSION:-20150620}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-20190331}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,15 +55,12 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
[ "${FFMPEG:-yes}" = "no" ] && EXTRAOPT=--without-ffmpeg
-patch -Np1 < $CWD/ffmpeg3.patch
+#patch -Np1 < $CWD/ffmpeg3.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -fpermissive" \
diff --git a/games/alephone/alephone.info b/games/alephone/alephone.info
index 07a914e54a..ee945db9a2 100644
--- a/games/alephone/alephone.info
+++ b/games/alephone/alephone.info
@@ -1,10 +1,10 @@
PRGNAM="alephone"
-VERSION="20150620"
+VERSION="20190331"
HOMEPAGE="https://alephone.lhowon.org/"
-DOWNLOAD="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20150620/AlephOne-20150620.tar.bz2"
-MD5SUM="561914ed5880c75877bc9eeb18429a37"
+DOWNLOAD="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20190331/AlephOne-20190331.tar.bz2"
+MD5SUM="2a09e74a136213d479e4eae9e882a682"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="lua speex zziplib ffmpeg"
+REQUIRES="lua speex zziplib ffmpeg SDL2_net"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"
diff --git a/games/alephone/ffmpeg3.patch b/games/alephone/ffmpeg3.patch
deleted file mode 100644
index 5cf84b4d6b..0000000000
--- a/games/alephone/ffmpeg3.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 26c8edfa5511dd954a08335c15f41833e9bfc048 Mon Sep 17 00:00:00 2001
-From: Hopper262 <hopper@whpress.com>
-Date: Wed, 6 Jan 2016 00:59:21 -0500
-Subject: [PATCH] update old ffmpeg enums (should fix #10, #11)
-
----
- Source_Files/FFmpeg/Movie.cpp | 4 ++--
- Source_Files/FFmpeg/SDL_ffmpeg.c | 14 +++++++-------
- 2 files changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/Source_Files/FFmpeg/Movie.cpp b/Source_Files/FFmpeg/Movie.cpp
-index 3b59853..a0074a7 100644
---- a/Source_Files/FFmpeg/Movie.cpp
-+++ b/Source_Files/FFmpeg/Movie.cpp
-@@ -420,7 +420,7 @@ bool Movie::Setup()
- video_stream->codec->width = view_rect.w;
- video_stream->codec->height = view_rect.h;
- video_stream->codec->time_base = (AVRational){1, TICKS_PER_SECOND};
-- video_stream->codec->pix_fmt = PIX_FMT_YUV420P;
-+ video_stream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
- video_stream->codec->flags |= CODEC_FLAG_CLOSED_GOP;
- video_stream->codec->thread_count = get_cpu_count();
-
-@@ -539,7 +539,7 @@ bool Movie::Setup()
- // initialize conversion context
- if (success)
- {
-- av->sws_ctx = sws_getContext(temp_surface->w, temp_surface->h, PIX_FMT_RGB32,
-+ av->sws_ctx = sws_getContext(temp_surface->w, temp_surface->h, AV_PIX_FMT_RGB32,
- video_stream->codec->width,
- video_stream->codec->height,
- video_stream->codec->pix_fmt,
-diff --git a/Source_Files/FFmpeg/SDL_ffmpeg.c b/Source_Files/FFmpeg/SDL_ffmpeg.c
-index 609c908..203b049 100644
---- a/Source_Files/FFmpeg/SDL_ffmpeg.c
-+++ b/Source_Files/FFmpeg/SDL_ffmpeg.c
-@@ -86,7 +86,7 @@ extern int convert_audio(int in_samples, int in_channels, int in_stride,
- * Provide a fast way to get the correct context.
- * \returns The context matching the input values.
- */
--struct SwsContext* getContext( SDL_ffmpegConversionContext **context, int inWidth, int inHeight, enum PixelFormat inFormat, int outWidth, int outHeight, enum PixelFormat outFormat )
-+struct SwsContext* getContext( SDL_ffmpegConversionContext **context, int inWidth, int inHeight, enum AVPixelFormat inFormat, int outWidth, int outHeight, enum AVPixelFormat outFormat )
- {
- SDL_ffmpegConversionContext *ctx = *context;
-
-@@ -621,7 +621,7 @@ int SDL_ffmpegAddVideoFrame( SDL_ffmpegFile *file, SDL_Surface *frame )
- {
- case 24:
- sws_scale( getContext( &file->videoStream->conversionContext,
-- frame->w, frame->h, PIX_FMT_RGB24,
-+ frame->w, frame->h, AV_PIX_FMT_RGB24,
- file->videoStream->_ffmpeg->codec->width,
- file->videoStream->_ffmpeg->codec->height,
- file->videoStream->_ffmpeg->codec->pix_fmt ),
-@@ -634,7 +634,7 @@ int SDL_ffmpegAddVideoFrame( SDL_ffmpegFile *file, SDL_Surface *frame )
- break;
- case 32:
- sws_scale( getContext( &file->videoStream->conversionContext,
-- frame->w, frame->h, PIX_FMT_BGR32,
-+ frame->w, frame->h, AV_PIX_FMT_BGR32,
- file->videoStream->_ffmpeg->codec->width,
- file->videoStream->_ffmpeg->codec->height,
- file->videoStream->_ffmpeg->codec->pix_fmt ),
-@@ -1605,7 +1605,7 @@ SDL_ffmpegStream* SDL_ffmpegAddVideoStream( SDL_ffmpegFile *file, SDL_ffmpegCode
- stream->codec->gop_size = 12;
-
- /* set pixel format */
-- stream->codec->pix_fmt = PIX_FMT_YUV420P;
-+ stream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
-
- /* set mpeg2 codec parameters */
- if ( stream->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO )
-@@ -2223,7 +2223,7 @@ int SDL_ffmpegDecodeVideoFrame( SDL_ffmpegFile* file, AVPacket *pack, SDL_ffmpeg
- file->videoStream->_ffmpeg->codec->height,
- file->videoStream->_ffmpeg->codec->pix_fmt,
- frame->overlay->w, frame->overlay->h,
-- PIX_FMT_YUYV422 ),
-+ AV_PIX_FMT_YUYV422 ),
- ( const uint8_t* const* )file->videoStream->decodeFrame->data,
- file->videoStream->decodeFrame->linesize,
- 0,
-@@ -2245,7 +2245,7 @@ int SDL_ffmpegDecodeVideoFrame( SDL_ffmpegFile* file, AVPacket *pack, SDL_ffmpeg
- file->videoStream->_ffmpeg->codec->height,
- file->videoStream->_ffmpeg->codec->pix_fmt,
- frame->surface->w, frame->surface->h,
-- PIX_FMT_RGB32 ),
-+ AV_PIX_FMT_RGB32 ),
- ( const uint8_t* const* )file->videoStream->decodeFrame->data,
- file->videoStream->decodeFrame->linesize,
- 0,
-@@ -2259,7 +2259,7 @@ int SDL_ffmpegDecodeVideoFrame( SDL_ffmpegFile* file, AVPacket *pack, SDL_ffmpeg
- file->videoStream->_ffmpeg->codec->height,
- file->videoStream->_ffmpeg->codec->pix_fmt,
- frame->surface->w, frame->surface->h,
-- PIX_FMT_RGB24 ),
-+ AV_PIX_FMT_RGB24 ),
- ( const uint8_t* const* )file->videoStream->decodeFrame->data,
- file->videoStream->decodeFrame->linesize,
- 0,
-