source: trunk/dports/devel/libusb/Portfile

Last change on this file was 154287, checked in by michaelld@…, 13 months ago

libusb: update release to 1.0.21 and devel to 09e75e98 (20161025).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 154287 2016-10-26 16:13:59Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7name            libusb
8categories      devel
9
10description     library for USB device access
11long_description \
12    library for use by user level applications to \
13    access USB devices regardless of OS
14homepage        http://libusb.info/
15
16platforms       darwin
17license         LGPL-2.1+
18maintainers     michaelld toby
19
20use_parallel_build no
21
22subport libusb-devel {}
23
24if {${subport} eq ${name}} {
25
26    github.setup    libusb libusb 1.0.21 v
27    checksums       rmd160 1a2604859ef0997b1422ec5d412438bd4b5633af \
28                    sha256 acb5ca3379cecf7bf53901b8e98192723909f696af04bd63fca0cfafec5b057c
29
30    conflicts      libusb-devel
31
32    # overload the github livecheck regex to look for versions that
33    # are just numbers and '.', no letters (e.g., "1.0.19rc1").
34
35    livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix}
36
37} else {
38
39    long_description ${long_description} \
40        This port provides devel version of ${name}, updated weekly to monthly.
41
42    github.setup   libusb libusb 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
43    version        20161025
44    checksums      rmd160 1a2604859ef0997b1422ec5d412438bd4b5633af \
45                   sha256 acb5ca3379cecf7bf53901b8e98192723909f696af04bd63fca0cfafec5b057c
46
47    conflicts      libusb
48    patchfiles     patch-libusb_os_darwin_usb.h.devel.diff
49
50}
51
52homepage         http://libusb.info/
53
54depends_build    port:libtool \
55                 port:automake \
56                 port:autoconf
57
58configure.cmd    ./autogen.sh
59
60# build verbosely
61
62build.args-append AM_DEFAULT_VERBOSITY=1
Note: See TracBrowser for help on using the repository browser.