mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
Rebuilt SFML against latest Glew.
This commit is contained in:
parent
23f1d04117
commit
6593d39d98
@ -1,70 +1,35 @@
|
||||
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
||||
|
||||
pkgname=sfml
|
||||
_pkgname=SFML
|
||||
pkgver=1.6
|
||||
pkgrel=3
|
||||
pkgver=1.9
|
||||
_pkgver=2.0rc1
|
||||
pkgrel=2
|
||||
pkgdesc="A simple, fast, cross-platform and object-oriented multimedia API."
|
||||
arch=('i686' 'x86_64')
|
||||
arch=('x86_64')
|
||||
url="http://www.sfml-dev.org"
|
||||
license=('ZLIB')
|
||||
depends=('freetype2' 'glew' 'libjpeg' 'libsndfile' 'libxrandr' 'openal' 'soil')
|
||||
makedepends=(mesa doxygen)
|
||||
changelog=ChangeLog
|
||||
source=("http://downloads.sourceforge.net/$pkgname/$_pkgname-$pkgver-sdk-linux-64.tar.gz"
|
||||
"use-system-libs.patch"
|
||||
"FindSFML.cmake")
|
||||
md5sums=('7a9b3a1ef6d14cd25090e440ccdbb3a8'
|
||||
'505ea908fb6e4b9359061d8d55373963')
|
||||
depends=('freetype2' 'glew' 'libjpeg-turbo' 'libsndfile' 'libxrandr' 'openal' 'soil')
|
||||
makedepends=('mesa' 'doxygen' 'cmake')
|
||||
source=("2.0-rc.tar.gz::https://github.com/LaurentGomila/SFML/tarball/2.0-rc")
|
||||
md5sums=('03c8e6817f4525092b94a3d44e8eada8')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
cd "$srcdir"/Laurent*
|
||||
|
||||
# Apply patch to use system libs in favor of included ones (fixes many problems).
|
||||
patch -Np1 < $srcdir/use-system-libs.patch
|
||||
|
||||
# Compilation.
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
|
||||
-DBUILD_DOC=true \
|
||||
-DBUILD_EXAMPLES=true
|
||||
make
|
||||
|
||||
# Fix the library softlinks for samples.
|
||||
cd lib
|
||||
for lib in *
|
||||
do
|
||||
ln -sf $lib ${lib/.${pkgver}/}
|
||||
done
|
||||
make doc
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
cd "$srcdir"/Laurent*/build
|
||||
|
||||
# Prepare some directories.
|
||||
mkdir -p $pkgdir/usr/lib \
|
||||
$pkgdir/usr/include \
|
||||
$pkgdir/usr/share/$pkgname \
|
||||
$pkgdir/usr/share/doc
|
||||
make DESTDIR="$pkgdir/" install
|
||||
|
||||
# Actual installation.
|
||||
sed '/export DESTDIR/d' -i src/$_pkgname/Makefile
|
||||
make DESTDIR=$pkgdir/usr install
|
||||
install -Dm644 "$pkgdir/usr/share/SFML/cmake/Modules/FindSFML.cmake" "$pkgdir/usr/share/cmake-2.8/Modules/FindSFML.cmake"
|
||||
|
||||
# Fix the library softlinks (again).
|
||||
cd $pkgdir/usr/lib
|
||||
rm *.so
|
||||
for lib in *
|
||||
do
|
||||
ln -s $lib ${lib/.$pkgver/}
|
||||
done
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
|
||||
# Install docs.
|
||||
cp -r doc $pkgdir/usr/share/doc/$pkgname
|
||||
|
||||
# CMake module.
|
||||
install -D $srcdir/FindSFML.cmake $pkgdir/usr/share/cmake-2.8/Modules/FindSFML.cmake
|
||||
|
||||
# License.
|
||||
install -Dm 644 license.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||
install -Dm644 ../license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
md5sums=('7a9b3a1ef6d14cd25090e440ccdbb3a8'
|
||||
'505ea908fb6e4b9359061d8d55373963'
|
||||
'1f57ca0865c6ead90a5ecd768b90f1c1')
|
||||
|
Loading…
Reference in New Issue
Block a user