forked from semios/ports
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
from lib.make import *
|
|
from lib import cpp, arch
|
|
|
|
|
|
version("2.19.1")
|
|
description("A free, open source, CMM engine. It provides fast transforms between ICC profiles.")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://github.com/mm2/Little-CMS/releases/download/lcms2.19.1/lcms2-2.19.1.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("libjpeg-turbo-dev @target")
|
|
builddep("libtiff-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.configure([
|
|
"--prefix=/",
|
|
f"--libdir={get_prefix('liblcms')}/lib",
|
|
f"--bindir={get_prefix('liblcms-tools')}/bin",
|
|
f"--includedir={get_prefix('liblcms-dev')}/include",
|
|
])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
package("liblcms")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["lib"])
|
|
|
|
package("liblcms-tools")
|
|
dep("libjpeg-turbo @same-arch")
|
|
dep("libtiff @same-arch")
|
|
dep("liblcms (same)")
|
|
cpp.use_auto_pack(["bin"])
|
|
|
|
package("liblcms-dev")
|
|
dep("liblcms (same)")
|
|
dep("semi-libc-dev @same-arch")
|
|
cpp.use_auto_pack(["dev"])
|