blob: 8b6057a5c4424869e568077080106bc780746133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Martin Schlemmer <azarah@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvdcss/libdvdcss-1.1.1-r2.ebuild,v 1.1 2002/05/23 21:35:34 azarah Exp $
S="${WORKDIR}/${P}"
DESCRIPTION="A portable abstraction library for DVD decryption"
SRC_URI="http://www.videolan.org/pub/videolan/libdvdcss/${PV}/${P}.tar.gz"
HOMEPAGE="http://www.videolan.org/libdvdcss/"
DEPEND="virtual/glibc"
src_compile() {
# Dont use custom optimiziations, as it gives problems
# on some archs
CFLAGS="" \
CXXFLAGS="" \
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info ||die
make || die
}
src_install() {
make prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die
dodoc AUTHORS COPYING ChangeLog INSTALL README TODO
##
## 0.0.3.* and 1.0.0 compat
##
# NOTE: this should be the last code in src_install() !!!
if [ -L ${D}/usr/lib/libdvdcss.so ]
then
# on some locales the name of the file a symlink points to, is in the
# tenth field, and not the eleventh (bug #2908)
LC_ALL='C'
local realname=$(ls -l ${D}/usr/lib/libdvdcss.so |gawk '{print $11}')
[ -z "${realname}" ] && \
realname=$(ls -l ${D}/usr/lib/libdvdcss.so |gawk '{print $10}')
[ -z "${realname}" ] && return 0
for x in libdvdcss.so.0 libdvdcss.so.1
do
dosym ${realname} /usr/lib/${x}
done
fi
}
pkg_preinst() {
# these could cause problems if they exist from
# earlier builds
for x in libdvdcss.so.0 libdvdcss.so.1
do
if [ -f /usr/lib/${x} ] || [ -L /usr/lib/${x} ]
then
rm -f /usr/lib/${x}
fi
done
}
|