source: trunk/dports/kde/koffice2-devel/Portfile @ 46400

Last change on this file since 46400 was 46400, checked in by illogic-al@…, 11 years ago

Delete eigen2-devel since stable 2.0 version is out.
Add and use eigen port instead. Update dependencies.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 46400 2009-02-04 05:25:12Z illogic-al@macports.org $
2
3PortSystem          1.0
4
5name                koffice2-devel
6version             1.9.98.5
7revision            1
8categories          kde kde4
9maintainers         nomaintainer
10description         A variety of games made with the KDE4 platform
11long_description    ${description}
12platforms           darwin
13homepage            http://www.kde.org
14distname            koffice-${version}
15master_sites        kde:unstable/${distname}/src/
16use_bzip2           yes
17checksums           md5 1525ca823dc39934a16cf1de0750ec11
18
19patchfiles          koffice_int_cast.diff
20patch.dir           ${workpath}/${distname}
21
22depends_lib         port:kdelibs4 port:kdebase4 \
23                    port:eigen
24                    #port:libwpd port:libwpg
25                    #port:qca port:pstoedit
26                    #port:poppler port:gmm
27                    #port:graphicsmagick
28                    #port:gsl port:glew
29                    #port:openctl
30# The ports above can enable extra features (reportedly)
31
32depends_build       port:cmake port:automoc
33
34use_parallel_build  yes
35worksrcdir          build
36post-extract       { file mkdir ${worksrcpath} }
37
38configure.cmd       cmake
39configure.ccache    no
40configure.compiler  gcc-4.2
41configure.args  ../${distname} -DBUILD_SHARED_LIBS=ON \
42                -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
43                -DCMAKE_VERBOSE_MAKEFILE=ON \
44                -DCMAKE_BUILD_TYPE=Release \
45                -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
46                -DCMAKE_INSTALL_PREFIX=${prefix} \
47                -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/ \
48                -DPHONON_INCLUDE_DIR=${prefix}/include \
49                -DPHONON_LIBRARY=${prefix}/lib/libphonon.dylib \
50                -DBUNDLE_INSTALL_DIR=${applications_dir} \
51                -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
52                -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
53                -Wno-dev
54
55variant universal {
56    configure.universal_args-delete  --disable-dependency-tracking
57    configure.args-append       -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
58}
59
60variant debug description "Enable debug binaries" {
61        configure.args-delete           -DCMAKE_BUILD_TYPE=Release
62        configure.args-append           -DCMAKE_BUILD_TYPE=debugFull
63}
64
65post-destroot {
66    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-justify-center.png"
67    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-justify-fill.png"
68    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-justify-left.png"
69    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-justify-right.png"
70    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-text-bold.png"
71    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-text-italic.png"
72    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/format-text-underline.png"
73    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-group.png"
74    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-order-back.png"
75    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-order-front.png"
76    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-order-lower.png"
77    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-order-raise.png"
78    system "rm ${destroot}${prefix}/share/icons/oxygen/16x16/actions/object-ungroup.png"
79}
80
Note: See TracBrowser for help on using the repository browser.