source: trunk/dports/graphics/qwtplot3d/Portfile

Last change on this file was 140960, checked in by michaelld@…, 2 years ago

qt4 various: change qt_dir to ${prefix}/libexec/qt4 to allow for a parallel install with qt5; rev-bump dependencies that are known to work with this change. Addresses the primary issue of #44193. Will address secondary issues down the road.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 140960 2015-10-06 20:13:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                qwtplot3d
7version             0.2.7
8revision            5
9categories          graphics science
10# mostly zlib license, but gl2ps is LGPL
11license             LGPL
12platforms           darwin
13maintainers         michaelld openmaintainer
14
15description         Qt-based 3D-widgets
16long_description    Feature-rich Qt / OpenGL-based C++ programming library, \
17                    providing 3D-widgets for technical applications
18
19homepage            http://${name}.sourceforge.net
20master_sites        sourceforge:${name}
21worksrcdir          ${name}
22extract.suffix      .tgz
23
24checksums           md5    2f14660152e2e26bfeaaeec479ed9f2b \
25                    sha1   4463fafb8420a91825e165da7a296aaabd70abea \
26                    rmd160 0f28462cb95ef6091d73642c8b26ece60d50bfb8
27platforms           darwin
28
29patchfiles          patch-qwtplot3d.pro.diff \
30                    patch-include_qwt3d_openglhelper.h.diff
31
32variant qt3 conflicts qt4 description {Use qt3-mac} {}
33
34variant qt4 conflicts qt3 description {Use qt4-mac} {}
35
36# move setting of 'qt_qmake_cmd' outside variants, since 'if'
37# statements are processed in-order while variants are processed after
38# everything else.
39set qt_qmake_cmd ""
40if {[variant_isset qt3]} {
41
42    depends_lib-append  port:qt3-mac
43    set qt_qmake_cmd    ${prefix}/libexec/qt3-mac/bin/qmake
44
45} else {
46    # when variant 'qt3' is not set, use qt4 whether by default or via
47    # the user's variant choice
48    if {![variant_isset qt4]} {
49        default_variants    +qt4
50    }
51    PortGroup           qmake 1.0
52}
53
54post-patch {
55    # setup for debug, if selected
56    if {[variant_isset debug]} {
57        reinplace "/CONFIG/s@release@debug_and_release build_all@" \
58            ${worksrcpath}/qwtplot3d.pro
59    }
60
61    # set arch type(s)
62    reinplace "s/@ARCHES@/${qt_arch_types}/g" \
63        ${worksrcpath}/qwtplot3d.pro
64}
65
66configure.pre_args-append INSTALLBASE="${prefix}"
67
68# allow ccache, if specified by the user
69pre-build {
70    if {[tbool configure.ccache]} {
71        build.post_args "CCACHE=ccache"
72    }
73}
74
75variant debug description "Build release and debug versions" {}
Note: See TracBrowser for help on using the repository browser.