Ticket #46689: Portfile

File Portfile, 1.5 KB (added by ranauei@…, 9 years ago)
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
5PortGroup           github 1.0
6
7github.setup        vdudouyt minipro 0.0.1
8categories          devel
9maintainers         openmaintainer gmail.com:ranauei
10platforms           darwin
11license             GPL-3
12description         Utility for the MiniPRO TL866CS and TL866A universal programmers
13long_description    Opensource tool that aims to create a complete cross-platform \
14                    replacement for the proprietary utility from autoelectric.cn. \
15                    Currently it supports more than 13000 of target devices including \
16                    AVRs, PICs as well as a huge number of other microcontrollers and \
17                    various BIOSes.
18
19checksums           rmd160  8cc7d90a90ea4a57e7f5562699049d6bfb9d9359 \
20                    sha256  6231364e7e278b2a75889b1b9764689e9361487c152621746061a6c8e5e8a658
21
22depends_build       port:pkgconfig
23
24depends_lib         port:libusb
25
26depends_run         port:srecord
27
28use_configure       no
29
30variant universal {}
31
32pre-build {
33    if {[variant_isset universal]} {
34        build.args-append CC="${configure.cc} ${configure.universal_cflags}"
35    } else {
36        build.args-append CC="${configure.cc}"
37    }
38}
39
40destroot {
41    xinstall -W ${worksrcpath} ${name} ${name}-query-db ${name}hex ${destroot}${prefix}/bin
42    xinstall -m 644 ${worksrcpath}/man/${name}.1 ${destroot}${prefix}/share/man/man1
43}