summaryrefslogtreecommitdiffstats
path: root/l
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2014-12-09 10:03:48 +0100
committerAdrien Nader <adrien@notk.org>2014-12-09 10:03:48 +0100
commit40c9bf5ce557dbf8d78811527c384623488bfa89 (patch)
treefd760d6e6e70bdd7aeb6536f2713a38c1534b8ba /l
parente754ef692e0bca4e201ec359f3d34fd0d79130c0 (diff)
libdvdread: move to 5.0.0 which is maintained by videolan.
Diffstat (limited to 'l')
-rwxr-xr-xl/libdvdread/libdvdread.SlackBuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/l/libdvdread/libdvdread.SlackBuild b/l/libdvdread/libdvdread.SlackBuild
index def2674..0b1ea9f 100755
--- a/l/libdvdread/libdvdread.SlackBuild
+++ b/l/libdvdread/libdvdread.SlackBuild
@@ -46,7 +46,20 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-[ ! -x configure ] && autoreconf -fiv
+#! PATCH
+# The 5.0.0 tarball is weird: it has an 'msvc' directory inside an otherwise
+# empty 'msvc' directory. This doesn't match the git repository and makes the
+# build fail.
+mv msvc/msvc msvc.new
+rm -r msvc
+mv msvc.new msvc
+
+#! PATCH
+# Add missing -no-undefined when making shared library.
+sed -i '/libdvdread_la_LDFLAGS = -version-info $(DVDREAD_LTVERSION) \\$/ a -no-undefined \\' Makefile.in
+
+# --enable-dlfcn is needed for configure to not discover anything that matches
+# -ldl on the system (i.e. evil or dlfcn-win32).
CFLAGS="-O2" \
CXXFLAGS="-O2" \
./configure \
@@ -55,6 +68,7 @@ CXXFLAGS="-O2" \
--sysconfdir=/${PREFIX}/etc \
--localstatedir=/${PREFIX}/var \
--disable-static \
+ --enable-dlfcn \
--build=${BUILD_TRIPLET} \
--host=${HOST_TRIPLET}