summaryrefslogtreecommitdiff
path: root/repo/sfml/sfml.xibuild
blob: c0001dddf2bfa87e68774a189600c45fbbe2d4c2 (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="sfml"
DESC="Simple and Fast Multimedia Library"

MAKEDEPS="cmake "
DEPS="eudev freetype2 flac libogg libvorbis libx11 libxrandr mesa musl openal-soft "

PKG_VER=2.5.1
SOURCE="https://github.com/SFML/SFML/archive/$PKG_VER/sfml-$PKG_VER.tar.gz"
ADDITIONAL="musl-1.2.3.patch "

prepare () {
    apply_patches
}

build () {
    cmake -B build \
        -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DBUILD_SHARED_LIBS=True \
        -DBUILD_STATIC_LIBS=OFF
	cmake --build build
}

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