2016-08-25 21:00:34 +10:00
|
|
|
# Description: A simple, fast, cross-platform, and object-oriented multimedia API.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.sfml-dev.org/
|
2016-08-25 21:00:34 +10:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-05-04 15:37:18 +10:00
|
|
|
# Depends on: flac freetype libjpeg-turbo libvorbis mesa3d openal util-linux xorg-libsm xorg-xcb-util-image
|
2016-08-25 21:00:34 +10:00
|
|
|
|
|
|
|
name=sfml
|
2019-05-04 15:37:18 +10:00
|
|
|
version=2.5.1
|
|
|
|
release=1
|
2017-08-12 18:27:31 +10:00
|
|
|
source=(https://www.sfml-dev.org/files/SFML-$version-sources.zip)
|
2016-08-25 21:00:34 +10:00
|
|
|
|
|
|
|
build() {
|
2020-11-07 16:58:31 +00:00
|
|
|
cmake -SSFML-$version -Bbuild -GNinja \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev \
|
2017-08-12 18:27:31 +10:00
|
|
|
-DSFML_INSTALL_PKGCONFIG_FILES=1 \
|
2019-05-04 15:37:18 +10:00
|
|
|
-DSFML_USE_SYSTEM_DEPS=ON \
|
2017-08-12 18:27:31 +10:00
|
|
|
-DSFML_BUILD_EXAMPLES=0 \
|
2016-08-25 21:00:34 +10:00
|
|
|
-DSFML_BUILD_DOC=0 \
|
2017-08-12 18:27:31 +10:00
|
|
|
|
2020-11-07 16:58:31 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2017-08-12 18:27:31 +10:00
|
|
|
|
2019-05-04 15:37:18 +10:00
|
|
|
rm -r $PKG/usr/share/SFML/{license,readme}.md
|
2016-08-25 21:00:34 +10:00
|
|
|
}
|