Changeset 97879
- Timestamp:
- Sep 18, 2012, 5:29:37 PM (12 years ago)
- Location:
- trunk/dports/graphics/qwt-devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/graphics/qwt-devel/Portfile
r74451 r97879 3 3 4 4 PortSystem 1.0 5 PortGroup qt4 1.0 5 6 6 7 name qwt-devel 7 version 6.0. 0-rc38 version 6.0.1 8 9 conflicts qwt qwt52 9 10 categories graphics science … … 23 24 use_bzip2 yes 24 25 use_parallel_build no 25 checksums md5 00372e5c149ccd2bc7a31791320fd7ea \ 26 sha1 6052dcd0756947685ac7e465f25642c804c6973d\27 rmd160 68b9779e6837e09e99783d7a3b3d42740c737c8526 27 checksums sha1 301cca0c49c7efc14363b42e082b09056178973e \ 28 rmd160 54b815d131fd7e7c8bfd1a49fbf3bc7c0ccc9c7a 28 29 29 30 platforms darwin … … 50 51 } 51 52 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 after58 # everything else.59 set qt_qmake_cmd ""60 if {[variant_isset qt3]} {61 depends_lib-append port:qt3-mac62 set qt_qmake_cmd ${prefix}/libexec/qt3-mac/bin/qmake63 } else {64 # when variant 'qt3' is not set, use qt4 whether by default or via65 # the user's variant choice66 if {![variant_isset qt4]} {67 default_variants +qt468 }69 PortGroup qt4 1.070 }71 72 53 configure.cmd ${qt_qmake_cmd} 73 54 configure.pre_args INSTALLBASE="${prefix}" … … 84 65 } 85 66 67 post-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 86 113 universal_variant yes 87 114 -
trunk/dports/graphics/qwt-devel/files/patch-qwtbuild.pri.diff
r73109 r97879 1 --- qwtbuild.pri.orig 201 0-11-02 08:36:50.000000000 -04002 +++ qwtbuild.pri 201 0-11-02 08:37:34.000000000 -04001 --- qwtbuild.pri.orig 2012-08-29 09:45:16.000000000 -0400 2 +++ qwtbuild.pri 2012-08-29 09:45:59.000000000 -0400 3 3 @@ -14,7 +14,6 @@ 4 4 CONFIG += qt … … 38 38 - exists( $${QMAKE_LIBDIR_QT}/libqwt.* ) { 39 39 - 40 - # On some Linux distributions the theQwt libraries are installed40 - # On some Linux distributions the Qwt libraries are installed 41 41 - # in the same directory as the Qt libraries. Unfortunately 42 42 - # 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 201 0-11-02 09:20:29.000000000 -04002 +++ qwtconfig.pri 201 0-11-02 09:22:48.000000000 -04003 @@ -16,26 +16,1 7@@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 @@ 4 4 # Install paths 5 5 ###################################################################### … … 9 9 10 10 -unix { 11 - QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION -rc311 - QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION 12 12 -} 13 13 - 14 14 -win32 { 15 - QWT_INSTALL_PREFIX = C:/Qwt-$$QWT_VERSION -rc315 - QWT_INSTALL_PREFIX = C:/Qwt-$$QWT_VERSION 16 16 -} 17 17 - 18 18 -QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/doc 19 19 -QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include 20 -QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib 20 21 +QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/share/qwt/doc 21 22 +QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include/qwt 22 QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib23 23 24 24 ###################################################################### … … 32 32 ###################################################################### 33 33 # Features 34 @@ -49,8 + 40,7 @@34 @@ -49,8 +39,7 @@ 35 35 # with every Qt upgrade. 36 36 ###################################################################### … … 42 42 ###################################################################### 43 43 # 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.