source: trunk/dports/net/usbutils/Portfile

Last change on this file was 122758, checked in by ryandesign@…, 3 years ago

usbutils: add pkgconfig dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
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: Portfile 122758 2014-07-29 00:09:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                usbutils
7version             007
8categories          net
9platforms           darwin
10maintainers         bwalle.de:bernhard
11license             GPL-2+
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_build       port:pkgconfig
22
23depends_lib         port:libusb \
24                    port:zlib
25
26# Darwin linker has no "--as-needed"
27build.args          AM_LDFLAGS=""
28
29# since many usbutils programs only work on Linux, install the one we need
30# ("lsusb" and the hardware database) manually
31destroot {
32    xinstall -m 0755 ${worksrcpath}/lsusb ${destroot}${prefix}/bin/lsusb
33    xinstall -m 0644 ${worksrcpath}/usb.ids.gz ${destroot}${prefix}/share
34    xinstall -d ${destroot}${prefix}/share/man/man8
35    xinstall -m 0644 ${worksrcpath}/lsusb.8 ${destroot}${prefix}/share/man/man8
36
37    set docdir ${prefix}/share/doc/${subport}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 644 -W ${worksrcpath} \
40        AUTHORS \
41        COPYING \
42        NEWS \
43        ${destroot}${docdir}
44}
45
46livecheck.type      regex
47livecheck.url       [lindex ${master_sites} 0]
48livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.