Magellan Linux

Contents of /smage/trunk/core/hwinfo/hwinfo-21.23-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7988 - (show annotations) (download)
Thu Dec 10 12:57:21 2015 UTC (8 years, 4 months ago) by niro
File size: 3117 byte(s)
-added intel haswell ult x11 driver detection support
1 # $Id$
2
3 PNAME="hwinfo"
4 PVER="21.23"
5 PBUILD="r2"
6
7 PCAT="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 SDEPEND=">= sys-apps/dbus-dev-1.6
14 >= sys-libs/libx86emu-dev-1.1"
15
16 SRCFILE="${PNAME}-${PVER}.tar.xz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 ALX_PKG_KEEP="etc/conf.d/hwsetup
20 usr/sbin/hwinfo
21 usr/sbin/hwsetup
22 usr/sbin/ddcxinfo-knoppix
23 usr/$(mlibdir)/*.so
24 usr/$(mlibdir)/*.so.*
25 var/lib/hardware"
26 sminclude mtools alx-split
27
28 EMHW_SVN_REV="2677"
29 EDDCX_REV="1.3"
30
31 SRC_URI=(
32 http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
35 mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
36 mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch
37 mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch
38 mirror://${PNAME}/${PNAME}-18.5-no-xen.patch
39 mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch
40 mirror://${PNAME}/${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch
41 mirror://${PNAME}/emulate-hwsetup.sh-${EMHW_SVN_REV}
42 mirror://${PNAME}/emulate-ddcxinfo-knoppix.sh-${EDDCX_REV}
43 )
44
45 #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
46 # fake - taken newest from suse
47 UP2DATE="echo ${PVER}"
48
49 src_prepare()
50 {
51 munpack ${SRCFILE} || die
52 cd ${SRCDIR}
53
54 # disable xen checks which are broken atm
55 mpatch ${PNAME}-18.5-no-xen.patch || die
56
57 # TIOCGDEV isn't supported in the mainline kernel
58 mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die
59
60 # add intel pineview to known x11 drivers
61 mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
62
63 # use r128 module for all ati rage cards
64 mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
65
66 # use mach64 module for all ati mach64 cards
67 mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die
68
69 # add a bunch of via drivers to known x11 drivers using xf86-video-openchrome
70 mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die
71
72 # add intel haswell ult graphic support
73 mpatch -Np1 ${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch || die
74 }
75
76 src_compile()
77 {
78 cd ${SRCDIR}
79 mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
80 }
81
82 src_install()
83 {
84 cd ${SRCDIR}
85 mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die
86 mkeepdir /var/lib/hardware/udi || die
87
88 minstallman doc/hwinfo.8 || die
89 minstalldocs Changelog COPYING README VERSION || die
90
91 # broken Makefile, remove an empty dir
92 rmdir ${BINDIR}/sbin || die
93
94 # install hwsetup emulation script
95 minstalldir /usr/sbin || die
96 minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die
97
98 # install ddcxinfo emulation script
99 minstalldir /usr/sbin || die
100 minstallexec -s emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} /usr/sbin/ddcxinfo-knoppix || die
101 }