2021-08-23 00:27:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://svn.code.sf.net/p/zapping/svn/trunk/vbi"
|
|
|
|
SCRIPT_REV="4270"
|
2021-08-23 00:27:46 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerstage() {
|
2023-06-20 22:38:32 +00:00
|
|
|
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=/,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/zvbi,dst=/patches run_stage /stage.sh"
|
2021-08-23 00:27:46 +00:00
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerdl() {
|
2023-06-18 19:25:50 +00:00
|
|
|
to_df "RUN retry-tool sh -c \"rm -rf $SELF && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' $SELF\""
|
2023-06-18 14:44:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2021-08-23 00:27:46 +00:00
|
|
|
|
|
|
|
for patch in /patches/*.patch; do
|
|
|
|
echo "Applying $patch"
|
|
|
|
patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
|
|
|
|
autoreconf -i
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
|
|
|
--disable-shared
|
|
|
|
--enable-static
|
|
|
|
--with-pic
|
|
|
|
--without-doxygen
|
|
|
|
--without-x
|
|
|
|
--disable-dvb
|
|
|
|
--disable-bktr
|
|
|
|
--disable-nls
|
|
|
|
--disable-proxy
|
|
|
|
)
|
|
|
|
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
|
|
|
else
|
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure "${myconf[@]}"
|
|
|
|
make -C src -j$(nproc)
|
|
|
|
make -C src install
|
|
|
|
make SUBDIRS=. install
|
|
|
|
|
|
|
|
sed -i "s/\/[^ ]*libiconv.a/-liconv/" "$FFBUILD_PREFIX"/lib/pkgconfig/zvbi-0.2.pc
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libzvbi
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libzvbi
|
|
|
|
}
|