source: trunk/dports/graphics/lprof/Portfile

Last change on this file was 115019, checked in by ryandesign@…, 4 years ago

revbump ports depending on libpng following libpng 1.6.x update (#41842)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
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
2# $Id: Portfile 115019 2013-12-22 09:29:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                lprof
8version             20090113
9revision            9
10categories          graphics
11license             GPL
12maintainers         nomaintainer
13description         LProf open source ICC profiler
14long_description    LProf is an open source color profiler that creates ICC \
15                    compliant profiles for devices such as cameras, scanners \
16                    and monitors. Origanally authored by Marti Maria the \
17                    creator of LCMS. Marti has graciously consented to the \
18                    creation of this project.
19
20platforms           darwin
21homepage            http://lprof.sourceforge.net
22master_sites        sourceforge
23fetch.type          cvs
24cvs.root            :pserver:anonymous@lprof.cvs.sourceforge.net:/cvsroot/lprof
25cvs.date            ${version}
26cvs.module          lprof
27
28depends_lib-append  port:libusb-compat port:libpng port:tiff \
29                    port:zlib port:qt-assistant port:vigra
30depends_build-append port:cmake
31depends_skip_archcheck cmake
32
33worksrcdir          lprof
34
35# link final 'lprof' executable with PNG and AppKit
36patchfiles          patch-src-CMakeLists.txt.diff
37
38configure.cmd       cmake
39configure.ccache    no
40configure.args      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
41                    -DCMAKE_VERBOSE_MAKEFILE=ON \
42                    -DCMAKE_BUILD_TYPE=Release \
43                    -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
44                    -DCMAKE_INSTALL_PREFIX=${prefix} \
45                    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
46                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
47                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
48                    ${qt_cmake_defines} \
49                    -DJPEG_INCLUDE_DIR=${prefix}/include \
50                    -DPNG_PNG_INCLUDE_DIR=${prefix}/include \
51                    -DTIFF_INCLUDE_DIR=${prefix}/include \
52                    -DQTTRANS_LRELEASE_EXECUTABLE=${qt_lrelease_cmd} \
53                    -Wno-dev .
54
55if {${configure.sdkroot} != ""} {
56    configure.args-append \
57        -DCMAKE_C_FLAGS_RELEASE="-isysroot ${configure.sdkroot}" \
58        -DCMAKE_CXX_FLAGS_RELEASE="-isysroot ${configure.sdkroot}" \
59        -DCMAKE_LD_FLAGS="-Wl,-syslibroot,${configure.sdkroot}"
60}
61
62post-patch {
63    # make PNG required
64    reinplace "s,PNG,PNG REQUIRED," ${worksrcpath}/CMakeLists.txt
65
66    # fix IOKit header include: G -> g, for case sensitive file systems
67    reinplace "/include/s,IOKit/Graphics/IOGraphicsLib,IOKit/graphics/IOGraphicsLib,g" ${worksrcpath}/src/videoLUTutils/LUTutil.h
68
69    # fix use of SysBeep -> NSBeep
70    reinplace "s,SysBeep,NSBeep,g" \
71        ${worksrcpath}/src/argyll/spectro/unixio.c
72}
73
74post-destroot {
75    # create an OSX .app
76    set appcdir ${destroot}${applications_dir}/LProf.app/Contents
77    xinstall -m 755 -d ${appcdir}/MacOS
78    xinstall -m 755 -d ${appcdir}/Resources
79    xinstall -m 755 -d ${appcdir}/Argyll.kext
80    move ${destroot}${prefix}/bin/lprof ${appcdir}/MacOS
81    move ${destroot}${prefix}/bin/icc2it8 ${appcdir}/MacOS
82    copy ${worksrcpath}/build/darwin/lprof.app/Contents/Info.plist \
83        ${appcdir}
84    copy ${worksrcpath}/build/darwin/lprof.app/Contents/Resources/lprof.icns ${appcdir}/Resources
85    copy ${worksrcpath}/src/argyll/libusb/Argyll.kext/Info.plist \
86        ${appcdir}/Argyll.kext
87    copy ${qt_apps_dir}/Assistant.app ${appcdir}/MacOS
88    move ${destroot}${prefix}/data ${appcdir}/MacOS
89}
90
91livecheck.type      none
Note: See TracBrowser for help on using the repository browser.