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
|
2020-07-26 21:36:07 +10:00
|
|
|
# Depends on: flac freetype libjpeg-turbo libvorbis mesa 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-08 12:43:02 +00:00
|
|
|
cmake -S SFML-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:04:27 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 12:43:02 +00:00
|
|
|
-D SFML_INSTALL_PKGCONFIG_FILES=1 \
|
|
|
|
-D SFML_USE_SYSTEM_DEPS=ON \
|
|
|
|
-D SFML_BUILD_EXAMPLES=0 \
|
|
|
|
-D SFML_BUILD_DOC=0 \
|
|
|
|
-Wno-dev
|
2016-08-25 21:00:34 +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
|
|
|
}
|