/[gentoo-alt]/trunk/overlay/net-misc/upnp/upnp-1.2.1a.ebuild
Gentoo

Contents of /trunk/overlay/net-misc/upnp/upnp-1.2.1a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 842 - (show annotations) (download)
Wed Oct 19 18:36:57 2005 UTC (8 years, 10 months ago) by flameeyes
File size: 1515 byte(s)
Added upnp patched to work on FreeBSD.
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/upnp/upnp-1.2.1a.ebuild,v 1.3 2005/07/09 15:54:36 swegener Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_P="lib${P}"
8
9 DESCRIPTION="Intel's UPnP SDK"
10 HOMEPAGE="http://upnp.sourceforge.net"
11 SRC_URI="mirror://sourceforge/upnp/${MY_P}.tar.gz"
12 RESTRICT="nomirror"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
16 IUSE="doc debug"
17
18 DEPEND="sys-fs/e2fsprogs
19 doc? ( app-doc/doc++
20 app-text/tetex
21 virtual/ghostscript )"
22
23 S="${WORKDIR}/${MY_P}/upnp"
24
25 src_unpack() {
26 unpack ${A}
27 cd ${S}/..
28
29 epatch "${FILESDIR}/${MY_P}-gcc4.patch"
30 epatch "${FILESDIR}/${MY_P}-fbsd.patch"
31 }
32
33 src_compile() {
34 myconf=""
35
36 if use debug; then
37 myconf="DEBUG=1"
38 fi
39
40 # Fix for distcc/crosscompile, and make sure it doesn't strip
41 emake ${myconf} \
42 CC=$(tc-getCC) \
43 AR=$(tc-getAR) \
44 LD=$(tc-getLD) \
45 STRIP=true \
46 || die "Compile failed!"
47
48 if use doc; then
49 emake doc || die "Documentation generation failed!"
50 fi
51 }
52
53 src_install () {
54 if use debug; then
55 dolib.so bin/debug/libupnp.so
56 dolib.so bin/debug/libixml.so
57 dolib.so bin/debug/libthreadutil_dbg.so
58 else
59 dolib.so bin/libupnp.so
60 dolib.so bin/libixml.so
61 dolib.so bin/libthreadutil.so
62 fi
63
64 dodir /usr/include/upnp
65 insinto /usr/include/upnp
66 doins inc/*.h
67
68 dodoc LICENSE ../README doc/UPnP_Programming_Guide.pdf
69 if use doc; then
70 dodoc doc/ixml.pdf doc/upnpsdk.pdf
71 dohtml doc/html/*
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20