Changeset 70695


Ignore:
Timestamp:
Aug 17, 2010, 3:53:04 PM (10 years ago)
Author:
michaelld@…
Message:

Set 'destroot_qca' to simplify destroot installations.
Correct 'configure' comment.
Add in CMake file, installation, and use comment; does not conflict

with that installed by 'kdelibs4'.

Location:
trunk/dports/devel/qca
Files:
1 added
1 edited

Legend:

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

    r70436 r70695  
    55name                qca
    66version             2.0.2
    7 revision            2
     7revision            3
    88set branch          [join [lrange [split ${version} .] 0 1] .]
    99categories          devel crypto security
     
    3131# patch to correct pkgconfig file for framework install, if selected.
    3232# and allow for 'debug' and 'framework' options at the same time.
    33 # This change is needed to allow for +combined [+framework]; handle
    34 # +debug [+framework] in pre-extract.
     33# This change is needed to allow for +debug [+framework] -- disallow
     34# just debug framework via no variants for it.
    3535patchfiles           patch-configure.diff
    3636
     
    5151
    5252post-destroot {
     53    # alias to destroot QCA top-level directory
     54    set destroot_qca ${destroot}${qca_dir}
     55
    5356    # tweak header install for framework only
    5457    if {![variant_isset no_framework]} {
    5558        # when installed as a framework, link headers from
    56         # the framework into ${qca_dir}/include
    57         xinstall -d 755 ${destroot}${qca_dir}/include
    58         ln -s ${qca_dir}/lib/qca.framework/Headers \
    59             ${destroot}${qca_dir}/include/QtCrypto
     59        # the framework into ${destroot_qca}/include
     60        xinstall -d 755 ${destroot_qca}/include
     61        ln -s ${destroot_qca}/lib/qca.framework/Headers \
     62            ${destroot_qca}/include/QtCrypto
    6063    }
    6164
    6265    # install docs
    63     xinstall -d 755 ${destroot}${qca_dir}/share/doc/${name}
     66    xinstall -d 755 ${destroot_qca}/share/doc/${name}
    6467    xinstall -m 644 -W ${worksrcpath} COPYING README TODO \
    65         ${destroot}${qca_dir}/share/doc/${name}
     68        ${destroot_qca}/share/doc/${name}
     69
     70    # install cmake file (taken from port 'kdelibs4'). To use this
     71    # file, include '-DCMAKE_MODULE_PATH=...' in configure.args during
     72    # the initial 'configure' stage (which uses CMake), to the full
     73    # path of where the CMake files are installed.
     74    xinstall -d 755 ${destroot_qca}/share/cmake/modules
     75    xinstall -m 644 -W ${filespath} FindQCA2.cmake \
     76        ${destroot_qca}/share/cmake/modules
    6677}
    6778
Note: See TracChangeset for help on using the changeset viewer.