# -*- 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 # $Id: Portfile 154287 2016-10-26 16:13:59Z michaelld@macports.org $ PortSystem 1.0 PortGroup github 1.0 name libusb categories devel description library for USB device access long_description \ library for use by user level applications to \ access USB devices regardless of OS homepage http://libusb.info/ platforms darwin license LGPL-2.1+ maintainers michaelld toby use_parallel_build no subport libusb-devel {} if {${subport} eq ${name}} { github.setup libusb libusb 1.0.21 v checksums rmd160 1a2604859ef0997b1422ec5d412438bd4b5633af \ sha256 acb5ca3379cecf7bf53901b8e98192723909f696af04bd63fca0cfafec5b057c conflicts libusb-devel # overload the github livecheck regex to look for versions that # are just numbers and '.', no letters (e.g., "1.0.19rc1"). livecheck.regex archive/[join ${github.tag_prefix} ""](\[0-9\.\]+)${extract.suffix} } else { long_description ${long_description} \ This port provides devel version of ${name}, updated weekly to monthly. github.setup libusb libusb 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3 version 20161025 checksums rmd160 1a2604859ef0997b1422ec5d412438bd4b5633af \ sha256 acb5ca3379cecf7bf53901b8e98192723909f696af04bd63fca0cfafec5b057c conflicts libusb patchfiles patch-libusb_os_darwin_usb.h.devel.diff } homepage http://libusb.info/ depends_build port:libtool \ port:automake \ port:autoconf configure.cmd ./autogen.sh # build verbosely build.args-append AM_DEFAULT_VERBOSITY=1