Contents of /smage/branches/alx-0_6_0/core/hwinfo/hwinfo-21.12-r2.smage2
Parent Directory | Revision Log
Revision 6886 -
(show annotations)
(download)
Fri Jul 24 11:28:42 2015 UTC (9 years, 2 months ago) by niro
File size: 2632 byte(s)
Fri Jul 24 11:28:42 2015 UTC (9 years, 2 months ago) by niro
File size: 2632 byte(s)
-rebuild using the right target arch
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="21.12" |
5 | PBUILD="r2" |
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 | SDEPEND=">= sys-apps/dbus-1.4" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | ALX_ONLY_KEEP="etc/conf.d/hwsetup |
20 | usr/sbin/hwinfo |
21 | usr/sbin/hwsetup |
22 | 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-unichrome-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}/emulate-hwsetup.sh-${EMHW_SVN_REV} |
41 | mirror://${PNAME}/emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} |
42 | ) |
43 | |
44 | src_prepare() |
45 | { |
46 | munpack ${SRCFILE} || die |
47 | cd ${SRCDIR} |
48 | |
49 | # disable xen checks which are broken atm |
50 | mpatch ${PNAME}-18.5-no-xen.patch || die |
51 | |
52 | # TIOCGDEV isn't supported in the mainline kernel |
53 | mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die |
54 | |
55 | # add intel pineview to known x11 drivers |
56 | mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
57 | |
58 | # use r128 module for all ati rage cards |
59 | mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
60 | |
61 | # use mach64 module for all ati mach64 cards |
62 | mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
63 | |
64 | # add a bunch of via drivers to known x11 drivers using xf86-video-unichrome |
65 | mpatch -Np1 ${PNAME}-18.1-add-unichrome-x11-drivers-i386.patch || die |
66 | } |
67 | |
68 | src_compile() |
69 | { |
70 | cd ${SRCDIR} |
71 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die |
72 | } |
73 | |
74 | alx_generic_src_install() |
75 | { |
76 | cd ${SRCDIR} |
77 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die |
78 | |
79 | mkeepdir /var/lib/hardware/udi || die |
80 | mkeepdir /etc/conf.d/hwsetup || die |
81 | |
82 | # install hwsetup emulation script |
83 | minstalldir /usr/sbin || die |
84 | minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die |
85 | |
86 | # install ddcxinfo emulation script |
87 | minstalldir /sbin || die |
88 | minstallexec -s emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} /sbin/ddcxinfo-knoppix || die |
89 | |
90 | minstallman doc/hwinfo.8 || die |
91 | minstalldocs Changelog COPYING README VERSION || die |
92 | } |