Magellan Linux

Contents of /smage/branches/alx-0_9_0/wireless-tools/wireless-tools-30_pre6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1271 - (show annotations) (download)
Tue Dec 29 12:48:37 2009 UTC (14 years, 4 months ago) by niro
File size: 1115 byte(s)
renamed branch_0.9.0 to alx-0_9_0
1 # $Header: /alx-cvs/smage-eglibc/wireless-tools/wireless-tools-30_pre6-r1.smage2,v 1.2 2008/09/17 10:41:22 niro Exp $
2
3 PNAME="wireless-tools"
4 PVER="30_pre6"
5 PBUILD="r1"
6
7 PCATEGORIE="net-wlan"
8 STATE="unstable"
9
10 DESCRIPTION="Utils to configure wireless-lan cards."
11 HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= sys-apps/sed-4"
15
16 SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}"
18
19 sminclude alx
20
21 SRC_URI=(
22 http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fore use of our CFLAGS
32 sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die
33
34 # fix man path
35 sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die
36
37 # honor mlibdir()
38 sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44 mmake CC=gcc || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50 mmake PREFIX=${BINDIR}/usr install || die
51 minstalldocs CHANGELOG* COPYING *.txt README* || die
52 }

Properties

Name Value
svn:keywords Id