summaryrefslogtreecommitdiff
path: root/repo/libjxl/libjxl.xibuild
blob: 0ae32b463eafb10870c32a40aef416ef7bd78b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

NAME="libjxl"
DESC="JPEG XL image format reference implementation"

MAKEDEPS="asciidoc brotli cmake gdk-pixbuf giflib lcms2 libjpeg-turbo libpng openexr zlib gimp highway gflags"

SOURCE="http://github.com/libjxl/libjxl.git"

prepare () {
    ./deps.sh
}

build() {
	cmake -B build \
        -DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_TESTING=OFF \
		-DJPEGXL_ENABLE_BENCHMARK=OFF \
		-DJPEGXL_ENABLE_COVERAGE=OFF \
		-DJPEGXL_ENABLE_EXAMPLES=OFF \
		-DJPEGXL_ENABLE_FUZZERS=OFF \
		-DJPEGXL_ENABLE_SJPEG=OFF \
		-DJPEGXL_ENABLE_SKCMS=OFF \
		-DJPEGXL_ENABLE_VIEWERS=OFF \
		-DJPEGXL_FORCE_SYSTEM_BROTLI=ON 
	cmake --build build
}

package() {
	DESTDIR="$PKG_DEST" cmake --install build
}