source: trunk/dports/graphics/lprof/Portfile @ 69260

Last change on this file since 69260 was 69260, checked in by michaelld@…, 9 years ago

Corrected use of qt4-mac dependency.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 69260 2010-06-29 07:01:25Z michaelld@macports.org $
3
4PortSystem          1.0
5
6name                lprof
7version             20090113
8revision            3
9categories          graphics
10license             GPL
11maintainers         nomaintainer
12description         LProf open source ICC profiler
13long_description    LProf is an open source color profiler that creates ICC \
14                    compliant profiles for devices such as cameras, scanners \
15                    and monitors. Origanally authored by Marti Maria the \
16                    creator of LCMS. Marti has graciously consented to the \
17                    creation of this project.
18
19platforms           darwin
20homepage            http://lprof.sourceforge.net
21master_sites        sourceforge
22fetch.type          cvs
23cvs.root            :pserver:anonymous@lprof.cvs.sourceforge.net:/cvsroot/lprof
24cvs.date            ${version}
25cvs.module          lprof
26
27depends_lib         port:qt4-mac port:libusb-compat
28depends_build       port:cmake
29
30worksrcdir          lprof
31
32configure.cmd       cmake
33configure.ccache    no
34configure.args      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
35                    -DCMAKE_VERBOSE_MAKEFILE=ON \
36                    -DCMAKE_BUILD_TYPE=Release \
37                    -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
38                    -DCMAKE_INSTALL_PREFIX=${prefix} \
39                    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
40                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
41                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
42                    -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
43                    -DQTTRANS_LRELEASE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/lrelease \
44                    -Wno-dev .
45
46if {[info exists universal_sysroot]} {
47    configure.args-append \
48                    -DCMAKE_C_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
49                    -DCMAKE_CXX_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
50                    -DCMAKE_LD_FLAGS="-Wl,-syslibroot,${universal_sysroot}"
51}
52
53post-destroot {
54  set appdir $destroot$applications_dir/LProf.app
55  set appcdir $appdir/Contents
56  xinstall -m 755 -d $appcdir/MacOS/data
57  xinstall -m 755 -d $appcdir/Resources
58  xinstall -m 755 -d $appcdir/Argyll.kext
59  xinstall $destroot$prefix/bin/lprof $destroot$prefix/bin/icc2it8 $appcdir/MacOS
60  file copy $worksrcpath/build/darwin/lprof.app/Contents/Info.plist $appcdir
61  file copy $worksrcpath/build/darwin/lprof.app/Contents/Resources/lprof.icns $appcdir/Resources
62  file copy $worksrcpath/src/argyll/libusb/Argyll.kext/Info.plist $appcdir/Argyll.kext
63  file copy $applications_dir/Qt/Assistant.app $appcdir/MacOS
64  eval file copy [glob "$destroot$prefix/data/*"] $appcdir/MacOS/data
65  file delete -force $destroot$prefix/bin $destroot$prefix/data
66}
67
68livecheck.type      none
Note: See TracBrowser for help on using the repository browser.