summaryrefslogtreecommitdiff
path: root/exlibs
diff options
context:
space:
mode:
authorAvatar Daniel Mierswa <impulze@impulze.org> 2010-09-02 11:12:05 +0200
committerAvatar Anders Ossowicki <aowi@exherbo.org> 2010-09-10 14:32:42 +0200
commit45078d3ca7ceb1d368961f988cff8f2e5eb4fa8a (patch)
tree7c26eb335d620d7c46b385505cae03347efa573e /exlibs
parent799b6cc62f8ad4477b954ee5fcc5e80e708795ef (diff)
downloadmedia-45078d3ca7ceb1d368961f988cff8f2e5eb4fa8a.tar.gz
media-45078d3ca7ceb1d368961f988cff8f2e5eb4fa8a.tar.xz
create exlib for libdvd{nav,read} and use it
Diffstat (limited to 'exlibs')
-rw-r--r--exlibs/mplayer-dvdlibs.exlib35
1 files changed, 35 insertions, 0 deletions
diff --git a/exlibs/mplayer-dvdlibs.exlib b/exlibs/mplayer-dvdlibs.exlib
new file mode 100644
index 0000000..a5628e6
--- /dev/null
+++ b/exlibs/mplayer-dvdlibs.exlib
@@ -0,0 +1,35 @@
+# Copyright 2008, 2010 Daniel Mierswa <impulze@impulze.org>
+# Distributed under the terms of the GNU General Public License v2
+
+export_exlib_phases src_prepare
+
+SUMMARY="A library that allows easy use of sophisticated DVD navigation"
+HOMEPAGE="http://www.mplayerhq.hu/MPlayer/releases/dvdnav/"
+DOWNLOADS="mirror://mplayer/releases/dvdnav/${PNV}.tar.bz2"
+
+LICENCES="GPL-2"
+SLOT="0"
+MYOPTIONS="debug"
+
+DEFAULT_SRC_CONFIGURE_PARAMS+=(
+ --disable-strip
+ --disable-opts
+ "--extra-cflags=${CFLAGS}"
+ "--extra-ldflags=${LDFLAGS}"
+ "--cc=${CC}"
+ --enable-shared
+)
+
+DEFAULT_SRC_CONFIGURE_OPTION_ENABLES+=(
+ debug
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e 's#shlibdir=$PREFIX/lib#shlibdir=$libdir#' \
+ -i configure2 || die "sed configure2 failed"
+ ln -s configure{2,} || die "failed to symlink configure"
+}
+