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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | PortGroup qt4 1.0 |
---|
7 | |
---|
8 | platform 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 | |
---|
20 | categories cad |
---|
21 | platforms darwin |
---|
22 | maintainers rvt.dds.nl:librecad \ |
---|
23 | gmail.com:dongxuli2011 |
---|
24 | |
---|
25 | license GPL-2+ |
---|
26 | |
---|
27 | description LibreCAD is a free Open Source CAD application. |
---|
28 | |
---|
29 | long_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 | |
---|
35 | homepage http://librecad.org/ |
---|
36 | |
---|
37 | |
---|
38 | depends_lib-append port:boost \ |
---|
39 | port:muparser \ |
---|
40 | port:freetype |
---|
41 | |
---|
42 | configure.cmd ${prefix}/bin/qmake |
---|
43 | configure.pre_args |
---|
44 | configure.universal_args |
---|
45 | |
---|
46 | variant universal {} |
---|
47 | |
---|
48 | build.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 | |
---|
52 | destroot { |
---|
53 | system -W ${worksrcpath} "macdeployqt LibreCAD.app" |
---|
54 | copy ${worksrcpath}/LibreCAD.app ${destroot}${applications_dir} |
---|
55 | } |
---|