Changeset 125945 for trunk/dports/office


Ignore:
Timestamp:
Sep 30, 2014, 5:15:29 AM (4 years ago)
Author:
ryandesign@…
Message:

goldendict: use qmake portgroup (#39424); make myself maintainer; use $(CXX) not $(CC) to compile lionsupport.o

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/office/goldendict/Portfile

    r117868 r125945  
    44PortSystem          1.0
    55PortGroup           github 1.0
    6 PortGroup           qt4 1.0
     6PortGroup           qmake 1.0
    77
    88github.setup        goldendict goldendict e4adc5f
     
    1111categories          office
    1212platforms           darwin
    13 maintainers         nomaintainer
     13maintainers         ryandesign openmaintainer
    1414license             GPL-3+
    1515
     
    4444}
    4545
    46 configure.cmd       ${qt_qmake_cmd}
    47 configure.pre_args
    48 configure.universal_args-delete --disable-dependency-tracking
    49 
    5046post-configure {
    51     # For some reason the Makefile qmake generates hardcodes the compiler
     47    # For some reason the Makefile qmake generates hardcodes the C++ compiler
    5248    # that qt4-mac was made with as the one used to build lionsupport.o.
    53     # Replace it with $(CC) which we set up for the correct compiler and
     49    # Replace it with $(CXX) which we set up for the correct compiler and
    5450    # -arch flags with the build.args below.
    55     reinplace -E "/-o build\\/lionsupport.o/s/^(\[\[:space:\]\]+)\[^\[:space:\]\]+/\\1\\$\\(CC\\)/" ${worksrcpath}/Makefile
     51    reinplace -E "/-o build\\/lionsupport.o/s/^(\[\[:space:\]\]+)\[^\[:space:\]\]+/\\1\\$\\(CXX\\)/" ${worksrcpath}/Makefile
    5652}
    57 
    58 variant universal {}
    59 
    60 build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
    61                     CXX="${configure.cxx} [get_canonical_archflags cxx]" \
    62                     LINK="${configure.cxx} [get_canonical_archflags cxx]" \
    63                     XXXOBJC="${configure.cc} [get_canonical_archflags cc]"
    6453
    6554destroot {
Note: See TracChangeset for help on using the changeset viewer.