1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name usbutils |
---|
7 | version 007 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | license GPL |
---|
11 | maintainers bwalle.de:bernhard |
---|
12 | description USB Device Utilities from Linux |
---|
13 | long_description Provides the famous 'lsusb' from Linux |
---|
14 | homepage http://linux-usb.sourceforge.net |
---|
15 | master_sites https://www.kernel.org/pub/linux/utils/usb/usbutils/ |
---|
16 | use_xz yes |
---|
17 | |
---|
18 | checksums rmd160 b3b509ec7f9153402da4519aaedc141ecf064adf \ |
---|
19 | sha256 7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4 |
---|
20 | |
---|
21 | depends_lib port:libusb \ |
---|
22 | port:zlib |
---|
23 | |
---|
24 | # Darwin linker has no "--as-needed" |
---|
25 | build.args AM_LDFLAGS="" |
---|
26 | |
---|
27 | # since many usbutils programs only work on Linux, install the one we need |
---|
28 | # ("lsusb" and the hardware database) manually |
---|
29 | destroot { |
---|
30 | xinstall -m 0755 ${worksrcpath}/lsusb ${destroot}${prefix}/bin/lsusb |
---|
31 | xinstall -m 0644 ${worksrcpath}/usb.ids.gz ${destroot}${prefix}/share |
---|
32 | xinstall -d ${destroot}${prefix}/share/man/man8 |
---|
33 | xinstall -m 0644 ${worksrcpath}/lsusb.8 ${destroot}${prefix}/share/man/man8 |
---|
34 | } |
---|