Ignore:
Timestamp:
Sep 27, 2012, 7:48:17 PM (6 years ago)
Author:
michaelld@…
Message:

kdiff3 : use qt4 portgroup and standard qmake configure command; add debug and universal variants; addresses ticket #36356.

File:
1 edited

Legend:

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

    r98177 r98183  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem          1.0
    45PortGroup           xcodeversion 1.0
     6PortGroup           qt4 1.0
    57
    68name                kdiff3
     
    2123master_sites        sourceforge:project/kdiff3/kdiff3/${version}
    2224
    23 checksums           rmd160  cbbac8e0ad39fa3a2403199ceaac6239de94b83e \
    24                     sha256  e3b716bb449c814d8c30817ec1ca23fba0ed9eee5a635e766c1f2b90ddb75a2a
     25checksums           rmd160 cbbac8e0ad39fa3a2403199ceaac6239de94b83e \
     26                    sha256 e3b716bb449c814d8c30817ec1ca23fba0ed9eee5a635e766c1f2b90ddb75a2a
    2527
    26 depends_lib       port:qt4-mac
    27 set worksrcpath   ${worksrcpath}/src-QT4
     28set worksrcpath     ${worksrcpath}/src-QT4
     29
     30minimum_xcodeversions {9 3.1}
    2831
    2932patchfiles patch-src-QT4-kdiff3.pro.diff
    3033
    31 configure {
    32   exec qmake ${worksrcpath}/kdiff3.pro -o ${worksrcpath}/Makefile DESTDIR=${destroot}/${prefix}/bin
     34post-patch {
     35    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
    3336}
    3437
    35 minimum_xcodeversions {9 3.1}
     38# --disable-dependency-tracking is not recognized.
     39configure.universal_args-delete --disable-dependency-tracking
     40
     41pre-configure {
     42    configure.args-append CONFIG+=\"${qt_arch_types}\"
     43}
     44
     45configure.cmd       ${qt_qmake_cmd}
     46configure.pre_args   
     47configure.post_args
     48
     49variant debug description \
     50{Build both release and debug library} {}
     51
     52if {[variant_isset debug]} {
     53    configure.args-append CONFIG+=\"debug_and_release build_all\"
     54} else {
     55    configure.args-append CONFIG+=\"release\"
     56}
    3657
    3758livecheck.type      regex
Note: See TracChangeset for help on using the changeset viewer.