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

Last change on this file since 11593 was 11593, checked in by jkh, 15 years ago

The disposition of the dlopen() and poll() routines has evolved over 3 releases. Properly
conditionalize usage of this in the ports that need it to ensure that builds on Jaguar, Panther
and Tiger all work.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1# $Id: Portfile,v 1.13 2005/04/04 10:08:41 jkh 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 \
22                lib:libjpeg:jpeg lib:libkdecore.4:kdelibs3 bin:startkde:kdebase3 \
23                lib:libpisock:pilot-link lib:libpng.3:libpng \
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
33platform darwin 6 {
34         depends_lib-append     lib:libdl:dlcompat
35         depends_lib-append     lib:libpoll:poll-emulator
36}
37
38platform darwin 7 {
39         depends_lib-append     lib:libpoll:poll-emulator
40}
41
42patch {
43                foreach patch $patchfiles {
44                        system "cd '${workpath}/${distname}' && \
45                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
46                }
47
48                # flex 2.5.4 (which comes with macosx) is broken
49                # this removes the bit that messes up icalsslexer.c
50                # we replace it below with a working .c file instead
51                system "perl -pi -e 's,^.*/icalsslexer.c: icalssyacc.h,,' '${worksrcpath}/libical/src/libicalss/Makefile.am'"
52                system "perl -pi -e 's,^.*/icallexer.c : icalyacc.h,,' '${worksrcpath}/libical/src/libical/Makefile.am'"
53}
54post-patch {
55                system "cd '${worksrcpath}' && cp -Rf ../admin/ admin"
56                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
57}
58configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
59                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='/usr/X11R6/lib:${prefix}/lib'
60configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
61                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
62                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
63                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
64                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --enable-final \
65                --disable-dependency-tracking
66post-configure {
67                system "touch '${worksrcpath}/libical/src/libical/icallexer.c'"
68                system "touch '${worksrcpath}/libical/src/libicalss/icalsslexer.c'"
69}
70build.env       ${configure.env}
Note: See TracBrowser for help on using the repository browser.