41 lines
974 B
Python
41 lines
974 B
Python
from lib import arch, cpp
|
|
from lib.make import *
|
|
|
|
|
|
version("2.14.3")
|
|
description("a freely available software library to render fonts")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://download.savannah.gnu.org/releases/freetype/freetype-2.14.3.tar.xz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("pkgconf")
|
|
builddep(f"libz-ng-dev @{arch.get_target()}")
|
|
builddep(f"libbzip2-dev @{arch.get_target()}")
|
|
builddep(f"libpng-dev @{arch.get_target()}")
|
|
builddep(f"libbrotli-dev @{arch.get_target()}")
|
|
|
|
|
|
def build():
|
|
cpp.configure()
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("libfreetype")
|
|
dep("libz @same-arch")
|
|
dep("libpng @same-arch")
|
|
dep("libbzip2 @same-arch")
|
|
dep("libbrotli @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("libfreetype-dev")
|
|
dep("libfreetype (same)")
|
|
dep("libz-dev @same-arch")
|
|
dep("libpng-dev @same-arch")
|
|
dep("libbzip2-dev @same-arch")
|
|
dep("libbrotli-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|