Changeset 97879


Ignore:
Timestamp:
Sep 18, 2012, 5:29:37 PM (12 years ago)
Author:
michaelld@…
Message:

qwt-devel : bump to 6.0.1; remove support for qt3 since 6.0+ require Qt 4.4+; create library version if framework is built.

Location:
trunk/dports/graphics/qwt-devel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/qwt-devel/Portfile

    r74451 r97879  
    33
    44PortSystem          1.0
     5PortGroup           qt4 1.0
    56
    67name                qwt-devel
    7 version             6.0.0-rc3
     8version             6.0.1
    89conflicts           qwt qwt52
    910categories          graphics science
     
    2324use_bzip2           yes
    2425use_parallel_build  no
    25 checksums           md5     00372e5c149ccd2bc7a31791320fd7ea \
    26                     sha1    6052dcd0756947685ac7e465f25642c804c6973d \
    27                     rmd160  68b9779e6837e09e99783d7a3b3d42740c737c85
     26
     27checksums           sha1    301cca0c49c7efc14363b42e082b09056178973e \
     28                    rmd160  54b815d131fd7e7c8bfd1a49fbf3bc7c0ccc9c7a
    2829
    2930platforms           darwin
     
    5051}
    5152
    52 variant qt3 conflicts qt4 description {Use qt3-mac} {}
    53 
    54 variant qt4 conflicts qt3 description {Use qt4-mac} {}
    55 
    56 # move setting of 'qt_qmake_cmd' outside variants, since 'if'
    57 # statements are processed in-order while variants are processed after
    58 # everything else.
    59 set qt_qmake_cmd ""
    60 if {[variant_isset qt3]} {
    61     depends_lib-append  port:qt3-mac
    62     set qt_qmake_cmd    ${prefix}/libexec/qt3-mac/bin/qmake
    63 } else {
    64     # when variant 'qt3' is not set, use qt4 whether by default or via
    65     # the user's variant choice
    66     if {![variant_isset qt4]} {
    67         default_variants    +qt4
    68     }
    69     PortGroup           qt4 1.0
    70 }
    71 
    7253configure.cmd       ${qt_qmake_cmd}
    7354configure.pre_args  INSTALLBASE="${prefix}"
     
    8465}
    8566
     67post-destroot {
     68
     69    # if qwt is installed as a framework,
     70    # link in as libraries and headers too
     71
     72    if {[file exists ${destroot}${qt_frameworks_dir}/qwt.framework/qwt]} {
     73
     74        # get qwt's version numbers
     75
     76        set qwt_vers [split ${version} "."]
     77        set qwt_major [lindex ${qwt_vers} 0]
     78        set qwt_minor [lindex ${qwt_vers} 1]
     79        set qwt_patch [lindex ${qwt_vers} 2]
     80
     81        foreach fixfile [exec find ${destroot}${qt_frameworks_dir} \
     82                             -name "*.framework" | \
     83                             sed -e "s@${destroot}@@g"] {
     84
     85            set tf_full [strsed ${fixfile} {s@\\.framework@@}]
     86            set tf [strsed ${tf_full} {g@.*\/@@}]
     87
     88            # link headers into ${qt_includes_dir}, removing
     89            # directories if they are already there first
     90
     91            set inc_file ${destroot}${qt_includes_dir}/${tf}
     92            if {[file exists ${inc_file}]} {
     93                file delete -force ${inc_file}
     94            }
     95            ln -s ${tf_full}.framework/Headers ${inc_file}
     96
     97            # link libraries into ${qt_libs_dir}, all 4 number
     98            # variants as well as the .prl and .la files
     99
     100            set libs_dir ${destroot}${qt_libs_dir}
     101
     102            ln -s ${tf_full}.framework/${tf}.prl ${libs_dir}/lib${tf}.prl
     103            ln -s ${tf_full}.la ${libs_dir}/lib${tf}.la
     104            ln -s ${tf_full}.framework/${tf} ${libs_dir}/lib${tf}.dylib
     105            ln -s ${tf_full}.framework/${tf} ${libs_dir}/lib${tf}.${qwt_major}.dylib
     106            ln -s ${tf_full}.framework/${tf} ${libs_dir}/lib${tf}.${qwt_major}.${qwt_minor}.dylib
     107            ln -s ${tf_full}.framework/${tf} ${libs_dir}/lib${tf}.${qwt_major}.${qwt_minor}.${qwt_patch}.dylib
     108
     109        }
     110    }
     111}
     112
    86113universal_variant   yes
    87114
  • trunk/dports/graphics/qwt-devel/files/patch-qwtbuild.pri.diff

    r73109 r97879  
    1 --- qwtbuild.pri.orig   2010-11-02 08:36:50.000000000 -0400
    2 +++ qwtbuild.pri        2010-11-02 08:37:34.000000000 -0400
     1--- qwtbuild.pri.orig   2012-08-29 09:45:16.000000000 -0400
     2+++ qwtbuild.pri        2012-08-29 09:45:59.000000000 -0400
    33@@ -14,7 +14,6 @@
    44 CONFIG           += qt     
     
    3838-    exists( $${QMAKE_LIBDIR_QT}/libqwt.* ) {
    3939-
    40 -        # On some Linux distributions the the Qwt libraries are installed
     40-        # On some Linux distributions the Qwt libraries are installed
    4141-        # in the same directory as the Qt libraries. Unfortunately
    4242-        # qmake always adds QMAKE_LIBDIR_QT at the beginning of the
  • trunk/dports/graphics/qwt-devel/files/patch-qwtconfig.pri.diff

    r73109 r97879  
    1 --- qwtconfig.pri.orig  2010-11-02 09:20:29.000000000 -0400
    2 +++ qwtconfig.pri       2010-11-02 09:22:48.000000000 -0400
    3 @@ -16,26 +16,17 @@
     1--- qwtconfig.pri.orig  2012-08-29 10:01:32.000000000 -0400
     2+++ qwtconfig.pri       2012-08-29 10:03:48.000000000 -0400
     3@@ -16,26 +16,16 @@
    44 # Install paths
    55 ######################################################################
     
    99 
    1010-unix {
    11 -    QWT_INSTALL_PREFIX    = /usr/local/qwt-$$QWT_VERSION-rc3
     11-    QWT_INSTALL_PREFIX    = /usr/local/qwt-$$QWT_VERSION
    1212-}
    1313-
    1414-win32 {
    15 -    QWT_INSTALL_PREFIX    = C:/Qwt-$$QWT_VERSION-rc3
     15-    QWT_INSTALL_PREFIX    = C:/Qwt-$$QWT_VERSION
    1616-}
    1717-
    1818-QWT_INSTALL_DOCS      = $${QWT_INSTALL_PREFIX}/doc
    1919-QWT_INSTALL_HEADERS   = $${QWT_INSTALL_PREFIX}/include
     20-QWT_INSTALL_LIBS      = $${QWT_INSTALL_PREFIX}/lib
    2021+QWT_INSTALL_DOCS      = $${QWT_INSTALL_PREFIX}/share/qwt/doc
    2122+QWT_INSTALL_HEADERS   = $${QWT_INSTALL_PREFIX}/include/qwt
    22  QWT_INSTALL_LIBS      = $${QWT_INSTALL_PREFIX}/lib
    2323 
    2424 ######################################################################
     
    3232 ######################################################################
    3333 # Features
    34 @@ -49,8 +40,7 @@
     34@@ -49,8 +39,7 @@
    3535 # with every Qt upgrade.
    3636 ######################################################################
     
    4242 ######################################################################
    4343 # Build the static/shared libraries.
     44@@ -105,7 +94,7 @@
     45 # Otherwise you have to build them from the examples directory.
     46 ######################################################################
     47 
     48-# QWT_CONFIG     += QwtExamples
     49+QWT_CONFIG     += QwtExamples
     50 
     51 ######################################################################
     52 # When Qt has been built as framework qmake ( qtAddLibrary ) wants
     53@@ -113,6 +102,8 @@
     54 ######################################################################
     55 
     56 macx:CONFIG(qt_framework, qt_framework|qt_no_framework) {
     57-
     58-    QWT_CONFIG += QwtFramework
     59-} 
     60+  QWT_CONFIG += QwtFramework
     61+  QWT_INSTALL_LIBS = $$[QT_INSTALL_FRAMEWORKS]
     62+} else {
     63+  QWT_INSTALL_LIBS = $$[QT_INSTALL_LIBS]
     64+}
Note: See TracChangeset for help on using the changeset viewer.