blob: f6e0a2e006253f10f6c3f8db4c26cb7b7bcfd3c5 (
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
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fltk/fltk-1.1.0_rc4.ebuild,v 1.3 2002/07/22 19:31:50 owen Exp $
MYVER=${PV/_/}
S=${WORKDIR}/${PN}-${MYVER}
DESCRIPTION="C++ user interface toolkit for X and OpenGL."
HOMEPAGE="http://www.fltk.org"
SRC_URI="ftp://ftp.easysw.com/pub/fltk/${MYVER}/${PN}-${MYVER}-source.tar.bz2"
DEPEND="media-libs/libpng
opengl? ( virtual/opengl )"
LICENSE="FLTK | GPL-2"
SLOT="0"
KEYWORDS="x86"
src_compile() {
local myconf
#shared libraries are disabled by default, so we enable them here
myconf="--enable-shared"
use opengl || myconf="$myconf --disable-gl" #default enabled
econf \
${myconf} || die "Configuration Failed"
emake || die "Parallel Make Failed"
}
src_install () {
#make prefix=${D}/usr/ \
einstall || die "Installation Failed"
dodoc CHANGES COPYING README
dodir /usr/share/doc/${PF}/html
mv ${D}/usr/share/doc/fltk/* ${D}/usr/share/doc/${PF}/html
rmdir ${D}/usr/share/doc/fltk
}
|