Ticket #18019: Portfile.3

File Portfile.3, 2.5 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

/Applications/MacPorts -> $applications_dir

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$
3
4PortSystem          1.0
5
6name                lprof
7version             20090113
8revision            1
9categories          graphics
10maintainers         nomaintainer
11description         LProf open source ICC profiler
12long_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
18platforms           darwin
19homepage            http://lprof.sourceforge.net
20master_sites        sourceforge
21fetch.type          cvs
22cvs.root            :pserver:anonymous@lprof.cvs.sourceforge.net:/cvsroot/lprof
23cvs.date            ${version}
24cvs.module          lprof
25
26depends_lib         port:qt4-mac port:libusb
27depends_build       port:cmake
28
29worksrcdir          lprof
30
31configure.cmd       cmake
32configure.ccache    no
33configure.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
46post-destroot {
47  set appdir $destroot$applications_dir/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_dir/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}