source: trunk/dports/kde/kdelibs4-devel/Portfile @ 45250

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

Obfuscate. Also add automoc as build dependency for ktorrent.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 45250 2009-01-12 03:54:03Z illogic-al@macports.org $
2
3PortSystem          1.0
4
5name                kdelibs4-devel
6version             4.1.85
7revision            2
8categories          kde kde4
9maintainers         illogic-al openmaintainer
10description         KDE4 core libraries
11long_description    Core libraries for KDE4 applications to function
12platforms           darwin
13homepage            http://www.kde.org
14master_sites        http://ftp.kde.org/unstable/${version}/src/
15use_bzip2           yes
16distname            kdelibs-${version}
17checksums           md5 20aa488389768aea440d211b66437f5b
18
19patchfiles          kdelibs_link.diff
20patch.dir           ${workpath}/${distname}
21
22depends_lib         port:qt4-mac port:phonon \
23                    port:strigi port:gettext \
24                    port:aspell port:enchant \
25                    port:bzip2 port:zlib \
26                    port:pcre port:shared-mime-info \
27                    port:jpeg port:libpng \
28                    lib:libgif:giflib port:tiff \
29                    port:jasper port:openexr \
30                    port:soprano port:openssl
31
32depends_build       port:cmake \
33                    port:automoc
34
35use_parallel_build  yes
36worksrcdir          build
37post-extract        { file mkdir ${worksrcpath} }
38
39configure.cmd       cmake
40configure.ccache    no
41configure.compiler  gcc-4.2
42configure.args  ../${distname} -DBUILD_SHARED_LIBS=ON \
43                -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
44                -DCMAKE_VERBOSE_MAKEFILE=ON \
45                -DCMAKE_BUILD_TYPE=Release \
46                -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
47                -DCMAKE_INSTALL_PREFIX=${prefix} \
48                -DPHONON_INCLUDE_DIR=${prefix}/include \
49                -DPHONON_LIBRARY=${prefix}/lib/libphonon.dylib \
50                -DCMAKE_OSX_SYSROOT=${universal_sysroot} \
51                -DQT_QMAKE_EXECUTABLE=${prefix}/libexec/qt4-mac/bin/qmake \
52                -Wno-dev
53
54#post-configure {
55#    reinplace "s|#define   HAVE_BACKTRACE 1||" ${workpath}/build/config.h
56#}
57# Need to test if this is still necessary
58
59default_variants    +debug
60
61variant universal {
62    configure.universal_args-delete  --disable-dependency-tracking
63    configure.args-append       -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
64}
65
66variant debug description "Enable debug binaries" {
67        configure.args-delete           -DCMAKE_BUILD_TYPE=Release
68        configure.args-append           -DCMAKE_BUILD_TYPE=debugFull
69}
Note: See TracBrowser for help on using the repository browser.