Magellan Linux

Annotation of /branches/magellan-next/core/dmidecode/dmidecode-2.10-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6193 - (hide annotations) (download)
Thu Aug 19 20:05:47 2010 UTC (13 years, 10 months ago) by niro
File size: 1055 byte(s)
-added patch to fix builts with make-3.82
1 niro 6183 # $Id: dmidecode-2.10-r2.smage2 3168 2009-10-13 22:55:21Z niro $
2    
3     PNAME="dmidecode"
4     PVER="2.10"
5     PBUILD="r3"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard."
11     HOMEPAGE="http://www.nongnu.org/dmidecode/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude mbuild
19    
20     SRC_URI=(
21     http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23 niro 6193 mirror://${PNAME}/${PNAME}-${PVER}-make382.patch
24 niro 6183 )
25    
26     UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}?C=M;O=A' | lasttarball bz2"
27    
28     src_prepare()
29     {
30     munpack ${SRCFILE}
31     cd ${SRCDIR}
32    
33 niro 6193 # fix built with make-3.82
34     mpatch ${PNAME}-${PVER}-make382.patch || die
35    
36 niro 6183 # fix some hardcoded pathes
37     sed -i "/^prefix/s:/usr/local:/usr:" Makefile || die
38     sed -i "/^docdir/s:dmidecode:${PNAME}-${PVER}:" Makefile || die
39     }
40    
41     src_compile()
42     {
43     cd ${SRCDIR}
44     mmake CFLAGS="${CFLAGS}" || die
45     }