mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Call pkg-config with libpng16 instead of libpng
Should fix compilation on linux systems that have libpng12 as their default libpng. libpng16 was released over five years ago! Sigh... Fixes #216
This commit is contained in:
2
setup.py
2
setup.py
@@ -208,7 +208,7 @@ def kitty_env():
|
|||||||
cflags.append('-DPRIMARY_VERSION={}'.format(version[0] + 4000))
|
cflags.append('-DPRIMARY_VERSION={}'.format(version[0] + 4000))
|
||||||
cflags.append('-DSECONDARY_VERSION={}'.format(version[1]))
|
cflags.append('-DSECONDARY_VERSION={}'.format(version[1]))
|
||||||
at_least_version('harfbuzz', 1, 5)
|
at_least_version('harfbuzz', 1, 5)
|
||||||
cflags.extend(pkg_config('libpng', '--cflags-only-I'))
|
cflags.extend(pkg_config('libpng16', '--cflags-only-I'))
|
||||||
if is_macos:
|
if is_macos:
|
||||||
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
|
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
|
||||||
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))
|
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))
|
||||||
|
|||||||
Reference in New Issue
Block a user