source: trunk/dports/x11/kdelibs3/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: 6.9 KB
Line 
1# $Id: Portfile,v 1.28 2005/04/04 10:08:40 jkh Exp $
2
3PortSystem 1.0
4name            kdelibs3
5version         3.1.2
6revision        4
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     essential libraries for KDE applications
10
11platforms       darwin
12master_sites    \
13                kde:Attic/${version}/src \
14                http://ranger.befunk.com/fink/:admin \
15                http://ranger.befunk.com/darwin/:darwin
16extract.suffix  .tar.bz2
17use_bzip2       yes
18distname        kdelibs-${version}
19distfiles       ${distname}.tar.bz2 kde-admindir-20030601.tar.bz2:admin detect-autoconf.tar.bz2:darwin
20depends_lib     lib:libart_lgpl_2:libart_lgpl lib:libartsflow.1:arts \
21                lib:libaudiofile.0:audiofile lib:libbz2:bzip2 lib:libiconv.2:libiconv \
22                lib:libjpeg.62:jpeg lib:libmad:mad lib:libogg:libogg lib:libpcre:pcre \
23                lib:libpng.3:libpng lib:libtiff.3:tiff lib:libqt-mt.3:qt3 \
24                lib:libvorbis.0:libvorbis lib:libxml2.2:libxml2 lib:libxslt:libxslt \
25                lib:libX11.6:XFree86 lib:libintl.3:gettext
26
27checksums       kdelibs-${version}.tar.bz2 md5 2b896ce9a6942e4cc4fe1758236bafa3 \
28                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
29                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
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
42variant darwin {
43                depends_lib-append path:${prefix}/include/cups/cups.h:cups-headers
44                patchfiles \
45                        stable/patch-kdelibs-arts-kde-mcop-dcop-kmcop.cpp.diff \
46                        stable/patch-kdelibs-arts-kde-mcop-dcop-kmcop_main.cpp.diff \
47                        stable/patch-kdelibs-arts-kde-mcop-dcop-Makefile.am.diff \
48                        stable/patch-kdelibs-arts-knotify-knotify.cpp.diff \
49                        stable/patch-kdelibs-arts-knotify-Makefile.am.diff \
50                        stable/patch-kdelibs-arts-knotify-stub_main.cpp.diff \
51                        stable/patch-kdelibs-dcop-dcopserver.cpp.diff \
52                        stable/patch-kdelibs-dcop-dcopserver_main.cpp.diff \
53                        stable/patch-kdelibs-dcop-Makefile.am.diff \
54                        stable/patch-kdelibs-interfaces-kmediaplayer-Makefile.am.diff \
55                        stable/patch-kdelibs-interfaces-kscript-Makefile.am.diff \
56                        stable/patch-kdelibs-interfaces-kscript-sample-Makefile.am.diff \
57                        stable/patch-kdelibs-interfaces-ktexteditor-Makefile.am.diff \
58                        stable/patch-kdelibs-kab-Makefile.am.diff \
59                        stable/patch-kdelibs-kabc-Makefile.am.diff \
60                        stable/patch-kdelibs-kabc-plugins-ldap-configure.in.in.diff \
61                        stable/patch-kdelibs-kabc-vcard-Makefile.am.diff \
62                        stable/patch-kdelibs-kate-interfaces-Makefile.am.diff \
63                        stable/patch-kdelibs-kcert-Makefile.am.diff \
64                        stable/patch-kdelibs-kconf_update-kconf_update.cpp.diff \
65                        stable/patch-kdelibs-kconf_update-kconf_update_main.cpp.diff \
66                        stable/patch-kdelibs-kconf_update-Makefile.am.diff \
67                        stable/patch-kdelibs-kdecore-kiconloader.cpp.diff \
68                        stable/patch-kdelibs-kdecore-kstandarddirs.cpp.diff \
69                        stable/patch-kdelibs-kdecore-Makefile.am.diff \
70                        stable/patch-kdelibs-kdecore-svgicons-Makefile.am.diff \
71                        stable/patch-kdelibs-kded-kbuildsycoca.cpp.diff \
72                        stable/patch-kdelibs-kded-kbuildsycoca_main.cpp.diff \
73                        stable/patch-kdelibs-kded-kded.cpp.diff \
74                        stable/patch-kdelibs-kded-kded_main.cpp.diff \
75                        stable/patch-kdelibs-kded-Makefile.am.diff \
76                        stable/patch-kdelibs-kdeprint-cups-cupsdconf2-main.cpp.diff \
77                        stable/patch-kdelibs-kdeprint-cups-cupsdconf2-Makefile.am.diff \
78                        stable/patch-kdelibs-kdeprint-cups-cupsdconf2-stub_main.cpp.diff \
79                        stable/patch-kdelibs-kdeprint-management-Makefile.am.diff \
80                        stable/patch-kdelibs-kdeui-kedittoolbar.cpp.diff \
81                        stable/patch-kdelibs-kdeui-kxmlguifactory.cpp.diff \
82                        stable/patch-kdelibs-kdeui-Makefile.am.diff \
83                        stable/patch-kdelibs-kdoctools-Makefile.am.diff \
84                        stable/patch-kdelibs-khtml-java-dummy-Makefile.am.diff \
85                        stable/patch-kdelibs-khtml-Makefile.am.diff \
86                        stable/patch-kdelibs-kimgio-Makefile.am.diff \
87                        stable/patch-kdelibs-kinit-kinit.cpp.diff \
88                        stable/patch-kdelibs-kinit-Makefile.am.diff \
89                        stable/patch-kdelibs-kinit-setproctitle.cpp.diff \
90                        stable/patch-kdelibs-kinit-wrapper.c.diff \
91                        stable/patch-kdelibs-kio-kio-kurlcompletion.cpp.diff \
92                        stable/patch-kdelibs-kio-kio-kurlcompletion.h.diff \
93                        stable/patch-kdelibs-kio-kio-lex.c.diff \
94                        stable/patch-kdelibs-kio-kssl-kopenssl.cc.diff \
95                        stable/patch-kdelibs-kio-misc-kio_uiserver_main.cpp.diff \
96                        stable/patch-kdelibs-kio-misc-kpac-kpac_dhcp_helper.c.diff \
97                        stable/patch-kdelibs-kio-misc-Makefile.am.diff \
98                        stable/patch-kdelibs-kio-misc-uiserver.cpp.diff \
99                        stable/patch-kdelibs-kioslave-file-Makefile.am.diff \
100                        stable/patch-kdelibs-kioslave-ftp-Makefile.am.diff \
101                        stable/patch-kdelibs-kioslave-http-http.cc.diff \
102                        stable/patch-kdelibs-kioslave-http-http_cache_cleaner.cpp.diff \
103                        stable/patch-kdelibs-kioslave-http-kcookiejar-Makefile.am.diff \
104                        stable/patch-kdelibs-kioslave-http-Makefile.am.diff \
105                        stable/patch-kdelibs-kioslave-http-stub_main.cpp.diff \
106                        stable/patch-kdelibs-kparts-Makefile.am.diff \
107                        stable/patch-kdelibs-kspell-Makefile.am.diff \
108                        stable/patch-kdelibs-libkmid-Makefile.am.diff \
109                        stable/patch-kdelibs-libkscreensaver-Makefile.am.diff \
110                        stable/patch-kdelibs-libltdl-ltdl.c.diff \
111                        stable/patch-kdelibs-libltdl-ltdl.m4.diff
112}
113
114variant cvs {
115                version 3.2
116                revision 0
117
118                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
119                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
120                cvs.module kdelibs
121                pre-extract {
122                        cvsfetch
123                }
124                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
125
126                distname kdelibs
127                distfiles kde-libtool-20030815.tar.bz2:admin
128                checksums kde-libtool-20030815.tar.bz2 md5 27a4e3456d9d0d0e34101b95d185df37
129
130                patchfiles \
131                        current/kdelibs.diff
132}
133
134variant aqua {
135                configure.args-append --enable-mac --without-arts
136                depends_lib-delete lib:libX11.6:XFree86
137                depends_lib-delete lib:libartsflow.1:arts
138                depends_lib-delete lib:libqt-mt.3:qt3
139                depends_lib lib:libqt-mt.3:qt3-mac
140}
141
142patch {
143                foreach patch $patchfiles {
144                        system "cd '${workpath}/${distname}' && \
145                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
146                }
147}
148post-patch      {
149                system "cd '${worksrcpath}' && if test -d ../admin; then cp -Rf ../admin/ admin; fi"
150                system "cd '${worksrcpath}' && if test -d ../libltdl; then cp -Rf ../libltdl/ libltdl; fi"
151                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
152}
153configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
154                LDFLAGS="-L/usr/X11R6/lib" LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='${prefix}/lib'
155configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
156                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
157                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
158                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
159                --libexecdir='${prefix}/lib' --with-xinerama --with-pam --disable-final \
160                --disable-dependency-tracking --enable-cups --with-ldap
161build.env       ${configure.env}
162build.target    all apidox
Note: See TracBrowser for help on using the repository browser.