blob: a72566134ddc29ebba83b7c83675ef73f330f397 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Philippe Namias <pnamias@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-x11/qt-x11-2.3.1.ebuild,v 1.4 2001/08/30 15:58:35 drobbins Exp $
S=${WORKDIR}/qt-${PV}
DESCRIPTION="QT ${PV}"
SRC_URI="ftp://ftp.trolltech.com/pub/qt/source/${P}.tar.gz \
http://www.research.att.com/~leonb/objprelink/qt-configs.patch"
HOMEPAGE="http://www.trolltech.com/"
DEPEND=">=media-libs/libpng-1.0.9
>=media-libs/libmng-1.0.0
opengl? ( virtual/opengl virtual/glu )
nas? ( >=media-sound/nas-1.4.1 )
objprelink? ( dev-util/objprelink )
virtual/x11"
export QTDIR=${S}
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
cp configure configure.orig
sed -e "s:read acceptance:acceptance=yes:" configure.orig > configure
if [ "`use objprelink`" ]
then
patch -p0 < ${DISTDIR}/qt-configs.patch
fi
}
src_compile() {
export LDFLAGS="-ldl"
local myconf
if [ -z "`use opengl`" ]
then
myconf="-no-opengl"
fi
if [ "`use nas`" ]
then
myconf="${myconf} -system-nas-sound"
else
myconf="${myconf} -no-nas-sound"
fi
if [ "`use gif`" ]
then
myconf="${myconf} -gif"
fi
if [ "$DEBUG" ]
then
myconf="${myconf} -debug"
else
myconf="${myconf} -release"
fi
SYSCONF_CFLAGS="$CFLAGS" SYSCONF_CXXFLAGS="$CXXFLAGS" \
./configure -sm -thread -system-zlib -system-jpeg ${myconf} \
-system-libmng -system-libpng -gif -platform linux-g++ \
-ldl -lpthread -no-g++-exceptions || die
cd ${S}
make SYSCONF_CFLAGS="$CFLAGS" SYSCONF_CXXFLAGS="$CXXFLAGS" \
symlinks src-moc src-mt sub-src sub-tools || die
# leave out src-tools for testing !
}
src_install() {
QTBASE=/usr/X11R6/lib
cd ${S}
dodir $QTBASE/${P}
into $QTBASE/${P}
dobin bin/*
dolib.so lib/libqt.so.${PV}
dolib.so lib/libqt-mt.so.${PV}
dolib.so lib/libqutil.so.1.0.0
preplib $QTBASE/${P}
dosym libqt.so.${PV} $QTBASE/${P}/lib/libqt.so
dosym libqt-mt.so.${PV} $QTBASE/${P}/lib/libqt-mt.so
dosym libqutil.so.1.0.0 $QTBASE/${P}/lib/libqutil.so
cd ${D}${QTBASE}
ln -sf qt-x11-${PV} qt
cd ${S}
dodir ${QTBASE}/${P}/include
cp include/* ${D}${QTBASE}/${P}/include/
doman doc/man/man3/*
dodoc ANNOUNCE FAQ LICENSE.QPL MANIFEST PLATFORMS
dodoc PORTING README*
cp -af ${S}/doc/html ${D}/usr/doc/${P}
insinto /etc/env.d
doins ${FILESDIR}/90qt
}
|