aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2022-03-02 21:40:51 +0100
committerdispatch <dispatch@listserv.local>2022-03-02 20:49:50 +0000
commit3e15d49c2595193a0d8495fa978db7d416e51f59 (patch)
tree57be6f037ed5b8d7185ba58c17e7671c5363ca8d
parent3aa30cbd23d2eca39152e736c3c3db3ffcd2b275 (diff)
downloadaports-patches/3963.tar.gz
aports-patches/3963.tar.bz2
aports-patches/3963.tar.xz
community/sfml: build static librariespatches/3963
-rw-r--r--community/sfml/APKBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/community/sfml/APKBUILD b/community/sfml/APKBUILD
index 5ab219f88e..81f4c362a7 100644
--- a/community/sfml/APKBUILD
+++ b/community/sfml/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=sfml
pkgver=2.5.1
-pkgrel=2
+pkgrel=3
pkgdesc="Simple and Fast Multimedia Library"
url="https://www.sfml-dev.org/"
arch="all"
@@ -15,16 +15,25 @@ source="https://github.com/SFML/SFML/archive/$pkgver/sfml-$pkgver.tar.gz"
builddir="$srcdir/SFML-$pkgver"
build() {
- cmake -B build \
+ cmake -B build-shared \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSFML_BUILD_DOC=TRUE \
- -DSFML_INSTALL_PKGCONFIG_FILES=TRUE
- cmake --build build
+ -DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
+ -DBUILD_SHARED_LIBS=TRUE
+ cmake --build build-shared
+
+ cmake -B build-static \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSFML_BUILD_DOC=TRUE \
+ -DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
+ -DBUILD_SHARED_LIBS=FALSE
}
package() {
- DESTDIR="$pkgdir" cmake --build build --target install
+ DESTDIR="$pkgdir" cmake --build build-shared --target install
+ DESTDIR="$pkgdir" cmake --build build-static --target install
mkdir -p "$pkgdir"/usr/share/doc
mv "$pkgdir"/usr/share/SFML/doc "$pkgdir"/usr/share/doc/SFML