1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs multilib
8 DESCRIPTION="An alternative protocol to UPnP IGD specification"
9 HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
10 SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
18 epatch "${FILESDIR}"/respect-FLAGS-20140401.patch
19 epatch "${FILESDIR}"/respect-libdir-20120821.patch
20 use static-libs || epatch "${FILESDIR}"/remove-static-lib-20130911.patch
25 # Override HEADERS for missing declspec.h wrt #506832
26 emake HEADERS='declspec.h natpmp.h' PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
28 dodoc Changelog.txt README