44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("3.3.3")
|
|
description("A simple library for font loading and glyph rasterization using FontConfig, FreeType and pixman.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_managed("gitea://codeberg.org/dnkl/fcft#3.3.3")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/meson")
|
|
builddep("libfontconfig-dev @target")
|
|
builddep("libfreetype-dev @target")
|
|
builddep("tllist-dev @target")
|
|
builddep("libpixman-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('libfcft')}/lib",
|
|
f"--includedir={get_prefix('libfcft-dev')}/include",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libfcft")
|
|
dep("semi-libc @same-arch")
|
|
dep("libfontconfig @same-arch")
|
|
dep("libfreetype @same-arch")
|
|
dep("libpixman @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libfcft-dev")
|
|
dep("libfcft (same)")
|
|
dep("libfontconfig-dev @same-arch")
|
|
dep("libfreetype-dev @same-arch")
|
|
dep("libpixman-dev @same-arch")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|