source: trunk/dports/x11/kdebase3/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: 9.2 KB
Line 
1# $Id: Portfile,v 1.22 2005/04/04 10:08:39 jkh Exp $
2
3PortSystem 1.0
4name            kdebase3
5version         3.1.2
6revision        3
7categories      x11
8maintainers     darwinports@opendarwin.org
9description     base KDE programs
10
11platforms       darwin
12master_sites    \
13                kde:stable/${version}/src \
14                http://ranger.befunk.com/fink/:admin \
15                http://ranger.befunk.com/darwin/:darwin
16extract.suffix  .tar.bz2
17use_bzip2       yes
18distname        kdebase-${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:libfreetype.6:XFree86 lib:libjpeg.62:jpeg \
22                lib:libkdecore.4:kdelibs3 lib:libmad:mad lib:libogg:libogg lib:libpng.3:libpng \
23                lib:libqt-mt.3.1:qt3 lib:libvorbis.0:libvorbis lib:libxml2.2:libxml2 \
24                lib:libX11.6:XFree86 lib:libXm.2:lesstif
25
26checksums       kdebase-${version}.tar.bz2 md5 a90feb5273e9f524a2b19d9021ece7a6 \
27                kde-admindir-20030601.tar.bz2 md5 6135f81de4b1561942be8fd31ae21297 \
28                detect-autoconf.tar.bz2 md5 1f511627496be40174169dbab4d6d78a
29
30set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"
31
32platform darwin 6 {
33                depends_lib-append      lib:libdl:dlcompat
34                depends_lib-append      lib:libpoll:poll-emulator
35}
36
37platform darwin 7 {
38                depends_lib-append      lib:libpoll:poll-emulator
39}
40
41variant darwin {
42                patchfiles \
43                        stable/patch-kdebase-kate-app-kwrite_main.cpp.diff \
44                        stable/patch-kdebase-kate-app-kwritemain.cpp.diff \
45                        stable/patch-kdebase-kate-app-Makefile.am.diff \
46                        stable/patch-kdebase-kate-lib-Makefile.am.diff \
47                        stable/patch-kdebase-kcheckpass-checkpass_pam.c.diff \
48                        stable/patch-kdebase-kcontrol-access-Makefile.am.diff \
49                        stable/patch-kdebase-kcontrol-info-info.cpp.diff \
50                        stable/patch-kdebase-kcontrol-info-info_osx.cpp.diff \
51                        stable/patch-kdebase-kcontrol-info-Makefile.am.diff \
52                        stable/patch-kdebase-kcontrol-info-memory.cpp.diff \
53                        stable/patch-kdebase-kcontrol-info-memory_osx.cpp.diff \
54                        stable/patch-kdebase-kcontrol-kcontrol-kcminit.cpp.diff \
55                        stable/patch-kdebase-kcontrol-kcontrol-kcmshell.cpp.diff \
56                        stable/patch-kdebase-kcontrol-kcontrol-main.cpp.diff \
57                        stable/patch-kdebase-kcontrol-kcontrol-Makefile.am.diff \
58                        stable/patch-kdebase-kcontrol-kcontrol-stub_main.cpp.diff \
59                        stable/patch-kdebase-kcontrol-kfontinst-configure.in.in.diff \
60                        stable/patch-kdebase-kcontrol-kfontinst-kfontinst-FontEngine.cpp.diff \
61                        stable/patch-kdebase-kdeprint-kjobviewer-Makefile.am.diff \
62                        stable/patch-kdebase-kdeprint-kprinter-Makefile.am.diff \
63                        stable/patch-kdebase-kdesktop-main.cc.diff \
64                        stable/patch-kdebase-kdesktop-Makefile.am.diff \
65                        stable/patch-kdebase-kdesktop-stub_main.cpp.diff \
66                        stable/patch-kdebase-kdm-backend-client.c.diff \
67                        stable/patch-kdebase-kdm-backend-dm.h.diff \
68                        stable/patch-kdebase-kdm-kfrontend-liloinfo.h.diff \
69                        stable/patch-kdebase-kdm-kfrontend-Makefile.am.diff \
70                        stable/patch-kdebase-kfind-Makefile.am.diff \
71                        stable/patch-kdebase-khotkeys-khotkeys-main.cpp.diff \
72                        stable/patch-kdebase-khotkeys-khotkeys-Makefile.am.diff \
73                        stable/patch-kdebase-khotkeys-khotkeys-stub_main.cpp.diff \
74                        stable/patch-kdebase-kicker-applets-launcher-Makefile.am.diff \
75                        stable/patch-kdebase-kicker-applets-lockout-Makefile.am.diff \
76                        stable/patch-kdebase-kicker-extensions-childpanel-Makefile.am.diff \
77                        stable/patch-kdebase-kicker-Makefile.am.diff \
78                        stable/patch-kdebase-kicker-menuext-kdeprint-Makefile.am.diff \
79                        stable/patch-kdebase-kicker-menuext-konsole-Makefile.am.diff \
80                        stable/patch-kdebase-kicker-menuext-prefmenu-Makefile.am.diff \
81                        stable/patch-kdebase-kicker-menuext-recentdocs-Makefile.am.diff \
82                        stable/patch-kdebase-kicker-proxy-appletproxy.cpp.diff \
83                        stable/patch-kdebase-kicker-proxy-extensionproxy.cpp.diff \
84                        stable/patch-kdebase-kicker-proxy-Makefile.am.diff \
85                        stable/patch-kdebase-kicker-proxy-stub_main.cpp.diff \
86                        stable/patch-kdebase-kicker-share-Makefile.am.diff \
87                        stable/patch-kdebase-kicker-taskmanager-Makefile.am.diff \
88                        stable/patch-kdebase-kioslave-devices-configure.in.in.diff \
89                        stable/patch-kdebase-kioslave-devices-kdedmodule-Makefile.am.diff \
90                        stable/patch-kdebase-kioslave-ldap-configure.in.in.diff \
91                        stable/patch-kdebase-kioslave-Makefile.am.diff \
92                        stable/patch-kdebase-kioslave-nfs-configure.in.in.diff \
93                        stable/patch-kdebase-kioslave-nfs-README.diff \
94                        stable/patch-kdebase-klipper-Makefile.am.diff \
95                        stable/patch-kdebase-kmenuedit-Makefile.am.diff \
96                        stable/patch-kdebase-konqueror-client-kfmclient.cc.diff \
97                        stable/patch-kdebase-konqueror-client-Makefile.am.diff \
98                        stable/patch-kdebase-konqueror-client-stub_main.cpp.diff \
99                        stable/patch-kdebase-konqueror-keditbookmarks-main.cpp.diff \
100                        stable/patch-kdebase-konqueror-keditbookmarks-Makefile.am.diff \
101                        stable/patch-kdebase-konqueror-keditbookmarks-stub_main.cpp.diff \
102                        stable/patch-kdebase-konqueror-Makefile.am.diff \
103                        stable/patch-kdebase-konqueror-shellcmdplugin-Makefile.am.diff \
104                        stable/patch-kdebase-konqueror-sidebar-Makefile.am.diff \
105                        stable/patch-kdebase-konqueror-sidebar-trees-bookmark_module-Makefile.am.diff \
106                        stable/patch-kdebase-konqueror-sidebar-trees-dirtree_module-Makefile.am.diff \
107                        stable/patch-kdebase-konqueror-sidebar-trees-history_module-history_module.h.diff \
108                        stable/patch-kdebase-konqueror-sidebar-trees-history_module-Makefile.am.diff \
109                        stable/patch-kdebase-konqueror-sidebar-trees-Makefile.am.diff \
110                        stable/patch-kdebase-konsole-konsole-konsole_grantpty.c.diff \
111                        stable/patch-kdebase-konsole-konsole-kwrited.cpp.diff \
112                        stable/patch-kdebase-konsole-konsole-main.cpp.diff \
113                        stable/patch-kdebase-konsole-konsole-Makefile.am.diff \
114                        stable/patch-kdebase-konsole-konsole-stub_main.cpp.diff \
115                        stable/patch-kdebase-ksmserver-main.cpp.diff \
116                        stable/patch-kdebase-ksmserver-Makefile.am.diff \
117                        stable/patch-kdebase-ksmserver-stub_main.cpp.diff \
118                        stable/patch-kdebase-ksysguard-configure.in.in.diff \
119                        stable/patch-kdebase-ktip-tips.diff \
120                        stable/patch-kdebase-kwin-clients-b2-Makefile.am.diff \
121                        stable/patch-kdebase-kwin-clients-default-Makefile.am.diff \
122                        stable/patch-kdebase-kwin-clients-icewm-Makefile.am.diff \
123                        stable/patch-kdebase-kwin-clients-kde1-Makefile.am.diff \
124                        stable/patch-kdebase-kwin-clients-keramik-Makefile.am.diff \
125                        stable/patch-kdebase-kwin-clients-kstep-Makefile.am.diff \
126                        stable/patch-kdebase-kwin-clients-kwmtheme-Makefile.am.diff \
127                        stable/patch-kdebase-kwin-clients-laptop-Makefile.am.diff \
128                        stable/patch-kdebase-kwin-clients-modernsystem-Makefile.am.diff \
129                        stable/patch-kdebase-kwin-clients-quartz-Makefile.am.diff \
130                        stable/patch-kdebase-kwin-clients-redmond-Makefile.am.diff \
131                        stable/patch-kdebase-kwin-clients-riscos-Makefile.am.diff \
132                        stable/patch-kdebase-kwin-clients-system-Makefile.am.diff \
133                        stable/patch-kdebase-kwin-clients-web-Makefile.am.diff \
134                        stable/patch-kdebase-kwin-kcmkwin-kwindecoration-Makefile.am.diff \
135                        stable/patch-kdebase-kwin-kcmkwin-kwinoptions-Makefile.am.diff \
136                        stable/patch-kdebase-kwin-Makefile.am.diff \
137                        stable/patch-kdebase-kxkb-kxkb.cpp.diff \
138                        stable/patch-kdebase-kxkb-Makefile.am.diff \
139                        stable/patch-kdebase-kxkb-stub_main.cpp.diff \
140                        stable/patch-kdebase-libkonq-favicons-Makefile.am.diff \
141                        stable/patch-kdebase-libkonq-Makefile.am.diff \
142                        stable/patch-kdebase-nsplugins-Makefile.am.diff \
143                        stable/patch-kdebase-nsplugins-pluginscan.cpp.diff \
144                        stable/patch-kdebase-startkde.diff
145}
146
147variant cvs {
148                version 3.2
149                revision 0
150
151                ##### THIS IS UNSUPPORTED, DO NOT USE THIS IN YOUR PORTS! #####
152                cvs.root :pserver:anonymous@anoncvs.kde.org:/home/kde
153                cvs.module kdebase
154                pre-extract cvsfetch
155                ##### I MEAN IT, LANDONF WILL KILL YOU IF YOU DO THIS! #####
156
157                distname kdebase
158                distfiles kde-admindir-cvs-20030701.tar.bz2:admin
159                checksums kde-admindir-cvs-20030701.tar.bz2 md5 b9bf2dc286d2e434c2cfdadc421c79b6
160                patchfiles current/patch-kdebase.diff
161}
162
163patch {
164                foreach patch $patchfiles {
165                        system "cd '${workpath}/${distname}' && \
166                        sed -e 's#@PREFIX@#${prefix}#g' '${portpath}/${filesdir}/${patch}' | patch -p0"
167                }
168}
169post-patch      {
170                system "cd '${worksrcpath}' && cp -Rf ../admin/ admin"
171                system "cd '${worksrcpath}' && make -f admin/Makefile.common cvs"
172}
173configure.env   CPPFLAGS='-I/usr/X11R6/include -I${prefix}/include -I${prefix}/include/qt3 -no-cpp-precomp -fno-common' \
174                LDFLAGS='-L/usr/X11R6/lib' LIBS='-L${prefix}/lib' DYLD_LIBRARY_PATH='${prefix}/lib'
175configure.args  --prefix='${prefix}' --includedir='${prefix}/include' --libdir='${prefix}/lib' \
176                --with-extra-includes='${prefix}/include' --with-extra-libs='${prefix}/lib' \
177                --with-qt-dir='${prefix}' --with-qt-includes='${prefix}/include/qt3' \
178                --enable-rpath --with-pic --enable-shared=yes --enable-static=no --enable-mt \
179                --libexecdir='${prefix}/lib' --with-xinerama --disable-final \
180                --disable-dependency-tracking --without-nfs --with-ldap --with-pam
181build.env       ${configure.env}
182build.target    all apidox
183post-destroot   {
184                system "install -d -m 755 ${destroot}/private/etc/pam.d"
185                system "cd '${worksrcpath}' && install -c -m 444 /etc/pam.d/login  ${destroot}/private/etc/pam.d/kde"
186                system "cd '${worksrcpath}' && install -c -m 444 /etc/pam.d/login  ${destroot}/private/etc/pam.d/kdm"
187                system "cd '${worksrcpath}' && install -c -m 444 /etc/pam.d/login  ${destroot}/private/etc/pam.d/kcheckpass"
188                system "cd '${worksrcpath}' && install -c -m 444 /etc/pam.d/login  ${destroot}/private/etc/pam.d/kscreensaver"
189}
Note: See TracBrowser for help on using the repository browser.