Contents of /smage/branches/alx-0_9_0/usbutils/usbutils-0.73-r1.smage2
Parent Directory
|
Revision Log
Revision 1271 -
(show annotations)
(download)
Tue Dec 29 12:48:37 2009 UTC (14 years, 5 months ago) by niro
File size: 1249 byte(s)
Tue Dec 29 12:48:37 2009 UTC (14 years, 5 months ago) by niro
File size: 1249 byte(s)
renamed branch_0.9.0 to alx-0_9_0
1 | # $Header: /alx-cvs/smage-eglibc/usbutils/usbutils-0.73-r1.smage2,v 1.1 2008/03/04 15:15:34 niro Exp $ |
2 | |
3 | PNAME="usbutils" |
4 | PVER="0.73" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Various utilities dealing with the USB bus." |
11 | HOMEPAGE="http://usb.cs.tum.edu/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= dev-libs/libusb-0.1" |
15 | |
16 | SDEPEND=">= net-misc/wget-1.9" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude gnuconfig alx |
22 | |
23 | SRC_URI=( |
24 | sourceforge://linux-usb/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # support more compiler targets |
34 | gnuconfig-update || die |
35 | |
36 | # update usb.ids |
37 | install -d ${SRCDIR}/temp || die |
38 | wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die |
39 | mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die |
40 | } |
41 | |
42 | src_compile() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | # put usb.ids in same place as pci.ids (/usr/share/misc) |
47 | mconfigure --datadir=/usr/share/misc || die |
48 | mmake -j1 || die |
49 | } |
50 | |
51 | src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | mmake DESTDIR=${BINDIR} install || die |
56 | |
57 | # we use the libs from libusb-x.x.x-rx cause these are not compatible |
58 | rm -rf ${BINDIR}/usr/lib || die |
59 | rm -rf ${BINDIR}/usr/include || die |
60 | |
61 | minstalldocs AUTHORS COPYING ChangeLog NEWS README || die |
62 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |