Annotation of /trunk/core/usbutils/usbutils-0.86-r2.smage2
Parent Directory | Revision Log
Revision 3123 -
(hide annotations)
(download)
Tue Oct 13 14:43:44 2009 UTC (14 years, 11 months ago) by niro
File size: 1365 byte(s)
Tue Oct 13 14:43:44 2009 UTC (14 years, 11 months ago) by niro
File size: 1365 byte(s)
-fixed pc file location
1 | niro | 3123 | # $Id$ |
2 | |||
3 | PNAME="usbutils" | ||
4 | PVER="0.86" | ||
5 | PBUILD="r2" | ||
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.12" | ||
15 | |||
16 | SDEPEND=">= net-misc/wget-1.12" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | sminclude gnuconfig | ||
22 | |||
23 | SRC_URI=( | ||
24 | sourceforge://linux-usb/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | ) | ||
27 | |||
28 | # projectname is linux-usb but packagename usbutils | ||
29 | UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}" | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # support more compiler targets | ||
37 | gnuconfig-update || die | ||
38 | |||
39 | # update usb.ids | ||
40 | install -d ${SRCDIR}/temp || die | ||
41 | wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die | ||
42 | mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die | ||
43 | |||
44 | # installs pc file into wrong location | ||
45 | sed -i '/^pkgconfigdir/s:datadir:datarootdir:' Makefile.in || die | ||
46 | } | ||
47 | |||
48 | src_compile() | ||
49 | { | ||
50 | cd ${SRCDIR} | ||
51 | |||
52 | # put usb.ids in same place as pci.ids (/usr/share/misc) | ||
53 | mconfigure --datadir=/usr/share/misc || die | ||
54 | mmake -j1 || die | ||
55 | } | ||
56 | |||
57 | src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | mmake DESTDIR=${BINDIR} install || die | ||
62 | |||
63 | # we use the libs from libusb-x.x.x-rx cause these are not compatible | ||
64 | rm -rf ${BINDIR}/usr/lib || die | ||
65 | rm -rf ${BINDIR}/usr/include || die | ||
66 | |||
67 | minstalldocs AUTHORS COPYING ChangeLog NEWS README || die | ||
68 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |