blob: aa72fd084c3f96f0cb7ad8cca54ca910cd620c71 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.4.3.ebuild,v 1.1 2009/01/06 07:54:05 remi Exp $
# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"
inherit x-modular
DESCRIPTION="X.Org libdrm library"
HOMEPAGE="http://dri.freedesktop.org/"
SRC_URI="http://dri.freedesktop.org/libdrm/${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""
RDEPEND="
dev-libs/libpthread-stubs"
DEPEND="${RDEPEND}"
# FIXME, we should try to see how we can fit the --enable-udev configure flag
PATCHES=(
)
pkg_preinst() {
x-modular_pkg_preinst
if [[ -e ${ROOT}/usr/$(get_libdir)/libdrm.so.1 ]] ; then
cp -pPR "${ROOT}"/usr/$(get_libdir)/libdrm.so.{1,1.0.0} "${D}"/usr/$(get_libdir)/
fi
}
pkg_postinst() {
x-modular_pkg_postinst
if [[ -e ${ROOT}/usr/$(get_libdir)/libdrm.so.1 ]] ; then
elog "You must re-compile all packages that are linked against"
elog "libdrm 1 by using revdep-rebuild from gentoolkit:"
elog "# revdep-rebuild --library libdrm.so.1"
elog "After this, you can delete /usr/$(get_libdir)/libdrm.so.1"
elog "and /usr/$(get_libdir)/libdrm.so.1.0.0 ."
epause
fi
elog "Please rebuild media-libs/mesa, x11-base/xorg-server and"
elog "your video drivers in x11-drivers/*."
}
|