Ticket #18019: Portfile

File Portfile, 2.3 KB (added by lassi.tuura@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                lprof
6version             20090113
7revision            1
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 creator \
14                    of LCMS. Marti has graciously consented to the creation of \
15                    this project.
16platforms           darwin
17homepage            http://lprof.sourceforge.net
18master_sites        sourceforge
19fetch.type          cvs
20cvs.root            :pserver:anonymous@lprof.cvs.sourceforge.net:/cvsroot/lprof
21cvs.date            ${version}
22cvs.module          lprof
23
24depends_lib         port:qt4-mac port:libusb
25depends_build       port:cmake
26
27worksrcdir          lprof
28
29configure.cmd       cmake
30configure.ccache    no
31configure.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
44post-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}