Annotation of /trunk/core/wireless-tools/wireless-tools-30_pre9-r3.smage2
Parent Directory | Revision Log
Revision 20714 -
(hide annotations)
(download)
Tue Feb 4 09:15:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1079 byte(s)
Tue Feb 4 09:15:03 2014 UTC (10 years, 7 months ago) by niro
File size: 1079 byte(s)
-fixed dependencies sys-apps/sed -> virtual/sed
1 | niro | 20714 | # $Id$ |
2 | |||
3 | PNAME="wireless-tools" | ||
4 | PVER="30_pre9" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCAT="net-wlan" | ||
8 | |||
9 | DESCRIPTION="Utils to configure wireless-lan cards." | ||
10 | HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | SDEPEND=">= virtual/sed" | ||
14 | |||
15 | SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}" | ||
17 | |||
18 | SRC_URI=( | ||
19 | http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE} | ||
20 | mirror://${PNAME}/${SRCFILE} | ||
21 | ) | ||
22 | |||
23 | UP2DATE="updatecmd ${HOMEPAGE}/Tools.html | grep 'Wireless Tools.*beta' | sed 's/.*\[.*\].* \(.*\) .*/\1/;s/-/_/'" | ||
24 | |||
25 | src_prepare() | ||
26 | { | ||
27 | munpack ${SRCFILE} || die | ||
28 | cd ${SRCDIR} | ||
29 | |||
30 | # fore use of our CFLAGS | ||
31 | sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die | ||
32 | |||
33 | # fix man path | ||
34 | sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die | ||
35 | |||
36 | # honor mlibdir() | ||
37 | sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die | ||
38 | } | ||
39 | |||
40 | src_compile() | ||
41 | { | ||
42 | cd ${SRCDIR} | ||
43 | mmake CC=gcc || die | ||
44 | } | ||
45 | |||
46 | src_install() | ||
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | mmake PREFIX=${BINDIR}/usr install || die | ||
50 | minstalldocs CHANGELOG* COPYING *.txt README* || die | ||
51 | } |