Ticket #44462: Portfile

File Portfile, 1.3 KB (added by bwalle (Bernhard Walle), 10 years ago)

Portfile

Line 
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
4PortSystem          1.0
5
6name                usbutils
7version             007
8categories          net
9platforms           darwin
10license             GPL
11maintainers         bwalle.de:bernhard
12description         USB Device Utilities from Linux
13long_description    Provides the famous 'lsusb' from Linux
14homepage            http://linux-usb.sourceforge.net
15master_sites        https://www.kernel.org/pub/linux/utils/usb/usbutils/
16use_xz              yes
17
18checksums           rmd160  b3b509ec7f9153402da4519aaedc141ecf064adf \
19                    sha256  7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4
20
21depends_lib         port:libusb \
22                    port:zlib
23
24# Darwin linker has no "--as-needed"
25build.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
29destroot {
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}