mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 09:07:15 +08:00
hedgewars: 0.9.20
This commit is contained in:
parent
6d530d92ca
commit
51126a6020
@ -1,29 +1,30 @@
|
|||||||
#
|
|
||||||
# Games Packages for Chakra, part of chakra-project.org
|
|
||||||
#
|
|
||||||
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
|
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
|
||||||
|
|
||||||
pkgname=hedgewars
|
pkgname=hedgewars
|
||||||
pkgver=0.9.19
|
pkgver=0.9.20
|
||||||
_pkgver=${pkgver}
|
_pkgver=${pkgver}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Free turn based strategy game similar to Worms"
|
pkgdesc="Free turn based strategy game similar to Worms"
|
||||||
arch=('i686' 'x86_64')
|
arch=('x86_64')
|
||||||
url="http://hedgewars.org"
|
url="http://hedgewars.org"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('ffmpeg' 'lua' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu')
|
depends=('ffmpeg' 'lua' 'qt' 'sdl' 'sdl_mixer' 'sdl_image' 'sdl_net' 'sdl_ttf' 'ttf-dejavu' 'freeglut')
|
||||||
makedepends=('fpc' 'cmake' 'ghc' 'haskell-bytestring-show' 'haskell-utf8-string' 'haskell-dataenc' 'haskell-network'
|
makedepends=('fpc' 'cmake' 'ghc' 'haskell-bytestring-show' 'haskell-utf8-string' 'haskell-dataenc' 'haskell-network'
|
||||||
'haskell-hslogger' 'haskell-random' 'haskell-vector')
|
'haskell-hslogger' 'haskell-random' 'haskell-vector')
|
||||||
categories=('games')
|
categories=('games')
|
||||||
source=(http://download.gna.org/$pkgname/$pkgname-src-${_pkgver}.tar.bz2)
|
source=("http://download.gna.org/$pkgname/$pkgname-src-${_pkgver}.tar.bz2"
|
||||||
md5sums=('51d84ad6ea00e9894e6119b118b4a523')
|
'ffmpeg2.0.patch')
|
||||||
|
md5sums=('7ee1b23e51053d34feb84464184f60fa'
|
||||||
|
'da84d64a252579236d3ff0cc6e008e72')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $pkgname-src-$pkgver
|
||||||
|
patch -p1 <$srcdir/ffmpeg2.0.patch
|
||||||
|
sed -e "/^instance NFData B.ByteString\$/d" -i "gameServer/Actions.hs"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $srcdir/$pkgname-src-$pkgver
|
cd $srcdir/$pkgname-src-$pkgver
|
||||||
|
|
||||||
# Patches.
|
|
||||||
sed -e "/^instance NFData B.ByteString\$/d" -i "gameServer/Actions.hs"
|
|
||||||
|
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
21
hedgewars/ffmpeg2.0.patch
Normal file
21
hedgewars/ffmpeg2.0.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -rupN a/QTfrontend/util/LibavInteraction.cpp b/QTfrontend/util/LibavInteraction.cpp
|
||||||
|
--- a/QTfrontend/util/LibavInteraction.cpp 2013-05-30 20:07:33.000000000 +0000
|
||||||
|
+++ b/QTfrontend/util/LibavInteraction.cpp 2013-07-22 16:24:42.564768844 +0000
|
||||||
|
@@ -32,7 +32,7 @@ extern "C"
|
||||||
|
|
||||||
|
struct Codec
|
||||||
|
{
|
||||||
|
- CodecID id;
|
||||||
|
+ AVCodecID id;
|
||||||
|
bool isAudio;
|
||||||
|
QString shortName; // used for identification
|
||||||
|
QString longName; // used for displaying to user
|
||||||
|
@@ -52,7 +52,7 @@ QList<Codec> codecs;
|
||||||
|
QMap<QString,Format> formats;
|
||||||
|
|
||||||
|
// test if given format supports given codec
|
||||||
|
-bool FormatQueryCodec(AVOutputFormat *ofmt, enum CodecID codec_id)
|
||||||
|
+bool FormatQueryCodec(AVOutputFormat *ofmt, enum AVCodecID codec_id)
|
||||||
|
{
|
||||||
|
#if LIBAVFORMAT_VERSION_MAJOR >= 54
|
||||||
|
return avformat_query_codec(ofmt, codec_id, FF_COMPLIANCE_NORMAL) == 1;
|
Loading…
Reference in New Issue
Block a user