source: trunk/dports/x11/kdenetwork3/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.6 KB
Line 
1# $Id: Portfile,v 1.14 2005/04/04 10:08:41 jkh Exp $
2
3PortSystem 1.0
4name            kdenetwork3
5version         3.1.2
6revision        2
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     network 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        kdenetwork-${version}
16distfiles       ${distname}.tar.bz2 kde-admindir-20030601.tar.bz2:admin detect-autoconf.tar.bz2:darwin
17depends_lib     lib:libDCOP:kdelibs3 lib:libart_lgpl_2:libart_lgpl \
18                lib:libjpeg:jpeg lib:libkdecore.4:kdelibs3 bin:startkde:kdebase3 \
19                lib:libpng.3:libpng lib:libqt-mt.3.1:qt3 \
20                lib:libX11.6:XFree86
21
22checksums       kdenetwork-${version}.tar.bz2 md5 baf7663463d9e85a96d5c5143ef2b4be \
23                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
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                depends_lib-append      lib:libpoll:poll-emulator
31}
32
33platform darwin 7 {
34                depends_lib-append      lib:libpoll:poll-emulator
35}
36
37variant darwin {
38                patchfiles      patch-${name}.darwin
39}
40
41variant cvs {
42                version 3.2
43                revision 0
44
45                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
46                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
47                cvs.module kdenetwork
48                pre-extract {
49                        cvsfetch
50                }
51                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
52
53                distname kdenetwork
54                distfiles kde-admindir-cvs-20030701.tar.bz2:admin
55                checksums kde-admindir-cvs-20030701.tar.bz2 md5 b9bf2dc286d2e434c2cfdadc421c79b6
56
57                patchfiles
58}
59
60patch {
61                foreach patch $patchfiles {
62                        system "cd '${workpath}/${distname}' && \
63                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
64                }
65}
66post-patch      {
67                system "cd '${worksrcpath}' && test -d ../admin && cp -Rf ../admin/ admin"
68                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
69}
70configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
71                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='${prefix}/lib'
72configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
73                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
74                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
75                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
76                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
77                --disable-dependency-tracking
78build.env       ${configure.env}
Note: See TracBrowser for help on using the repository browser.