Magellan Linux

Annotation of /branches/magellan-next/core/hwinfo/hwinfo-18.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8857 - (hide annotations) (download)
Wed Aug 3 16:32:46 2011 UTC (12 years, 10 months ago) by niro
File size: 2092 byte(s)
-re-added debians tiogcdev patch
1 niro 8854 # $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 niro 8856 mirror://${PNAME}/${PNAME}-18.5-no-xen.patch
28 niro 8857 mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch || die
29 niro 8854 )
30    
31     #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
32     # fake - taken newest from suse
33     UP2DATE="echo ${PVER}"
34    
35     src_prepare()
36     {
37     munpack ${SRCFILE} || die
38     cd ${SRCDIR}
39    
40 niro 8856 # disable xen checks which are broken atm
41     mpatch ${PNAME}-18.5-no-xen.patch || die
42    
43 niro 8857 # TIOCGDEV isn't supported in the mainline kernel
44     mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die
45    
46 niro 8854 # add intel pineview to known x11 drivers
47 niro 8855 mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
48 niro 8854
49     # use r128 module for all ati rage cards
50 niro 8855 mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
51 niro 8854
52     # use mach64 module for all ati mach64 cards
53 niro 8855 mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die
54 niro 8854
55     # add a bunch of via drivers to known x11 drivers
56 niro 8855 mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die
57 niro 8854 }
58    
59     src_compile()
60     {
61     cd ${SRCDIR}
62     mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
63     }
64    
65     src_install()
66     {
67     cd ${SRCDIR}
68     mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die
69     mkeepdir /var/lib/hardware/udi || die
70    
71     minstallman doc/hwinfo.8 || die
72     minstalldocs Changelog COPYING README VERSION || die
73     }