Magellan Linux

Contents of /trunk/extras/libdvdcss/libdvdcss-1.4.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28898 - (show annotations) (download)
Wed May 10 07:49:56 2017 UTC (6 years, 11 months ago) by niro
File size: 1140 byte(s)
auto added: ver bump to 1.4.0-r1
1 # $Id$
2
3 PNAME="libdvdcss"
4 PVER="1.4.0"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption."
10 HOMEPAGE="http://developers.videolan.org/libdvdcss/"
11
12 DEPEND=">= virtual/glibc"
13
14 SRCFILE="${PNAME}-${PVER}.tar.bz2"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mbuild mtools
18
19 SRC_URI=(
20 http://download.videolan.org/pub/${PNAME}/${PVER}/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd -listonly http://download.videolan.org/pub/${PNAME}/ | grep ${PNAME} | sed 's:.*${PNAME}/\(.*\)/:\1:' | upsort_pipe"
25
26 src_compile()
27 {
28 cd ${SRCDIR}
29
30 # does not like any optimations
31 unset CFLAGS
32 unset CXXFLAGS
33
34 mconfigure --disable-doc --disable-dependency-tracking || die
35 mmake || die
36 }
37
38 src_install()
39 {
40 cd ${SRCDIR}
41
42 mmake DESTDIR=${BINDIR} install || die
43
44 # compat symlinks for 0.0.3 versions
45 local x="$(readlink ${BINDIR}/usr/$(mlibdir)/libdvdcss.so)"
46 mlink ${x} /usr/$(mlibdir)/libdvdcss.so.0 || die
47 mlink ${x} /usr/$(mlibdir)/libdvdcss.so.1 || die
48
49 minstalldocs AUTHORS COPYING ChangeLog NEWS README || die
50 }