Skip to content

Commit cf31307

Browse files
committed
libdvdcss uses meson now
1 parent 5107772 commit cf31307

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

scripts.d/50-dvd/30-libdvdcss.sh

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ 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/SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT/SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT_DISABLED/g' meson.build
19+
sed -i 's/-DLIBDVDCSS_EXPORTS//g' src/meson.build
20+
21+
mkdir build && cd build
1822

1923
local myconf=(
2024
--prefix="$FFBUILD_PREFIX"
21-
--disable-shared
22-
--enable-static
23-
--with-pic
24-
--disable-doc
25+
-Ddefault_library=static
26+
-Denable_docs=false
27+
-Denable_examples=false
2528
)
2629

2730
if [[ $TARGET == win* || $TARGET == linux* ]]; then
2831
myconf+=(
29-
--host="$FFBUILD_TOOLCHAIN"
32+
--cross-file=/cross.meson
3033
)
3134
else
3235
echo "Unknown target"
@@ -35,7 +38,7 @@ ffbuild_dockerbuild() {
3538

3639
export CFLAGS="$CFLAGS -Dprint_error=dvdcss_print_error -Dprint_debug=dvdcss_print_debug"
3740

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

0 commit comments

Comments
 (0)