Ignore:
Timestamp:
Nov 16, 2010, 4:37:50 PM (9 years ago)
Author:
michaelld@…
Message:

lprof: Update to work with Qt 4.7, hopefully; fix library port dependency list.

Location:
trunk/dports/graphics/lprof
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/lprof/Portfile

    r72620 r73523  
    77name                lprof
    88version             20090113
    9 revision            4
     9revision            5
    1010categories          graphics
    1111license             GPL
     
    2626cvs.module          lprof
    2727
    28 depends_lib-append  port:libusb-compat
     28depends_lib-append  port:libusb-compat port:libpng port:tiff port:zlib
    2929depends_build-append port:cmake
    3030
    3131worksrcdir          lprof
     32
     33# link final 'lprof' executable with PNG and AppKit
     34patchfiles          patch-src-CMakeLists.txt.diff
    3235
    3336configure.cmd       cmake
     
    5255}
    5356
     57post-patch {
     58    # make PNG required
     59    reinplace "s,PNG,PNG REQUIRED," ${worksrcpath}/CMakeLists.txt
     60
     61    # fix IOKit header include: G -> g, for case sensitive file systems
     62    reinplace "/include/s,IOKit/Graphics/IOGraphicsLib,IOKit/graphics/IOGraphicsLib,g" ${worksrcpath}/src/videoLUTutils/LUTutil.h
     63
     64    # fix use of SysBeep -> NSBeep
     65    reinplace "s,SysBeep,NSBeep,g" \
     66        ${worksrcpath}/src/argyll/spectro/unixio.c
     67}
     68
    5469post-destroot {
    55   set appdir $destroot$applications_dir/LProf.app
    56   set appcdir $appdir/Contents
    57   xinstall -m 755 -d $appcdir/MacOS/data
    58   xinstall -m 755 -d $appcdir/Resources
    59   xinstall -m 755 -d $appcdir/Argyll.kext
    60   xinstall $destroot$prefix/bin/lprof $destroot$prefix/bin/icc2it8 $appcdir/MacOS
    61   file copy $worksrcpath/build/darwin/lprof.app/Contents/Info.plist $appcdir
    62   file copy $worksrcpath/build/darwin/lprof.app/Contents/Resources/lprof.icns $appcdir/Resources
    63   file copy $worksrcpath/src/argyll/libusb/Argyll.kext/Info.plist $appcdir/Argyll.kext
    64   file copy $applications_dir/Qt/Assistant.app $appcdir/MacOS
    65   eval file copy [glob "$destroot$prefix/data/*"] $appcdir/MacOS/data
    66   file delete -force $destroot$prefix/bin $destroot$prefix/data
     70    # create an OSX .app
     71    set appcdir ${destroot}${applications_dir}/LProf.app/Contents
     72    xinstall -m 755 -d ${appcdir}/MacOS
     73    xinstall -m 755 -d ${appcdir}/Resources
     74    xinstall -m 755 -d ${appcdir}/Argyll.kext
     75    move ${destroot}${prefix}/bin/lprof ${appcdir}/MacOS
     76    move ${destroot}${prefix}/bin/icc2it8 ${appcdir}/MacOS
     77    copy ${worksrcpath}/build/darwin/lprof.app/Contents/Info.plist \
     78        ${appcdir}
     79    copy ${worksrcpath}/build/darwin/lprof.app/Contents/Resources/lprof.icns ${appcdir}/Resources
     80    copy ${worksrcpath}/src/argyll/libusb/Argyll.kext/Info.plist \
     81        ${appcdir}/Argyll.kext
     82    copy ${qt_apps_dir}/Assistant.app ${appcdir}/MacOS
     83    move ${destroot}${prefix}/data ${appcdir}/MacOS
    6784}
    6885
Note: See TracChangeset for help on using the changeset viewer.