-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy path50-xevd.sh
More file actions
44 lines (34 loc) · 1.09 KB
/
Copy path50-xevd.sh
File metadata and controls
44 lines (34 loc) · 1.09 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
SCRIPT_REPO="https://github.com/mpeg5/xevd.git"
SCRIPT_COMMIT="4087f635624cf4ee6ebe3f9ea165ff939b32117f"
ffbuild_enabled() {
(( $(ffbuild_ffver) >= 700 )) || return -1
[[ $TARGET == *32 ]] && return -1
[[ $TARGET == *arm* ]] && return -1
return 0
}
ffbuild_dockerdl() {
default_dl .
echo "git fetch --unshallow"
}
ffbuild_dockerbuild() {
sed -i '/add_subdirectory(app)/d' CMakeLists.txt
mkdir ffbuild && cd ffbuild
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
..
make -j$(nproc)
make install DESTDIR="$FFBUILD_DESTDIR"
mv "$FFBUILD_DESTPREFIX"/lib/{xevd/libxevd.a,}
rm -rf "$FFBUILD_DESTPREFIX"/lib/{libxevd.dll*,libxevd.so*,xevd,xevd_base}
echo "Cflags.private: -DXEVD_STATIC_DEFINE" >> "$FFBUILD_DESTPREFIX"/lib/pkgconfig/xevd.pc
}
ffbuild_configure() {
(( $(ffbuild_ffver) >= 700 )) || return 0
echo --enable-libxevd
}
ffbuild_unconfigure() {
(( $(ffbuild_ffver) >= 700 )) || return 0
echo --disable-libxevd
}