summaryrefslogtreecommitdiff
path: root/repo/system/glu/glu.xibuild
blob: edac51c78261e3c355ecc8957a0b068a8b519511 (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
#!/bin/sh

NAME="glu"
DESC="Mesa OpenGL Utility library"

MAKEDEPS="meson ninja "
DEPS="mesa"

PKG_VER=9.0.2
SOURCE="https://mesa.freedesktop.org/archive/glu/glu-$PKG_VER.tar.xz"

build () {
    mkdir build &&
    cd build    &&
    meson --prefix=/usr \
            -D default_library=shared \
            -D gl_provider=osmesa \
            .. &&
    ninja
}

package () {
    DESTDIR=$PKG_DEST ninja install
}