summaryrefslogtreecommitdiff
blob: 52a10fd4504d8180e12bb34effc264586f2238df (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/net-www/konqueror-embedded/konqueror-embedded-20010207.build,v 1.1 2001/02/15 21:45:22 achim Exp $

A=${PN}-snapshot.tar.gz
S=${WORKDIR}/${PN}-snapshot
DESCRIPTION=""
SRC_URI="http://devel-home.kde.org/~hausmann/${A}"
HOMEPAGE="http://www.kde.org"

src_compile() {

    local myconf
    if [ "`use qt-embedded`" ]
    then
      export QTDIR=/opt/qt-embedded
      export PATH=$QTDIR/bin:$PATH
      export LDFLAGS="-L/usr/lib -lmng -ljpeg"
      myconf="--enable-qt-embedded --enable-static --disable-shared --prefix=/usr/embedded"
    else
      export QTDIR=/usr/X11R6/lib/qt
      myconf="--prefix=/usr/X11R6"
    fi
    try ./configure ${myconf} --host=${CHOST} \
	--with-qt-dir=$QTDIR \
	--with-ssl-dir=/usr
    try make

}

src_install () {

    try make DESTDIR=${D} install
    if [ "`use qt-embedded`" ]
    then
      dodir /usr/embedded/bin
      mv ${D}/usr/embedded/konq* ${D}/usr/embedded/bin
    else
      dodir /usr/X11R6/bin
      mv ${D}/usr/X11R6/konq* ${D}/usr/X11R6/bin
    fi

}