feat: add wayland related tools
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, packie
|
||||
|
||||
|
||||
version("2.1")
|
||||
description("a software implementation of the JBIG1 data compression standard")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-2.1.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make(["CC=cc"])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_bin(composer):
|
||||
composer.makedir("bin")
|
||||
for i in ["pbmtojbg", "jbgtopbm", "pbmtojbg85", "jbgtopbm85"]:
|
||||
composer.addfile(f"pbmtools/{i}", f"bin/{i}")
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.makedir("lib")
|
||||
composer.makedir("include")
|
||||
for i in ["jbig.h", "jbig85.h", "jbig_ar.h"]:
|
||||
composer.addfile(f"libjbig/{i}", f"include/{i}")
|
||||
for i in ["libjbig.a", "libjbig85.a"]:
|
||||
composer.addfile(f"libjbig/{i}", f"lib/{i}")
|
||||
|
||||
package("jbig-kit")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_bin)
|
||||
|
||||
package("libjbig-dev")
|
||||
on_pack(pack_dev)
|
||||
Reference in New Issue
Block a user