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

Last change on this file since 47905 was 47905, checked in by snc@…, 11 years ago

created lprof, ticket #18019. Maintainer timeout.

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