Ticket #56030: qca.diff

File qca.diff, 920 bytes (added by RJVB (René Bertin), 6 years ago)
  • devel/qca/Portfile

    diff --git a/devel/qca/Portfile b/devel/qca/Portfile
    index 3d85065fc69e11b4c4c9363b6b138805274735fd..d0fa73bbcaab950eb8e29c725be3a63db03ed4f9 100644
    a b post-destroot { 
    117117
    118118# It doesn't seem possible to do debug+release builds with the new cmake-based approach.
    119119# Override the debug variant and avoid the checks imposed by the Qt portgroups and
    120 # instruct the user to use a compiler option.
     120# ensure that debug information will be generated.
    121121variant debug description \
    122 {Build both release and debug library} {
    123     ui_msg "this variant is obsolete; use configure.optflags=\"-g\""
    124     PortGroup   obsolete 1.0
     122{Build with support for debugging} {}
     123if {[variant_isset debug]} {
     124    configure.optflags-append   -g
     125    configure.cflags-append     -g
     126    configure.cxxflags-append   -g
    125127}
    126128
    127129# avoid installing the examples into Qt's binary tree