blob: 99ac58d1d97cc321481162bebebdd83b389b86fa (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/upnp/upnp-1.2.1a.ebuild,v 1.3 2005/07/09 15:54:36 swegener Exp $
inherit eutils
DESCRIPTION="Intel's UPnP SDK"
HOMEPAGE="http://upnp.sourceforge.net"
SRC_URI="mirror://sourceforge/upnp/lib${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc debug"
DEPEND="sys-fs/e2fsprogs
doc? ( app-doc/doc++
app-text/tetex
app-text/ghostscript )"
S="${WORKDIR}"/lib${P}/upnp
src_compile() {
myconf=""
if use debug; then
myconf="DEBUG=1"
fi
cd ${S} &&
emake ${myconf} || die "Compile failed!"
if use doc; then
emake doc || die "Documentation generation failed!"
fi
}
src_install () {
if use debug; then
dolib.so bin/debug/libupnp.so
dolib.so bin/debug/libixml.so
dolib.so bin/debug/libthreadutil_dbg.so
else
dolib.so bin/libupnp.so
dolib.so bin/libixml.so
dolib.so bin/libthreadutil.so
fi
dodir /usr/include/upnp
insinto /usr/include/upnp
doins inc/*.h
dodoc LICENSE ../README doc/UPnP_Programming_Guide.pdf
if use doc; then
dodoc doc/ixml.pdf doc/upnpsdk.pdf
dohtml doc/html/*
fi
}
|