source: trunk/dports/devel/libusb-legacy/Portfile

Last change on this file was 113161, checked in by jeremyhu@…, 4 years ago

multiple: Restore --verbose to autoreconf.args since base moved it out of pre_args

  • 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 113161 2013-11-11 06:40:09Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libusb-legacy
7version             0.1.12
8revision            4
9categories          devel
10license             LGPL-2.1
11maintainers         snc michaelld openmaintainer
12description         Library providing access to USB devices
13long_description    A library originally developed under Linux to give \
14                    userland programs an API to access to USB hardware.
15homepage            http://libusb.org/
16
17platforms           darwin
18
19distname            libusb-${version}
20master_sites        sourceforge:libusb
21checksums           rmd160  63848df717e00fff67ab30ba86a85466370d4e8e \
22                    sha256  37f6f7d9de74196eb5fc0bbe0aea9b5c939de7f500acba3af6fd643f3b538b44
23
24patchfiles          patch-configure.in.diff patch-darwin.c.diff rename.patch
25
26post-patch {
27    reinplace "s|-Werror||" ${worksrcpath}/Makefile.am
28}
29
30use_autoreconf      yes
31autoreconf.args     -fvi
32
33configure.args      --disable-build-docs \
34                    --libdir=${prefix}/lib/libusb-legacy \
35                    --includedir=${prefix}/include/libusb-legacy
36
37destroot.args       pkgconfigdir=${prefix}/lib/pkgconfig
38
39post-destroot {
40    # Symbolic links for old ids dylib for compatibility with ports that might be expecting them
41    ln -s libusbpp-legacy-0.1.4.dylib ${destroot}${prefix}/lib/libusb-legacy/libusbpp-legacy-0.1.4.4.4.dylib
42    ln -s libusb-legacy-0.1.4.dylib ${destroot}${prefix}/lib/libusb-legacy/libusb-legacy-0.1.4.4.4.dylib
43}
44
45livecheck.type      regex
46livecheck.url       http://sourceforge.net/projects/libusb/files/libusb-0.1%20(LEGACY)/
47livecheck.regex     Click to enter (\\d+(\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.