summaryrefslogtreecommitdiff
path: root/repo/openexr/openexr.xibuild
blob: 94647c1a252ed069100c91957abb0a383d3dc661 (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
#!/bin/sh

NAME="openexr"
DESC="A high dynamic-range image file format library"

MAKEDEPS="boost chrpath cmake ninja zlib"

PKG_VER=3.1.5
SOURCE="https://github.com/openexr/openexr/archive/v$PKG_VER.tar.gz"

ADDITIONAL="
fix-x86.patch
"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		$CMAKE_CROSSOPTS
	cmake --build build
}

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