# 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.4 2005/11/02 20:23:02 genstef 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 virtual/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 }