summaryrefslogtreecommitdiff
path: root/repo/system/glu/glu.xibuild
blob: 54249a7750d9515957e89807399a5a96f0b2ed0f (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 opengl"

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
}