Revision: 69262 http://trac.macports.org/changeset/69262 Author: michaelld@macports.org Date: 2010-06-29 00:03:15 -0700 (Tue, 29 Jun 2010) Log Message: ----------- Added variants for qt4 and qt3, qwt and qwt52. Modified Paths: -------------- trunk/dports/graphics/qwtplot3d/Portfile Modified: trunk/dports/graphics/qwtplot3d/Portfile =================================================================== --- trunk/dports/graphics/qwtplot3d/Portfile 2010-06-29 07:01:54 UTC (rev 69261) +++ trunk/dports/graphics/qwtplot3d/Portfile 2010-06-29 07:03:15 UTC (rev 69262) @@ -5,10 +5,10 @@ name qwtplot3d version 0.2.7 -revision 0 +revision 1 categories graphics science platforms darwin -maintainers nomaintainer +maintainers michaelld description Qt-based 3D-widgets long_description Feature-rich Qt / OpenGL-based C++ programming library, \ @@ -23,13 +23,39 @@ sha1 4463fafb8420a91825e165da7a296aaabd70abea \ rmd160 0f28462cb95ef6091d73642c8b26ece60d50bfb8 -set qt_dir ${prefix}/libexec/qt4-mac +# set the qt_dir variable to nothing; makes 'port' happy +set qt_dir "" +variant qt3 conflicts qt4 description {Use qt3-mac} { + depends_lib-append port:qt3-mac + set qt_dir ${prefix}/libexec/qt3-mac +} + +variant qt4 conflicts qt3 description {Use qt4-mac} { + depends_lib-append port:qt4-mac + set qt_dir ${prefix}/libexec/qt4-mac +} + +if {![variant_isset qt3] && ![variant_isset qt4]} { + default_variants +qt4 + set qt_dir ${prefix}/libexec/qt4-mac +} + configure.cmd ${qt_dir}/bin/qmake configure.pre_args -depends_lib port:qwt +variant qwt conflicts qwt52 description {Use qwt} { + depends_lib-append port:qwt +} +variant qwt52 conflicts qwt description {Use qwt52} { + depends_lib-append port:qwt52 +} + +if {![variant_isset qwt] && ![variant_isset qwt52]} { + default_variants +qwt52 +} + patch { reinplace "s|0.2.6|0.2.7|g" ${worksrcpath}/qwtplot3d.pro }
participants (1)
-
michaelld@macports.org