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

Last change on this file since 9822 was 9822, checked in by toby, 15 years ago

Per rangerrick's email of 15 December 2004 23.59.12 EST, resetting all his ports to darwinports@…

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1# $Id: Portfile,v 1.12 2004/12/17 13:45:30 toby Exp $
2
3PortSystem 1.0
4name            kdepim3
5version         3.1.2
6revision        1
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     pim applications
10
11platforms       darwin
12master_sites    kde:stable/${version}/src http://ranger.befunk.com/fink/:admin http://ranger.befunk.com/darwin/:darwin
13extract.suffix  .tar.bz2
14use_bzip2       yes
15distname        kdepim-${version}
16distfiles       ${distname}.tar.bz2 \
17                kde-admindir-20030601.tar.bz2:admin \
18                detect-autoconf.tar.bz2:darwin \
19                kdepim-lexfiles-${version}.tar.bz2:darwin
20patchfiles      patch-${name}.darwin
21depends_lib     lib:libDCOP:kdelibs3 lib:libart_lgpl_2:libart_lgpl lib:libdl:dlcompat \
22                lib:libjpeg:jpeg lib:libkdecore.4:kdelibs3 bin:startkde:kdebase3 \
23                lib:libpisock:pilot-link lib:libpng.3:libpng lib:libpoll:poll-emulator \
24                lib:libqt-mt.3.1:qt3 lib:libX11.6:XFree86
25
26checksums       kdepim-${version}.tar.bz2 md5 37253cbba0fcf1201f6b24d3e8efa943 \
27                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
28                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a \
29                kdepim-lexfiles-${version}.tar.bz2 md5 06e8e6833f81d5c3d732805e2cbf9f84
30
31set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
32
33patch {
34                foreach patch $patchfiles {
35                        system "cd '${workpath}/${distname}' && \
36                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
37                }
38
39                # flex 2.5.4 (which comes with macosx) is broken
40                # this removes the bit that messes up icalsslexer.c
41                # we replace it below with a working .c file instead
42                system "perl -pi -e 's,^.*/icalsslexer.c: icalssyacc.h,,' '${worksrcpath}/libical/src/libicalss/Makefile.am'"
43                system "perl -pi -e 's,^.*/icallexer.c : icalyacc.h,,' '${worksrcpath}/libical/src/libical/Makefile.am'"
44}
45post-patch {
46                system "cd '${worksrcpath}' && cp -Rf ../admin/ admin"
47                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
48}
49configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
50                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='/usr/X11R6/lib:${prefix}/lib'
51configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
52                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
53                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
54                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
55                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --enable-final \
56                --disable-dependency-tracking
57post-configure {
58                system "touch '${worksrcpath}/libical/src/libical/icallexer.c'"
59                system "touch '${worksrcpath}/libical/src/libicalss/icalsslexer.c'"
60}
61build.env       ${configure.env}
Note: See TracBrowser for help on using the repository browser.