2021-12-08 23:48:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LIBXXF86VM_REPO="https://gitlab.freedesktop.org/xorg/lib/libxxf86vm.git"
|
|
|
|
LIBXXF86VM_COMMIT="7f43cd2a905e7b93b83c9ce81dabb768f6fa2bc7"
|
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $TARGET != linux* ]] && return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$LIBXXF86VM_REPO" "$LIBXXF86VM_COMMIT" libxxf86vm
|
|
|
|
cd libxxf86vm
|
|
|
|
|
|
|
|
autoreconf -i
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
2021-12-20 16:32:39 +00:00
|
|
|
--enable-shared
|
|
|
|
--disable-static
|
2021-12-08 23:48:19 +00:00
|
|
|
--with-pic
|
|
|
|
)
|
|
|
|
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
|
|
|
else
|
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
2021-12-20 16:32:39 +00:00
|
|
|
export CFLAGS="$RAW_CFLAGS"
|
|
|
|
export LDFLAFS="$RAW_LDFLAGS"
|
|
|
|
|
2021-12-08 23:48:19 +00:00
|
|
|
./configure "${myconf[@]}"
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2021-12-20 16:32:39 +00:00
|
|
|
|
|
|
|
gen-implib "$FFBUILD_PREFIX"/lib/{libXxf86vm.so.1,libXxf86vm.a}
|
2021-12-08 23:48:19 +00:00
|
|
|
}
|