Ticket #47204: qtsg.diff

File qtsg.diff, 1.8 KB (added by RJVB (René Bertin), 9 years ago)

portfile diff

  • devel/qtscriptgenerator/Portfile

    old new  
    66
    77name                qtscriptgenerator
    88version             0.2.0
     9revision            1
    910categories          devel kde4
    1011license             LGPL-2.1
    1112maintainers         michaelld openmaintainer
     
    2829                    patch-qtbindings.diff \
    2930                    patch-generator_typesystem_phonon-qtscript.xml.diff \
    3031                    patch-generator_typesystem_phonon.xml.diff
     32patchfiles-append   remove-QtScriptFutureIterator.diff \
     33                    patch-include-everything.diff \
     34                    patch-build-system-for-MacPorts.diff
    3135
    3236# check for +debug variant of this port, and make sure phonon was
    3337# installed with +debug as well; if not, error out.  phonon checks to
     
    4953    # copy the QMake build script into place
    5054    copy ${filespath}/qtsg.pro ${worksrcpath}
    5155
     56    reinplace "s|@QT_FRAMEWORKS_DIR@|${qt_frameworks_dir}|g" \
     57        ${worksrcpath}/generator/main.h
     58    reinplace "s|@QT_INCLUDES_DIR@|${qt_includes_dir}|g" \
     59        ${worksrcpath}/generator/main.h
     60    reinplace "s|@PREFIX@|${prefix}|g" \
     61        ${worksrcpath}/generator/main.h
     62
    5263    # allow for universal and non-native building if just the
    5364    # qtbinding scripts, not the generator (which is solely used for
    5465    # generating the scripts)
     
    7081configure.args      "-o Makefile qtsg.pro"
    7182configure.post_args
    7283configure.universal_args
     84configure.env-delete \
     85                    QTDIR=${qt_dir}
     86build.env-delete    QTDIR=${qt_dir}
     87# used by generator/generator:
     88build.env-append    QTFRAMEWORKS=${qt_frameworks_dir}
    7389
    7490# allow ccache, if specified by the user
    7591pre-build {