diff options
author | davidovski <david@davidovski.xyz> | 2022-05-17 19:11:18 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-17 19:11:18 +0100 |
commit | dccab9b94dcfc5e040647210ba22b9cc4bddc742 (patch) | |
tree | a43da72790761ec861b42855ce4828d5b24ea304 /repo/media/sfml/sfml.xibuild | |
parent | 50fb6c032e72a26b3fd881a18e1d1f535c95e0fc (diff) | |
parent | e3327c3fee233a042db91270c18ef1d7f217dc89 (diff) |
Merge branch 'master' of git.cheetah.remote:xilinux/buildfiles
Diffstat (limited to 'repo/media/sfml/sfml.xibuild')
-rw-r--r-- | repo/media/sfml/sfml.xibuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/media/sfml/sfml.xibuild b/repo/media/sfml/sfml.xibuild new file mode 100644 index 0000000..c0001dd --- /dev/null +++ b/repo/media/sfml/sfml.xibuild @@ -0,0 +1,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 +} |