sfml: updated cmake syntax
This commit is contained in:
parent
a5dce4d6b6
commit
d8b585c792
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF30ROoPDwpku2M4Xa28wrHvzGaP7AW6O2SzAbyjN7BQlDrQduqRz/nbEWXyiCLYECCmYGvIxN/Y6TExOHpEmbFQs=
|
||||
SHA256 (Pkgfile) = fe0963cb64521f4d787cc34452ac03718a2a7cb083b2dcb7b733eee8786e43de
|
||||
RWSagIOpLGJF3/kjcmZU6Ta7J9urNw/yuA80qtMGu7JSxO8Pyq/DaX4JbrvUl6+KExBp+IQsETB5rXft50alWTNMczbw0uokKAc=
|
||||
SHA256 (Pkgfile) = e804f1ebedab3bbc296dbcbd0a7eab917c58a770e6ac56f70bc477271523cdad
|
||||
SHA256 (.footprint) = b120eedbfb83112e81f89ca90ce8b5daa2e8e8afcead6bf8934e55e235e0e236
|
||||
SHA256 (SFML-2.5.1-sources.zip) = bf1e0643acb92369b24572b703473af60bac82caf5af61e77c063b779471bb7f
|
||||
|
20
sfml/Pkgfile
20
sfml/Pkgfile
@ -9,16 +9,16 @@ release=1
|
||||
source=(https://www.sfml-dev.org/files/SFML-$version-sources.zip)
|
||||
|
||||
build() {
|
||||
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 \
|
||||
cmake -S SFML-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-D SFML_INSTALL_PKGCONFIG_FILES=1 \
|
||||
-D SFML_USE_SYSTEM_DEPS=ON \
|
||||
-D SFML_BUILD_EXAMPLES=0 \
|
||||
-D SFML_BUILD_DOC=0 \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
Loading…
x
Reference in New Issue
Block a user