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