2017-08-12 19:30:12 +10:00
|
|
|
# Description: C bindings for sfml.
|
|
|
|
# URL: https://www.sfml-dev.org/download/csfml/
|
2023-07-07 21:24:45 +02:00
|
|
|
# Maintainer: unmaintained
|
2017-08-12 19:30:12 +10:00
|
|
|
# Depends on: sfml
|
|
|
|
|
|
|
|
name=csfml
|
2023-07-07 21:24:45 +02:00
|
|
|
version=2.5.2
|
2017-08-12 19:30:12 +10:00
|
|
|
release=1
|
2023-07-07 21:24:45 +02:00
|
|
|
source=(https://github.com/SFML/CSFML/archive/$version/$name-$version.tar.gz)
|
2017-08-12 19:30:12 +10:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 10:19:15 +00:00
|
|
|
cmake -S CSFML-$version -B build -G Ninja \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:50:04 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 10:19:15 +00:00
|
|
|
-D SFML_BUILD_DOC=false \
|
|
|
|
-Wno-dev
|
2017-08-12 19:30:12 +10:00
|
|
|
|
2020-11-07 16:10:12 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2017-08-12 19:30:12 +10:00
|
|
|
|
2023-07-07 21:24:45 +02:00
|
|
|
rm -fr $PKG/usr/share/CSFML
|
|
|
|
rm -fr $PKG/usr/share/doc
|
2017-08-12 19:30:12 +10:00
|
|
|
}
|