aboutsummaryrefslogtreecommitdiff
blob: 5b26193a450e858334bb872d510372f542c4716d (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.0.ebuild,v 1.8 2006/03/10 20:27:22 spyderous Exp $

# Must be before x-modular eclass is inherited
SNAPSHOT="yes"

inherit x-modular cvs

ECVS_SERVER="anoncvs.freedesktop.org:/cvs/dri"
ECVS_MODULE="drm"
S=${WORKDIR}/${ECVS_MODULE}

DESCRIPTION="X.Org libdrm library"
HOMEPAGE="http://dri.freedesktop.org/"
SRC_URI=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
RDEPEND=""
DEPEND="${RDEPEND}"

src_unpack() {
	cvs_src_unpack
	cd ${S}
	x-modular_patch_source
	x-modular_reconf_source

	# Joshua Baergen - October 23, 2005
	# Fix shared lib issues on MIPS, FBSD, etc etc
	elibtoolize
}

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} "${IMAGE}"/usr/$(get_libdir)/
	fi
}

pkg_postinst() {
	x-modular_pkg_postinst

	if [[ -e ${ROOT}/usr/$(get_libdir)/libdrm.so.1 ]] ; then
		ewarn "You must re-compile all packages that are linked against"
		ewarn "libdrm 1 by using revdep-rebuild from gentoolkit:"
		ewarn "# revdep-rebuild --library libdrm.so.1"
		ewarn "After this, you can delete /usr/$(get_libdir)/libdrm.so.1"
		ewarn "and /usr/$(get_libdir)/libdrm.so.1.0.0 ."
		epause
	fi
}