]> git.rm.cloudns.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Shared libraries (buildfiles)
authorz411 <electrik.persona@gmail.com>
Mon, 13 Dec 2021 18:00:20 +0000 (18:00 +0000)
committerz411 <electrik.persona@gmail.com>
Mon, 13 Dec 2021 18:00:20 +0000 (18:00 +0000)
Shared-libraries-(buildfiles).md

index 947c1cfbd7f4416d252321c348d3a6d5a2f83697..5d94e75a0295ffee1df7e30e94947a03c72c07e8 100644 (file)
@@ -86,17 +86,17 @@ Required for the Xolonium font
 Darkplaces loads: `libfreetype-6.dll` or `freetype6.dll`
 
 ```
-VER="2.11.1"
-curl -L -o freetype-$VER.tar.xz https://download.savannah.gnu.org/releases/freetype/freetype-$VER.tar.xz || true
-tar -xf freetype-$VER.tar.xz
-rm freetype-$VER.tar.xz
+FTVER="2.11.1"
+curl -L -o freetype-$FTVER.tar.xz https://download.savannah.gnu.org/releases/freetype/freetype-$FTVER.tar.xz || true
+tar -xf freetype-$FTVER.tar.xz
+rm freetype-$FTVER.tar.xz
 
 curl -o x86_64-w64-mingw32.cmake https://raw.githubusercontent.com/zyga/cmake-toolchains/master/Toolchain-Ubuntu-mingw64.cmake
 d0=$(pwd)
 rm -rf build
 mkdir build
 cd build
-cmake -DCMAKE_TOOLCHAIN_FILE="$d0/x86_64-w64-mingw32.cmake" -DBUILD_SHARED_LIBS=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_INSTALL_PREFIX="$d0/out" -G"Unix Makefiles" "$d0/freetype-$VER"
+cmake -DCMAKE_TOOLCHAIN_FILE="$d0/x86_64-w64-mingw32.cmake" -DBUILD_SHARED_LIBS=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_INSTALL_PREFIX="$d0/out" -G"Unix Makefiles" "$d0/freetype-$FTVER"
 make
 make install
 cd "$d0"