Skip to content

Commit 75c98f5

Browse files
committed
libdvdnav uses meson now
1 parent cf31307 commit 75c98f5

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

scripts.d/50-dvd/50-libdvdnav.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,31 @@ 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
25+
-Ddefault_library=static
26+
-Denable_docs=false
27+
-Denable_examples=false
2428
)
2529

2630
if [[ $TARGET == win* || $TARGET == linux* ]]; then
2731
myconf+=(
28-
--host="$FFBUILD_TOOLCHAIN"
32+
--cross-file=/cross.meson
2933
)
3034
else
3135
echo "Unknown target"
3236
return -1
3337
fi
3438

35-
./configure "${myconf[@]}"
36-
make -j$(nproc)
37-
make install DESTDIR="$FFBUILD_DESTDIR"
39+
meson setup "${myconf[@]}" ..
40+
ninja -j$(nproc)
41+
DESTDIR="$FFBUILD_DESTDIR" ninja install
3842
}
3943

4044
ffbuild_configure() {

0 commit comments

Comments
 (0)