Compare commits
1
Commits
9c8e57004d
...
ecc0f56143
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ecc0f56143 |
@@ -0,0 +1,43 @@
|
|||||||
|
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([
|
||||||
|
f"--libdir={get_prefix('libfreetype')}/lib",
|
||||||
|
f"--includedir={get_prefix('libfreetype-dev')}/include"
|
||||||
|
])
|
||||||
|
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"])
|
||||||
Reference in New Issue
Block a user