diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-05 20:23:50 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-05 20:23:50 +0900 |
| commit | f4403ba5cd51aba297f719b0c44e961dc7214170 (patch) | |
| tree | 7962a405993fd92bb9a85c11a2ba2cfd26d80c7b /internal | |
| parent | 5a26895a229fa85b66b62bf70fcaec06aab8ad6f (diff) | |
internal/rosa: libpng artifact
Required by mesa.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/rosa/all.go | 3 | ||||
| -rw-r--r-- | internal/rosa/libpng.go | 38 |
2 files changed, 40 insertions, 1 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 950cdf94..2fbedd82 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -90,8 +90,9 @@ const ( Libiconv Libmd Libmnl - Libpciaccess Libnftnl + Libpciaccess + Libpng Libpsl Libseccomp Libtasn1 diff --git a/internal/rosa/libpng.go b/internal/rosa/libpng.go new file mode 100644 index 00000000..359c3278 --- /dev/null +++ b/internal/rosa/libpng.go @@ -0,0 +1,38 @@ +package rosa + +import ( + "strings" + + "hakurei.app/internal/pkg" +) + +func (t Toolchain) newLibpng() (pkg.Artifact, string) { + const ( + version = "1.6.58" + checksum = "m_a5lROJH7vmF3cMjqwTUqURuQLhV1JQx2ySPzcN3VPdgDB9pG3UINsIx_mtkr-t" + ) + return t.NewPackage("libpng", version, newTar( + "https://downloads.sourceforge.net/project/libpng/libpng"+ + strings.Join(strings.SplitN(version, ".", 3)[:2], "")+ + "/"+version+"/libpng-"+version+".tar.gz", + checksum, + pkg.TarGzip, + ), nil, (*MakeHelper)(nil), + Zlib, + ), version +} +func init() { + artifactsM[Libpng] = Metadata{ + f: Toolchain.newLibpng, + + Name: "libpng", + Description: "the official PNG reference library", + Website: "https://www.libpng.org/pub/png/libpng.html", + + Dependencies: P{ + Zlib, + }, + + ID: 1705, + } +} |
