Switch frei0r to "cmake"
This commit is contained in:
parent
3183ec99b3
commit
74a2af1977
1 changed files with 8 additions and 20 deletions
|
@ -13,29 +13,17 @@ ffbuild_dockerbuild() {
|
||||||
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" frei0r
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" frei0r
|
||||||
cd frei0r
|
cd frei0r
|
||||||
|
|
||||||
./autogen.sh
|
mkdir build && cd build
|
||||||
|
|
||||||
local myconf=(
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" ..
|
||||||
--prefix="$FFBUILD_PREFIX"
|
|
||||||
--disable-shared
|
|
||||||
--enable-static
|
|
||||||
--with-pic
|
|
||||||
--enable-cpuflags
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
mkdir -p "$FFBUILD_PREFIX"/lib/pkgconfig
|
||||||
myconf+=(
|
cp frei0r.pc "$FFBUILD_PREFIX"/lib/pkgconfig
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
|
||||||
)
|
|
||||||
else
|
|
||||||
echo "Unknown target"
|
|
||||||
return -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
mkdir -p "$FFBUILD_PREFIX"/include
|
||||||
make -C include -j$(nproc)
|
cp ../include/frei0r.h "$FFBUILD_PREFIX"/include
|
||||||
make -C include install
|
|
||||||
make install-pkgconfigDATA
|
cat frei0r.pc
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
|
Loading…
Reference in a new issue