blob: f3b4f6c0ec5d0923dc417c445e7d66f213ecb87d (
plain)
1 # Description: A simple, fast, cross-platform, and object-oriented multimedia API.
2 # URL: https://www.sfml-dev.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: flac freetype libjpeg-turbo libvorbis mesa openal util-linux xorg-libsm xorg-xcb-util-image
5
6 name=sfml
7 version=2.5.1
8 release=1
9 source=(https://www.sfml-dev.org/files/SFML-$version-sources.zip)
10
11 build() {
12 cmake -S SFML-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_BUILD_TYPE=Release \
15 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
16 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
17 -D SFML_INSTALL_PKGCONFIG_FILES=1 \
18 -D SFML_USE_SYSTEM_DEPS=ON \
19 -D SFML_BUILD_EXAMPLES=0 \
20 -D SFML_BUILD_DOC=0 \
21 -Wno-dev
22
23 cmake --build build
24 DESTDIR=$PKG cmake --install build
25
26 rm -r $PKG/usr/share/SFML/{license,readme}.md
27 }
|