mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
update lib32-libmikmod
This commit is contained in:
parent
f895cdf71c
commit
1227ffe6a4
45
lib32-libmikmod/PKGBUILD
Normal file
45
lib32-libmikmod/PKGBUILD
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||||
|
#
|
||||||
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||||
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||||
|
|
||||||
|
_pkgbasename=libmikmod
|
||||||
|
pkgname=lib32-$_pkgbasename
|
||||||
|
pkgver=3.2.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A portable sound library"
|
||||||
|
license=('GPL' 'LGPL')
|
||||||
|
url="http://sourceforge.net/projects/mikmod/"
|
||||||
|
arch=('x86_64')
|
||||||
|
depends=('lib32-glibc' "${_pkgbasename}=${pkgver}")
|
||||||
|
makedepends=('gcc-multilib')
|
||||||
|
options=('!libtool')
|
||||||
|
install=
|
||||||
|
source=(http://mikmod.shlomifish.org/files/${_pkgbasename}-${pkgver}.tar.gz
|
||||||
|
libmikmod-3.2.0-64bit-fix.diff
|
||||||
|
libmikmod-3.1.12-loopingvolume-fix.diff)
|
||||||
|
md5sums=('96e9820d72a41fe27ff304071739696c'
|
||||||
|
'0bb09aac6e83e0a7fd6535961b3cff4c'
|
||||||
|
'a837fd876cbd2ac27419b802504489db')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CC="gcc -m32"
|
||||||
|
export CXX="g++ -m32"
|
||||||
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||||
|
|
||||||
|
cd $srcdir/$_pkgbasename-$pkgver
|
||||||
|
|
||||||
|
# patches from sdl_mixer-1.2.11 source
|
||||||
|
patch -Np1 -i $srcdir/$_pkgbasename-3.1.12-loopingvolume-fix.diff
|
||||||
|
patch -Np1 -i $srcdir/libmikmod-3.2.0-64bit-fix.diff
|
||||||
|
|
||||||
|
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/usr/lib32
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $srcdir/$_pkgbasename-$pkgver
|
||||||
|
make DESTDIR=$pkgdir install
|
||||||
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
||||||
|
}
|
||||||
|
|
15
lib32-libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
Normal file
15
lib32-libmikmod/libmikmod-3.1.12-loopingvolume-fix.diff
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Yi-Huang Han - Wed Oct 24 21:55:47 PDT 2001
|
||||||
|
* Fixed MOD music volume when looping
|
||||||
|
|
||||||
|
diff -ru libmikmod-3.1.12.orig/playercode/mplayer.c libmikmod-3.1.12/playercode/mplayer.c
|
||||||
|
--- libmikmod-3.1.12.orig/playercode/mplayer.c 2009-10-05 00:19:59.000000000 -0700
|
||||||
|
+++ libmikmod-3.1.12/playercode/mplayer.c 2009-10-05 00:44:35.000000000 -0700
|
||||||
|
@@ -3019,7 +3019,7 @@
|
||||||
|
{
|
||||||
|
MUTEX_LOCK(vars);
|
||||||
|
if (pf)
|
||||||
|
- pf->volume=(volume<0)?0:(volume>128)?128:volume;
|
||||||
|
+ pf->volume=pf->initvolume=(volume<0)?0:(volume>128)?128:volume;
|
||||||
|
MUTEX_UNLOCK(vars);
|
||||||
|
}
|
||||||
|
|
12
lib32-libmikmod/libmikmod-3.2.0-64bit-fix.diff
Normal file
12
lib32-libmikmod/libmikmod-3.2.0-64bit-fix.diff
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -u -r libmikmod-3.2.0-orig/include/mikmod.h libmikmod-3.2.0/include/mikmod.h
|
||||||
|
--- libmikmod-3.2.0-orig/include/mikmod.h 2012-06-01 15:15:42.000000000 +0200
|
||||||
|
+++ libmikmod-3.2.0/include/mikmod.h 2012-10-03 20:03:48.173576199 +0200
|
||||||
|
@@ -85,7 +85,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-#if defined(__arch64__) || defined(__alpha) || defined(__x86_64) || defined(__powerpc64__)
|
||||||
|
+#if defined(__arch64__) || defined(__alpha) || defined(__x86_64) || defined(__powerpc64__) || defined(_LP64)
|
||||||
|
/* 64 bit architectures */
|
||||||
|
|
||||||
|
typedef signed char SBYTE; /* 1 byte, signed */
|
@ -6,7 +6,7 @@
|
|||||||
_pkgbasename=sdl_mixer
|
_pkgbasename=sdl_mixer
|
||||||
pkgname=lib32-$_pkgbasename
|
pkgname=lib32-$_pkgbasename
|
||||||
pkgver=1.2.12
|
pkgver=1.2.12
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A simple multi-channel audio mixer (32-bit)"
|
pkgdesc="A simple multi-channel audio mixer (32-bit)"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.libsdl.org/projects/SDL_mixer/"
|
url="http://www.libsdl.org/projects/SDL_mixer/"
|
||||||
|
Loading…
Reference in New Issue
Block a user