2021-07-13 22:24:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-01-03 22:27:46 +00:00
|
|
|
XORGMACROS_REPO="https://gitlab.freedesktop.org/xorg/util/macros.git"
|
2022-02-26 23:37:15 +00:00
|
|
|
XORGMACROS_COMMIT="0326ba3c4caa34116c0e7e4af98661858cf25d1c"
|
2021-07-13 22:24:28 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $TARGET != linux* ]] && return -1
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-07-14 21:44:25 +00:00
|
|
|
ffbuild_dockerlayer() {
|
|
|
|
to_df "COPY --from=${SELFLAYER} \$FFBUILD_PREFIX/. \$FFBUILD_PREFIX"
|
|
|
|
to_df "COPY --from=${SELFLAYER} \$FFBUILD_PREFIX/share/aclocal/. /usr/share/aclocal"
|
|
|
|
}
|
|
|
|
|
2021-07-13 22:24:28 +00:00
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$XORGMACROS_REPO" "$XORGMACROS_COMMIT" xorg-macros
|
|
|
|
cd xorg-macros
|
|
|
|
|
|
|
|
autoreconf -i
|
2021-07-14 21:44:25 +00:00
|
|
|
./configure --prefix="$FFBUILD_PREFIX"
|
2021-07-13 22:24:28 +00:00
|
|
|
make -j"$(nproc)"
|
|
|
|
make install
|
|
|
|
}
|