1
0
forked from ports/contrib

sfml: updated cmake syntax

This commit is contained in:
Tim Biermann 2020-11-07 16:58:31 +00:00
parent 8290bf4767
commit f76f21a4a5
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 10 additions and 13 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3+WBlikIbzBQ47DCPGyqHC6hDIk89TeLch7RjILnvdXxgnQR65QoJRO+gOMBF1ezMyIgrkLUv2Okl/n/AQplLQc=
SHA256 (Pkgfile) = 56ff9ef2d6803f24654f6a8f97fa45f430f593c2624fb2cc5226c01c1e340dbb
RWSagIOpLGJF30ROoPDwpku2M4Xa28wrHvzGaP7AW6O2SzAbyjN7BQlDrQduqRz/nbEWXyiCLYECCmYGvIxN/Y6TExOHpEmbFQs=
SHA256 (Pkgfile) = fe0963cb64521f4d787cc34452ac03718a2a7cb083b2dcb7b733eee8786e43de
SHA256 (.footprint) = b120eedbfb83112e81f89ca90ce8b5daa2e8e8afcead6bf8934e55e235e0e236
SHA256 (SFML-2.5.1-sources.zip) = bf1e0643acb92369b24572b703473af60bac82caf5af61e77c063b779471bb7f

View File

@ -9,22 +9,19 @@ release=1
source=(https://www.sfml-dev.org/files/SFML-$version-sources.zip)
build() {
cd SFML-$version
install -d build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
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 \
-DSFML_INSTALL_PKGCONFIG_FILES=1 \
-DSFML_USE_SYSTEM_DEPS=ON \
-DSFML_BUILD_EXAMPLES=0 \
-DSFML_BUILD_DOC=0 \
make
make DESTDIR=$PKG install
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/SFML/{license,readme}.md
}