Skip to content

Commit 330cc79

Browse files
committed
libdvdread uses meson now
1 parent 75c98f5 commit 330cc79

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

scripts.d/50-dvd/40-libdvdread.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,30 @@ ffbuild_enabled() {
1414
}
1515

1616
ffbuild_dockerbuild() {
17-
autoreconf -i
17+
# stop the static library from exporting symbols when linked into a shared lib
18+
sed -i 's/-DDVDREAD_API_EXPORT//g' src/meson.build
19+
20+
mkdir build && cd build
1821

1922
local myconf=(
2023
--prefix="$FFBUILD_PREFIX"
21-
--disable-shared
22-
--enable-static
23-
--with-pic
24-
--disable-apidoc
25-
--with-libdvdcss
24+
-Ddefault_library=static
25+
-Denable_docs=false
26+
-Dlibdvdcss=enabled
2627
)
2728

2829
if [[ $TARGET == win* || $TARGET == linux* ]]; then
2930
myconf+=(
30-
--host="$FFBUILD_TOOLCHAIN"
31+
--cross-file=/cross.meson
3132
)
3233
else
3334
echo "Unknown target"
3435
return -1
3536
fi
3637

37-
./configure "${myconf[@]}"
38-
make -j$(nproc)
39-
make install DESTDIR="$FFBUILD_DESTDIR"
38+
meson setup "${myconf[@]}" ..
39+
ninja -j$(nproc)
40+
DESTDIR="$FFBUILD_DESTDIR" ninja install
4041
}
4142

4243
ffbuild_configure() {

0 commit comments

Comments
 (0)