Contents of /branches/magellan-next/core/hwinfo/hwinfo-18.5-r1.smage2
Parent Directory | Revision Log
Revision 8854 -
(show annotations)
(download)
Wed Aug 3 15:27:37 2011 UTC (13 years, 1 month ago) by niro
File size: 1801 byte(s)
Wed Aug 3 15:27:37 2011 UTC (13 years, 1 month ago) by niro
File size: 1801 byte(s)
auto added: ver bump to 18.5-r1
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="18.5" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." |
10 | HOMEPAGE="http://www.suse.com/" |
11 | |
12 | DEPEND=">= sys-libs/libx86emu-1.1 |
13 | >= sys-apps/dbus-1.4" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
24 | mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
25 | mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch |
26 | mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch |
27 | ) |
28 | |
29 | #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'" |
30 | # fake - taken newest from suse |
31 | UP2DATE="echo ${PVER}" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # add intel pineview to known x11 drivers |
39 | mpatch -Np1 ${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch |
40 | |
41 | # use r128 module for all ati rage cards |
42 | mpatch -Np1 ${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch |
43 | |
44 | # use mach64 module for all ati mach64 cards |
45 | mpatch -Np1 ${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
46 | |
47 | # add a bunch of via drivers to known x11 drivers |
48 | mpatch -Np1 ${PNAME}-${PVER}-add-openchrome-x11-drivers-i386.patch || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die |
61 | mkeepdir /var/lib/hardware/udi || die |
62 | |
63 | minstallman doc/hwinfo.8 || die |
64 | minstalldocs Changelog COPYING README VERSION || die |
65 | } |