summaryrefslogtreecommitdiffstats
path: root/kde3/kdelibs3/Pkgfile
blob: 1cda1bfcf0bc09b767187b4ff69bf29ef88e8768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Description: Jeu de librairies pour l'interface graphique KDE version 3
# URL: http://www.kde.org
# Maintainer: NuTyX coreteam
# Packager: thierryn1 at hispeed dot ch
# Depends on: imagemagick, acl, jasper, perl, libmad, libao, aspell, esound, qt3-devel, arts, audiofile, libcups, hicolor-icon-theme, dbus-qt3, libart_lgpl, openexr

name=kdelibs3
version=3.5.10
release=4
localname=kdelibs
source=(http://mirrors.isc.org/pub/kde/stable/3.5.10/src/kdelibs-$version.tar.bz2\
        http://nutyx.meticul.eu/files/patchs/$name/kdelibs-3.5.10-gcc44-1.patch \
	http://nutyx.meticul.eu/files/patchs/$name/kdelibs-3.5.10-openssl-1.patch \
	http://nutyx.meticul.eu/files/patchs/$name/kdelibs-3.5.10-gcc45-1.patch \
	http://nutyx.meticul.eeu/files/patchs/$name/NuTyX_logo_attapu.png \
        http://www.linuxfromscratch.org/patches/blfs/svn/kdelibs-3.5.10-charset-1.patch)

build() {
	source /etc/profile
        cd kdelibs-$version
        patch -Np1 -i ../kdelibs-3.5.10-gcc44-1.patch
	patch -Np1 -i ../kdelibs-3.5.10-gcc45-1.patch
	patch -Np1 -i ../kdelibs-3.5.10-openssl-1.patch
        patch -Np1 -i ../kdelibs-3.5.10-charset-1.patch
        sed -i -e 's|linux/inotify|sys/inotify|' \
         -e '/^static inline int inotify_init/,/^}/d' \
         -e '/^static inline int inotify_add_watch/,/^}/d' \
         -e '/^static inline int inotify_rm_watch/,/^}/d' kio/kio/kdirwatch.cpp
        ./configure     --prefix=/opt/kde \
                --disable-debug \
                --disable-dnotify \
                --disable-dnssd \
                --without-lua \
                --without-hspell \
                --enable-gcc-hidden-visibility \
                --disable-libfam \
                --disable-dependency-tracking \
                --sysconfdir=/etc/kde3  \
                --enable-new-ldflags LDFLAGS="${LDFLAGS} -L/opt/qt/lib" \
                --enable-final
        LD_LIBRARY_PATH="$QTDIR/lib" make
        make DESTDIR=$PKG install
	for i in 16 22 32 48 64 128
	do
		convert $SRC/NuTyX_logo_attapu.png -resize $i $PKG/opt/kde/share/icons/crystalsvg/${i}x${i}/apps/kmenu.png
        done
	rm -rf $PKG/usr/share/icons/hicolor/index.theme $PKG/usr/include/ltdl.h
}