Commit 347f5f12 authored by Giuseppe's avatar Giuseppe

added 32bit stack of sdl2 with dependencies

parent d2aa6673
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=fluidsynth
pkgname=lib32-${_pkgbasename}
pkgver=1.1.6
pkgrel=1
pkgdesc="A real-time software synthesizer based on the SoundFont 2 specifications (32bit)"
arch=('x86_64')
url="http://www.fluidsynth.org/"
depends=('lib32-glib2' 'lib32-jack' 'lib32-dbus-core' 'lib32-pulseaudio')
makedepends=('cmake' 'gcc-multilib' 'lib32-readline' 'lib32-alsa-lib')
license=('LGPL')
source=("http://downloads.sourceforge.net/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
md5sums=('ae5aca6de824b4173667cbd3a310b263')
build() {
cd "$srcdir/$_pkgbasename-$pkgver"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-Denable-ladspa=ON \
-DLIB_SUFFIX=32
make
}
package() {
cd "$srcdir/$_pkgbasename-$pkgver"
make DESTDIR="$pkgdir/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=libmodplug
pkgname=lib32-${_pkgbasename}
pkgver=0.8.8.4
pkgrel=1
pkgdesc="A MOD playing library (32 bit)"
arch=('x86_64')
url="http://modplug-xmms.sourceforge.net/"
license=('custom')
depends=('lib32-gcc-libs' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://downloads.sourceforge.net/modplug-xmms/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('fddc3c704c5489de2a3cf0fedfec59db')
build() {
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cd "${srcdir}/${_pkgbasename}-${pkgver}"
./configure --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/${_pkgbasename}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=libwebp
pkgname=lib32-$_pkgbasename
pkgver=0.3.1
pkgrel=1
pkgdesc="WebP library and conversion tools (32-bit)."
arch=('x86_64' 'i686')
url="http://code.google.com/intl/en/speed/webp/"
license=('BSD')
depends=('lib32-libpng' 'lib32-libjpeg' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://webp.googlecode.com/files/$_pkgbasename-$pkgver.tar.gz")
md5sums=('dc862bb4006d819b7587767a9e83d31f')
build() {
cd "$srcdir/$_pkgbasename-$pkgver"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "$srcdir/$_pkgbasename-$pkgver"
make DESTDIR="$pkgdir/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2
pkgname=lib32-$_pkgbasename
pkgver=2.0.0
pkgrel=1
pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2.0, 32-bit)."
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=('lib32-glibc' 'lib32-libxext' 'lib32-libxrender' 'lib32-libx11' 'lib32-libgl' $_pkgbasename=$pkgver)
makedepends=('lib32-alsa-lib' 'lib32-mesa' 'lib32-libpulse' 'cmake' 'lib32-libxrandr' 'lib32-libxinerama' 'gcc-multilib')
optdepends=('lib32-alsa-lib: ALSA audio driver'
'lib32-libpulse: PulseAudio audio driver')
source=("http://www.libsdl.org/release/SDL2-${pkgver}.tar.gz")
sha256sums=('6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178')
build() {
cd "${srcdir}/SDL2-${pkgver}"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DSDL_STATIC=OFF \
-DRPATH=OFF \
-DLIB_SUFFIX=32
make
}
package() {
cd "${srcdir}/SDL2-${pkgver}/build"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2_gfx
pkgname=lib32-$_pkgbasename
pkgver=5
pkgrel=1
pkgdesc="SDL Graphic Primitives (Version 2, 32-bit)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('zlib')
depends=('lib32-sdl2' $_pkgbasename=$pkgver)
makedepends=('svn' 'gcc-multilib')
options=(!libtool)
source=("sdl2-gfx::svn://svn.code.sf.net/p/sdl2gfx/code/trunk#revision=$pkgver")
sha256sums=('SKIP')
build() {
cd "${srcdir}/sdl2-gfx/"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./autogen.sh
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/sdl2-gfx/"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2_image
pkgname=lib32-$_pkgbasename
pkgver=2.0.0
pkgrel=1
pkgdesc="SDL2 image libraries (Version 2, 32-bit)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=('lib32-sdl2' 'lib32-libpng' 'lib32-libtiff' 'lib32-libjpeg' 'lib32-libwebp' $_pkgbasename=$pkgver)
makedepends=('cmake' 'gcc-multilib')
options=(!libtool)
source=("http://www.libsdl.org/projects/SDL_image/release/SDL2_image-${pkgver}.tar.gz")
sha256sums=('b29815c73b17633baca9f07113e8ac476ae66412dec0d29a5045825c27a47234')
build() {
cd "${srcdir}/SDL2_image-${pkgver}/"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/SDL2_image-${pkgver}/"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2_mixer
pkgname=lib32-$_pkgbasename
pkgver=2.0.0
pkgrel=1
pkgdesc="A simple multi-channel audio mixer (Version 2, 32-bit)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=('lib32-sdl2' 'lib32-libvorbis' 'lib32-libmodplug' 'lib32-smpeg2' 'lib32-flac' $_pkgbasename=$pkgver)
makedepends=('lib32-fluidsynth' 'gcc-multilib')
optdepends=('fluidsynth: MIDI software synth, replaces built-in timidity')
options=(!libtool)
source=("http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz")
sha256sums=('a8ce0e161793791adeff258ca6214267fdd41b3c073d2581cd5265c8646f725b')
build() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/SDL2_mixer-${pkgver}/"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2_net
pkgname=lib32-$_pkgbasename
pkgver=249
pkgrel=1
pkgdesc="A small sample cross-platform networking library (Version 2, 32-bit)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=(lib32-sdl2 $_pkgbasename=$pkgver)
makedepends=(mercurial 'gcc-multilib')
options=(!libtool)
source=("sdl2_net::hg+http://hg.libsdl.org/SDL_net#revision=$pkgver")
md5sums=('SKIP')
build() {
cd "${srcdir}/sdl2_net/"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
# sdl2_net requires automake 1.13 but it compiles fine with current version (1.11) in [core]
sed -i 's/1.13/1.11/g' ./configure
./autogen.sh
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/sdl2_net/"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=sdl2_ttf
pkgname=lib32-$_pkgbasename
pkgver=2.0.12
pkgrel=1
pkgdesc="A library that allows you to use TrueType fonts in your SDL applications (Version 2, 32-bit)"
arch=('i686' 'x86_64')
url="http://www.libsdl.org"
license=('MIT')
depends=('lib32-sdl2' 'lib32-freetype2' $_pkgbasename=$pkgver)
makedepends=('cmake' 'gcc-multilib')
options=(!libtool)
source=("http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${pkgver}.tar.gz")
sha256sums=('8728605443ea1cca5cad501dc34dc0cb15135d1e575551da6d151d213d356f6e')
build() {
cd "${srcdir}/SDL2_ttf-${pkgver}/"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
./autogen.sh
./configure --disable-static --prefix=/usr --libdir=/usr/lib32
make
}
package() {
cd "${srcdir}/SDL2_ttf-${pkgver}/"
make DESTDIR="${pkgdir}/" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
_pkgbasename=smpeg2
pkgname=lib32-$_pkgbasename
pkgver=412
pkgrel=1
pkgdesc="SDL2 MPEG Player Library (32-bit)"
arch=('i686' 'x86_64')
url="http://icculus.org/smpeg/"
license=('LGPL')
depends=('lib32-sdl2' $_pkgbasename=$pkgver)
makedepends=('lib32-mesa' 'lib32-glu' 'svn' 'gcc-multilib')
optdepends=('lib32-glu: to use glmovie')
options=('!libtool')
source=(svn://svn.icculus.org/smpeg/trunk#revision=$pkgver)
md5sums=('SKIP')
build() {
cd ${srcdir}/trunk
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
sed -i s/SDL_CONFIG/SDL2_CONFIG/g smpeg2-config.in
./autogen.sh
./configure --prefix=/usr \
--mandir=/usr/share/man \
--disable-static \
--libdir=/usr/lib32
make
}
package() {
cd ${srcdir}/trunk
make DESTDIR=${pkgdir} install
rm -rf "${pkgdir}"/usr/{include,share,bin}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment