Magellan Linux

Annotation of /branches/R11-unstable/core/dmidecode/dmidecode-2.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24947 - (hide annotations) (download)
Tue Nov 25 02:41:45 2014 UTC (9 years, 5 months ago) by niro
File size: 867 byte(s)
-release branches/R11-unstable
1 niro 17108 # $Id$
2    
3     PNAME="dmidecode"
4     PVER="2.12"
5     PBUILD="r1"
6    
7     PCAT="sys-apps"
8    
9     DESCRIPTION="Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard."
10     HOMEPAGE="http://www.nongnu.org/dmidecode/"
11    
12     DEPEND=">= virtual/glibc"
13    
14     SRCFILE="${PNAME}-${PVER}.tar.bz2"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude mbuild
18     msetfeature "!check"
19    
20     SRC_URI=(
21     http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}/?C=M;O=A' | lasttarball"
26    
27     src_prepare()
28     {
29     munpack ${SRCFILE}
30     cd ${SRCDIR}
31    
32     # fix some hardcoded pathes
33     sed -i "/^prefix/s:/usr/local:/usr:" Makefile || die
34     sed -i "/^docdir/s:dmidecode:${PNAME}-${PVER}:" Makefile || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}
40     mmake CFLAGS="${CFLAGS}" || die
41     }