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