Changeset 144947 for trunk/dports/devel


Ignore:
Timestamp:
Jan 22, 2016, 10:26:04 AM (3 years ago)
Author:
vince@…
Message:

qca: bump to 2.1, obsoleting qca-ossl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/qca/Portfile

    r140960 r144947  
    33
    44PortSystem          1.0
    5 PortGroup           qt4 1.0
     5PortGroup           cmake 1.0
    66
    77name                qca
    8 version             2.0.3
    9 revision            2
     8version             2.1.0
    109set branch          [join [lrange [split ${version} .] 0 1] .]
    1110categories          devel crypto security
     
    2120
    2221homepage             http://delta.affinix.com/qca/
    23 master_sites         http://delta.affinix.com/download/qca/${branch}/
    24 use_bzip2            yes
     22master_sites         http://delta.affinix.com/download/qca/2.0/
    2523
    26 checksums            md5     fc15bd4da22b8096c51fcfe52d2fa309 \
    27                      sha1    9c868b05b81dce172c41b813de4de68554154c60 \
    28                      rmd160  333cfdce91fedfaec09c205528de52d7b569c521
     24checksums           rmd160  30358bbd182cfeb9eaa696b5b39fa9e6d1f99b4c \
     25                    sha256  226dcd76138c3738cdc15863607a96b3758a4c3efd3c47295939bcea4e7a9284
     26
    2927
    3028# (1) correct pkgconfig file for framework install, if selected.
     
    3432# (3) allow simple replacement for universal arch arguments, if that
    3533#     variant is requested.
    36 patchfiles           patch-configure.diff
     34patchfiles          patch-qca_basic_h.diff \
     35                    patch_CMakeLists_txt.diff
    3736
    3837# fix C++ inheritance for a specific class to make clang happy
    39 patchfiles-append    patch-src_botantools_botan_botan_secmem.h.diff
     38#patchfiles-append    patch-src_botantools_botan_botan_secmem.h.diff
    4039
    4140# remove unnecessary Carbon #include, which fails on 10.8
    42 patchfiles-append    patch-src_qac_systemstore_mac.cpp.diff
     41#patchfiles-append    patch-src_qac_systemstore_mac.cpp.diff
     42variant qt4 conflicts qt5 description "Build with qt4" {
    4343
    44 post-patch {
    45     # set arch type(s)
    46     reinplace "s|@ARCHES@|${qt_arch_types}|g" \
    47         ${worksrcpath}/configure
    48 
    49     # since Qt now uses the correct install_name for libraries,
    50     # remove that from QCA's library
    51     reinplace "/QMAKE_LFLAGS_SONAME/d" \
    52         ${worksrcpath}/src/src.pro
     44    PortGroup   qt4 1.0
     45    configure.args-append   "-DQT4_BUILD=ON"
    5346}
    5447
    55 # set QCA to install into the QT4 directory
    56 configure.pre_args   --prefix=${qt_dir}
     48variant qt5 conflicts qt4 description "Build with qt5" {
    5749
    58 # defaults: release only, no-framework, specific build_arch.
    59 # use variants to change everything except framework
    60 configure.args        --verbose         \
    61                       --qtdir=${qt_dir} \
    62                       --release         \
    63                       --no-framework
     50    PortGroup               qt5 1.0
     51    configure.args-append   "-DQCA_FEATURE_INSTALL_DIR=${prefix}/libexec/qt5/mkspecs"
    6452
    65 # QCA's configure does not handle this flag,
    66 # but does not generate an error either.
    67 configure.universal_args-delete --disable-dependency-tracking
    68 configure.args-delete  --disable-dependency-tracking
     53}
    6954
    7055# allow ccache, if specified by the user
     
    8469        ${destroot_qt}/share/doc/${name}
    8570
    86     # install cmake file (taken from port 'kdelibs4'). To use this
    87     # file, include '-DCMAKE_MODULE_PATH=...' in configure.args during
    88     # the initial 'configure' stage (which uses CMake), to the full
    89     # path of where the CMake files are installed.
    90     xinstall -d -m 755 ${destroot}${qt_cmake_module_dir}
    91     xinstall -m 644 -W ${filespath} FindQCA2.cmake \
    92         ${destroot}${qt_cmake_module_dir}
     71    if {[variant_isset qt4]} {
     72        # install cmake file (taken from port 'kdelibs4'). To use this
     73        # file, include '-DCMAKE_MODULE_PATH=...' in configure.args during
     74        # the initial 'configure' stage (which uses CMake), to the full
     75        # path of where the CMake files are installed.
     76        xinstall -d -m 755 ${destroot}${qt_cmake_module_dir}
     77        xinstall -m 644 -W ${filespath} FindQCA2.cmake \
     78            ${destroot}${qt_cmake_module_dir}
     79    }
    9380}
    9481
Note: See TracChangeset for help on using the changeset viewer.