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

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

Changes to use qt4 portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 72620 2010-10-21 12:53:37Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6
7name                lprof
8version             20090113
9revision            4
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
29depends_build-append port:cmake
30
31worksrcdir          lprof
32
33configure.cmd       cmake
34configure.ccache    no
35configure.args      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
36                    -DCMAKE_VERBOSE_MAKEFILE=ON \
37                    -DCMAKE_BUILD_TYPE=Release \
38                    -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
39                    -DCMAKE_INSTALL_PREFIX=${prefix} \
40                    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
41                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
42                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
43                    ${qt_cmake_defines} \
44                    -DQTTRANS_LRELEASE_EXECUTABLE=${qt_lrelease_cmd} \
45                    -Wno-dev .
46
47if {[info exists universal_sysroot]} {
48    configure.args-append \
49                    -DCMAKE_C_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
50                    -DCMAKE_CXX_FLAGS_RELEASE="-isysroot ${universal_sysroot}" \
51                    -DCMAKE_LD_FLAGS="-Wl,-syslibroot,${universal_sysroot}"
52}
53
54post-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
67}
68
69livecheck.type      none
Note: See TracBrowser for help on using the repository browser.