Ticket #42251: Portfile

File Portfile, 2.0 KB (added by librecad@…, 10 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: Portfile 116409 2014-01-23 23:48:30Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           qt4 1.0
7
8platform darwin {
9    if {${os.major} < 13} {
10                    github.setup        LibreCAD LibreCAD v1.0.4
11                    checksums           rmd160  c6931e97c41d06787eca60076a1c78571aa9b1fd \
12                                        sha256  d5303f083357e4667c3aea32bfd9cca6b21e4051cd1441e4fcc1dec3655cdf02
13    } else {
14                    github.setup        LibreCAD LibreCAD 2.0.2
15                    checksums           rmd160  30ae8dc909fbc34f9b1f0f448b499813ab573c40 \
16                                        sha256  75460c0d959245d4257734bdbcac69887d6ebc91312499ed228d1c4b60d0b928
17    }
18}
19
20categories          cad
21platforms           darwin
22maintainers         rvt.dds.nl:librecad \
23                    gmail.com:dongxuli2011
24
25license             GPL-2+
26
27description         LibreCAD is a free Open Source CAD application.
28
29long_description    LibreCAD is a free Open Source CAD application for \
30                    Windows, Apple and Linux. Support and documentation is \
31                    free from our large, dedicated community of users, \
32                    contributors and developers. You, too, can also get \
33                    involved!
34
35homepage            http://librecad.org/
36
37
38depends_lib-append  port:boost \
39                    port:muparser \
40                    port:freetype
41
42configure.cmd       ${prefix}/bin/qmake
43configure.pre_args
44configure.universal_args
45
46variant universal {}
47
48build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
49                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
50                    LINK="${configure.cxx} [get_canonical_archflags cxx]"
51
52destroot {
53    system -W ${worksrcpath} "macdeployqt LibreCAD.app"
54    copy ${worksrcpath}/LibreCAD.app ${destroot}${applications_dir}
55}