aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-09-11 20:58:33 +0200
committeralice <alice@ayaya.dev>2022-09-11 20:46:49 +0000
commitc1b964b7e7fafd18199230014e47e1b4bf9857d8 (patch)
tree81f820f58ab0235a64acc546e6627a8fe1af1b94
parentaa4a4f34c72d8e405bee507cd3c0455255013974 (diff)
downloadaports-c1b964b7e7fafd18199230014e47e1b4bf9857d8.tar.gz
aports-c1b964b7e7fafd18199230014e47e1b4bf9857d8.tar.bz2
aports-c1b964b7e7fafd18199230014e47e1b4bf9857d8.tar.xz
community/sfml: rebuild against flac-1.4.0
-rw-r--r--community/sfml/APKBUILD34
1 files changed, 25 insertions, 9 deletions
diff --git a/community/sfml/APKBUILD b/community/sfml/APKBUILD
index d721863b5c..c756120196 100644
--- a/community/sfml/APKBUILD
+++ b/community/sfml/APKBUILD
@@ -1,14 +1,30 @@
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=sfml
pkgver=2.5.1
-pkgrel=3
+pkgrel=4
pkgdesc="Simple and Fast Multimedia Library"
url="https://www.sfml-dev.org/"
arch="all"
license="Zlib"
-makedepends="cmake doxygen eudev-dev flac-dev freetype-dev jpeg-dev samurai
- mesa-dev libpng-dev libogg-dev libvorbis-dev libx11-dev
- libxrandr-dev libxcb-dev openal-soft-dev xcb-util-image zlib-dev"
+makedepends="
+ cmake
+ doxygen
+ eudev-dev
+ flac-dev
+ freetype-dev
+ jpeg-dev
+ libogg-dev
+ libpng-dev
+ libvorbis-dev
+ libx11-dev
+ libxcb-dev
+ libxrandr-dev
+ mesa-dev
+ openal-soft-dev
+ samurai
+ xcb-util-image
+ zlib-dev
+ "
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
options="!check"
source="https://github.com/SFML/SFML/archive/$pkgver/sfml-$pkgver.tar.gz
@@ -17,8 +33,9 @@ source="https://github.com/SFML/SFML/archive/$pkgver/sfml-$pkgver.tar.gz
builddir="$srcdir/SFML-$pkgver"
build() {
- cmake -B build-shared \
- -GNinja \
+ CFLAGS="$CFLAGS -flto=auto" \
+ CXXFLAGS="$CXXFLAGS -flto=auto" \
+ cmake -B build-shared -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSFML_BUILD_DOC=TRUE \
@@ -26,8 +43,7 @@ build() {
-DBUILD_SHARED_LIBS=TRUE
cmake --build build-shared
- cmake -B build-static \
- -GNinja \
+ cmake -B build-static -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSFML_BUILD_DOC=TRUE \
@@ -37,8 +53,8 @@ build() {
}
package() {
- DESTDIR="$pkgdir" cmake --build build-shared --target install
DESTDIR="$pkgdir" cmake --build build-static --target install
+ DESTDIR="$pkgdir" cmake --build build-shared --target install
mkdir -p "$pkgdir"/usr/share/doc
mv "$pkgdir"/usr/share/SFML/doc "$pkgdir"/usr/share/doc/SFML