source: trunk/dports/x11/kdepim3/Portfile @ 13395

Last change on this file since 13395 was 13395, checked in by ben, 14 years ago

Version 3.4.1

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1# $Id: Portfile,v 1.14 2005/08/07 19:09:44 ben Exp $
2
3PortSystem 1.0
4name            kdepim3
5version         3.4.1
6categories      x11
7maintainers     ben@opendarwin.org
8description     KDE personal information management tools \
9                NB KDE sound does not work. \
10                ** This port needs testing **
11platforms       darwin
12master_sites    kde:stable/${version}/src \
13                http://ranger.befunk.com/fink/:admin
14extract.suffix  .tar.bz2
15use_bzip2       yes
16distname        kdepim-${version}
17distfiles       ${distname}.tar.bz2 kde-admindir-3.4.1.tar.bz2:admin
18depends_lib     lib:libkdecore.4:kdelibs3 \
19                lib:libXm:lesstif \
20                port:fontconfig
21
22checksums       kdepim-${version}.tar.bz2 md5 e5515aa230558bac8651e9cd9f8f9673 \
23                kde-admindir-3.4.1.tar.bz2 md5 0388fc87fa950791209ad4ab791b32cd \
24                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
25
26set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
27
28platform darwin 6 {
29                depends_lib-append      lib:libdl:dlcompat
30}
31
32patchfiles      kdepim3.patch
33patch.args      -p1
34
35post-patch      {
36                system "cd '${worksrcpath}' && if test -d ../admin; then cp -Rf ../admin/ admin; fi"
37                system "cd '${worksrcpath}' && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi"
38                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
39                foreach file [glob admin/*] {
40                    reinplace "s|-O2|-Os|g" $file
41                    reinplace "s|doc/HTML|doc/kde|g" $file
42                    reinplace "s|/usr/share/doc/packages/qt3/html|${prefix}/share/doc/qt3/html|g" $file
43                    reinplace "s|HAVE_GCC_VISIBILITY=1|HAVE_GCC_VISIBILITY=0|g" $file
44                    reinplace "s|-fvisibility=hidden -fvisibility-inlines-hidden||g" $file
45                }
46                # remove reference to arts -- may break kalarm
47                foreach file [glob kalarm/Makefile*] {
48                    reinplace "s|-lartskde||g" $file
49                }
50}
51
52configure.env   CC=gcc-3.3 CXX=g++-3.3 \
53                CFLAGS='-Os' CXXFLAGS='-Os' \
54                CPPFLAGS='-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include/freetype2/freetype -I${prefix}/include -I${prefix}/include/qt3 -I/usr/include/gssapi -no-cpp-precomp -fno-common -UHAVE_REALTIME_SCHED' \
55                LDFLAGS='-L/usr/X11R6/lib -L${prefix}/lib' \
56                LIBS='-L${prefix}/lib' \
57                lt_cv_sys_max_cmd_len=65536
58
59configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
60                --with-extra-includes='${prefix}/include:/usr/include/gssapi' \
61                --with-extra-libs='${prefix}/lib' \
62                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
63                --with-plugins='${prefix}/lib/qt3-plugins' \
64                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
65                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
66                --disable-dependency-tracking --enable-cups --with-ldap \
67                --mandir=${prefix}/share/man --with-pam --with-distribution='DarwinPorts/Mac OS X' \
68                --with-ssl-dir=/usr --with-ssl --with-gssapi=framework --disable-dependency-tracking \
69                --without-arts
70
71build.env       ${configure.env}
72build.target    all all_libraries="-L${prefix}/lib -L/usr/X11R6/lib -L/usr/lib" KDM_FLAGS="-UHAVE_UTMPX -DBSD_UTMP=1"
73
74destroot.args   -j1
75destroot.target install
Note: See TracBrowser for help on using the repository browser.