Magellan Linux

Contents of /trunk/extras/kdelibs/kdelibs-3.5.10-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5592 - (show annotations) (download)
Wed Jul 7 07:18:51 2010 UTC (13 years, 10 months ago) by niro
File size: 2575 byte(s)
-fixed missing openexr dependency
1 # $Id$
2
3 PNAME="kdelibs"
4 PVER="3.5.10"
5 PBUILD="r6"
6
7 PCATEGORIE="kde-base"
8 STATE="unstable"
9
10 DESCRIPTION="KDE core libraries."
11 HOMEPAGE="http://www.kde.org/"
12
13 DEPEND=">= app-arch/bzip2-1.0.5
14 >= dev-libs/libxslt-1.1.26
15 >= dev-libs/libxml2-2.7
16 >= dev-libs/libpcre-8.0
17 >= dev-libs/openssl-0.9.8
18 >= media-libs/alsa-lib-1.0.21
19 >= net-print/cups-1.4
20 >= media-libs/libtiff-3.9
21 >= media-libs/libjasper-1.900
22 >= media-libs/openexr-1.6
23 >= app-admin/fam-2.7.0
24 >= app-text/ghostscript-gpl-8
25 >= media-libs/libart_lgpl-2.3.20
26 >= kde-base/arts-${PVER/3/1}
27 >= x11-libs/qt-3.3.8
28 >= net-dns/libidn-1.15
29 >= app-text/aspell-0.60
30 >= net-dns/avahi-qt3-0.6.25
31 >= net-libs/openslp-1.2
32 >= kde-base/kde-env-${PVER}"
33
34 SDEPEND=">= sys-dev/automake-4
35 >= sys-dev/autoconf-5
36 >= sys-dev/gettext-0.17"
37
38 SRCFILE="${PNAME}-${PVER}.tar.bz2"
39 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40
41 sminclude kde3
42
43 SRC_URI=(
44 kde://${PVER}/src/${SRCFILE}
45 mirror://${PNAME}/${SRCFILE}
46 mirror://${PNAME}/${PNAME}-3.5.8-xinerama-improvements.patch
47 mirror://${PNAME}/${PNAME}-${PVER}-fix-flock-redefinition.patch
48 )
49
50 src_prepare()
51 {
52 munpack ${SRCFILE} || die
53 cd ${SRCDIR}
54
55 # improved xinerama support (see http://ktown.kde.org/~seli/xinerama/)
56 mpatch ${PNAME}-3.5.8-xinerama-improvements.patch || die
57
58 # fix compilation with gcc-4.3 and newer linux-headers
59 mpatch ${PNAME}-${PVER}-fix-flock-redefinition.patch || die
60 }
61
62 src_compile()
63 {
64 cd ${SRCDIR}
65
66 # enable fast-malloc only on i*86
67 local my_opts="--disable-fast-malloc"
68
69 # now always disabled; doesn't work with >=glib2-2.9.1 correctly
70 # http://linuxfromscratch.org/pipermail/blfs-support/2006-May/059637.html
71 #
72 #[[ ${ARCH} = i*86 ]] && my_opts=--enable-fast-malloc=full
73
74 # --disable-dnssd to enable avahi
75 kde3_configure \
76 --with-distribution=Magellan \
77 --with-ssl-dir=/usr \
78 --with-alsa \
79 --with-arts \
80 --enable-libfam \
81 --enable-dnotify \
82 --enable-cups \
83 --enable-aspell \
84 --enable-dnssd \
85 ${my_opts} \
86 || die
87
88 mmake || die
89 }
90
91 src_install()
92 {
93 cd ${SRCDIR}
94
95 # needed directories
96 install -d ${BINDIR}/etc/xdg/kde || die
97
98 mmake DESTDIR=${BINDIR} install || die
99
100 # fix freedesktop menu structure
101 # move them to /etc/xdg/kde to prevent broken gnome-menus
102 mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die
103 }
104
105 postinstall()
106 {
107 echo
108 echo "To have full zeroconf support with kde,"
109 echo "make sure the avahi daemons are running."
110 echo "Also multicast dns host lookups should be"
111 echo "enabled in '/etc/nsswitch.conf'."
112 echo "e.g: ipv6 'hosts: files mdns dns'"
113 echo "or for ipv4 'hosts: files mdns4 dns'"
114 echo
115 }

Properties

Name Value
svn:keywords Id