mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
games/mars: Fixed build with fribidi-0.19.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
a17aec6a68
commit
eccef44bb7
1 changed files with 8 additions and 2 deletions
|
@ -78,11 +78,17 @@ patch -p1 < $CWD/pull2.patch
|
|||
# https://github.com/thelaui/M.A.R.S./pull/17
|
||||
patch -p1 < $CWD/pull17.patch
|
||||
|
||||
# Fix build with fribidi-0.19.7 ...
|
||||
FRIBIDIFLAGS=$(pkg-config --cflags fribidi)
|
||||
# ... and use our bloody cxxflags, thanks all the same
|
||||
sed -i \
|
||||
-e 's/set(CMAKE_CXX_FLAGS "-s -O2")/set(CMAKE_CXX_FLAGS "-s ${CMAKE_CXX_FLAGS}")/' \
|
||||
CMakeLists.txt
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS $FRIBIDIFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
|
|
Loading…
Reference in a new issue