summaryrefslogtreecommitdiff
blob: 214a5fd1d541fbc6b40f4ad39ce92c8ffe6ecfce (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
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jules Gagnon <eonwe@users.sourceforge.net>
# $Header: /var/cvsroot/gentoo-x86/net-im/licq/licq-1.0.3-r1.ebuild,v 1.3 2001/08/30 17:31:35 pm Exp $


A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="licq"
SRC_URI="http://download.sourceforge.net/${PN}/${A}
	 ftp://ftp.fanfic.org/pub/${PN}/srcs/${A}
	 ftp://licq.darkorb.net/${A}
	 ftp://ftp.fr.licq.org/pub/${PN}/srcs/${A}
	 ftp://ftp.ru.licq.org/pub/${PN}/srcs/${A}
	 ftp://ftp.pt.licq.org/pub/mirrors/${PN}/srcs/${A}
	 ftp://mirror.itcnet.ro/pub/${PN}/srcs/${A}"
HOMEPAGE="http://www.licq.org"

DEPEND="virtual/glibc ssl? ( >=dev-libs/openssl-0.9.6 )
        qt? ( >=x11-libs/qt-x11-2.2.1 )"

src_unpack() {
  unpack ${A}
  cd ${S}
}

src_compile() {                           
  local myconf
  if [ -z "`use ssl`" ]
  then
    myconf="--disable-openssl"
  fi
  if [ "`use socks5`" ]
  then
    myconf="${myconf} --enable-socks5"
  fi
  try ./configure --host=${CHOST} --prefix=/usr ${myconf}
  try make
  if [ "`use qt`" ]
  then
    cd ./plugins/qt-gui-1.0.3
    try ./configure --host=${CHOST} --prefix=/usr
    try make
    cd ../..
  fi
}

src_install() { 
  try make prefix=${D}/usr install
  dodoc README.OPENSSL doc/*
  if [ "`use qt`" ]
  then
    cd ./plugins/qt-gui-1.0.3
    try make prefix=${D}/usr install
    cd ../..
  fi
}