# libjpeg-turbo - JPEG codec with SIMD
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=libjpeg-turbo
version=3.1.3
release=1
desc="JPEG codec with SIMD"
url="https://libjpeg-turbo.org/"
license="IJG BSD-3-Clause"
depend="glibc"
makedepend="cmake ninja nasm"
source="https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.3/libjpeg-turbo-3.1.3.tar.gz"
sha256="SKIP"

build() {
	cmake -S "libjpeg-turbo-3.1.3" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
