-
-
Save heinrich5991/957428ef68ced0fb8efbb57adb6f8630 to your computer and use it in GitHub Desktop.
Teeworlds 0.6.4 Freetype patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- freetype.lua 2016-11-04 18:43:31.000000000 +0100 | |
+++ freetype.lua2 2018-06-25 16:29:49.227921471 +0200 | |
@@ -8,7 +8,7 @@ | |
option.use_winlib = 0 | |
option.lib_path = nil | |
- if ExecuteSilent("freetype-config") > 0 and ExecuteSilent("freetype-config --cflags") == 0 then | |
+ if ExecuteSilent("pkg-config") > 0 and ExecuteSilent("pkg-config freetype2 --cflags") == 0 then | |
option.value = true | |
option.use_ftconfig = true | |
end | |
@@ -27,8 +27,8 @@ | |
settings.cc.includes:Add(FreeType.basepath .. "/include") | |
if option.use_ftconfig == true then | |
- settings.cc.flags:Add("`freetype-config --cflags`") | |
- settings.link.flags:Add("`freetype-config --libs`") | |
+ settings.cc.flags:Add("`pkg-config freetype2 --cflags`") | |
+ settings.link.flags:Add("`pkg-config freetype2 --libs`") | |
elseif option.use_winlib > 0 then | |
if option.use_winlib == 32 then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment