source: trunk/dports/science/qucs/Portfile

Last change on this file was 126096, checked in by rowue@…, 2 years ago

qucs: added freehdl variant

since freehdl does not build on 10.9 (#43622) we add
a variant feehdl which is included by default.

The use of freehdl can be disable by --freehdl

See #45225

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 126096 2014-10-03 18:45:17Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name                qucs
7version             0.0.18
8categories          science electronics
9license             GPL-2+
10maintainers         rowue openmaintainer
11platforms           darwin
12
13description         an integrated circuit simulator
14long_description    Qucs is an integrated circuit simulator. \
15                    You can set up a circuit with a graphical user interface.
16
17homepage            http://qucs.sourceforge.net/
18master_sites        sourceforge:project/qucs/qucs/${version}
19
20checksums           rmd160  c0d31bede22f0670ec707eaf41286107af2ced89 \
21                    sha256  3609a18b57485dc9f19886ac6694667f3251702175bd1cbbbea37981b2c482a7
22
23depends_build       port:pkgconfig \
24                    port:bison
25
26depends_lib         port:qt4-mac \
27                    port:libtool \
28                    port:iverilog \
29                    port:asco
30
31configure.args      --disable-sdk --disable-asco
32                   
33# iverilog is not universal
34universal_variant   no
35default_variants +freehdl
36
37use_parallel_build  yes
38
39patchfiles          patch-configure.diff \
40                    patch-qucs_qucsdigi.diff \
41                    patch-qucs_qucsveri.diff
42
43variant shipped_asco description { Use shipped asco } {
44        configure.args-delete    --disable-asco
45        depends_lib-delete       port:asco
46}
47       
48variant freehdl description { Use freehdl } {
49        depends_lib-append       port:freehdl
50}
51
52post-patch {
53    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/qucs/qucsdigi ${worksrcpath}/qucs/qucsveri
54}
55
56post-destroot {
57    foreach Program {qucs qucsedit qucsfilter qucshelp qucslib qucsrescodes qucstrans qucsattenuator} {
58        ln -s ${prefix}/bin/${Program}.app ${destroot}${applications_dir}/${Program}.app
59    }
60}
Note: See TracBrowser for help on using the repository browser.