[MPlayer-users] Mplayer compilation errata
Nick Andrew
nick at nick-andrew.net
Sun Aug 28 02:08:04 CEST 2011
Following up my own post here,
On Sun, Aug 28, 2011 at 09:15:05AM +1000, Nick Andrew wrote:
> I guess the problem is that libdvdnav and libdvdread4 are also considered
> "internal" and so need to be checked out in subdirectories, but configure
> does not do this, unlike how it clones git ffmpeg.
I modified configure to do this. Actually it has to use svn to do the checkout,
because (a) there's no git repository of libdvdread4 / libdvdnav that I know
of, and (b) if I use git-svn to make a git one it also needs an Authors file,
which I don't have.
mplayer builds OK now after reconfiguring. Here's the patch to configure:
Nick.
commit d3fb2cb8f1fac4caf93ea3d6d057a8796ebd1178
Author: Nick Andrew <nick at nick-andrew.net>
Date: Sun Aug 28 09:53:03 2011 +1000
Add auto checkout of libdvdread4 and libdvdnav
The SVN repository automatically checks out two external repositories, but
git does not, so if the directories don't exist then use svn to checkout.
diff --git a/configure b/configure
index ac64334..717f2e1 100755
--- a/configure
+++ b/configure
@@ -58,6 +58,26 @@
touch ffmpeg/mp_auto_pull
fi
+ if ! test -d libdvdread4 ; then
+ echo "No libdvdread4 directory, press enter to download with svn or CTRL+C to abort"
+ read tmp
+ if ! svn checkout svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src libdvdread4 ; then
+ rm -rf libdvdread4
+ echo "Failed to svn checkout libdvdread4"
+ exit 1
+ fi
+ fi
+
+ if ! test -d libdvdnav ; then
+ echo "No libdvdnav directory, press enter to download with svn or CTRL+C to abort"
+ read tmp
+ if ! svn checkout svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src libdvdnav ; then
+ rm -rf libdvdnav
+ echo "Failed to svn checkout libdvdnav"
+ exit 1
+ fi
+ fi
+
# Prevent locale nonsense from breaking basic text processing utilities
export LC_ALL=C
More information about the MPlayer-users
mailing list