Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Mar 6, 2024
1 parent 36305d9 commit 3c3ecf7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recipes/freetype/meson/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,14 @@ def _make_freetype_config(self, version):
os.makedirs(os.path.join(self.package_folder, "bin"))
freetype_config = os.path.join(self.package_folder, "bin", "freetype-config")
rename(self, freetype_config_in, freetype_config)
libs = "-lfreetyped" if self.settings.build_type == "Debug" else "-lfreetype"
staticlibs = f"-lm {libs}" if self.settings.os == "Linux" else libs
staticlibs = "-lm -lfreetype" if self.settings.os == "Linux" else "-lfreetype"
replace_in_file(self, freetype_config, r"%PKG_CONFIG%", r"/bin/false") # never use pkg-config
replace_in_file(self, freetype_config, r"%prefix%", r"$conan_prefix")
replace_in_file(self, freetype_config, r"%exec_prefix%", r"$conan_exec_prefix")
replace_in_file(self, freetype_config, r"%includedir%", r"$conan_includedir")
replace_in_file(self, freetype_config, r"%libdir%", r"$conan_libdir")
replace_in_file(self, freetype_config, r"%ft_version%", r"$conan_ftversion")
replace_in_file(self, freetype_config, r"%LIBSSTATIC_CONFIG%", r"$conan_staticlibs")
replace_in_file(self, freetype_config, r"-lfreetype", libs)
replace_in_file(self, freetype_config, r"export LC_ALL", textwrap.dedent("""\
export LC_ALL
BINDIR=$(dirname $0)
Expand Down

0 comments on commit 3c3ecf7

Please sign in to comment.