/[gentoo-x86]/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild
Gentoo

Diff of /net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild,v 1.1 2011/12/17 13:58:05 blueness Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-libs/libnatpmp/libnatpmp-20110808-r1.ebuild,v 1.4 2012/03/09 03:48:22 vapier Exp $
4 4
5EAPI=4 5EAPI=4
6
7inherit eutils toolchain-funcs multilib 6inherit eutils toolchain-funcs multilib
8 7
9DESCRIPTION="An alternative protocol to UPnP IGD specification." 8DESCRIPTION="An alternative protocol to UPnP IGD specification"
10HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html" 9HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
11SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz" 10SRC_URI="http://miniupnp.free.fr/files/download.php?file=${P}.tar.gz -> ${P}.tar.gz"
12 11
13LICENSE="BSD" 12LICENSE="BSD"
14SLOT="0" 13SLOT="0"
15KEYWORDS="~amd64 ~x86" 14KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
16IUSE="static-libs" 15IUSE="static-libs"
17
18DEPEND=""
19RDEPEND="${DEPEND}"
20 16
21src_prepare() { 17src_prepare() {
22 epatch "${FILESDIR}"/respect-FLAGS.patch 18 epatch "${FILESDIR}"/respect-FLAGS.patch
23 epatch "${FILESDIR}"/respect-libdir.patch 19 epatch "${FILESDIR}"/respect-libdir.patch
24 use !static-libs && epatch "${FILESDIR}"/remove-static-lib.patch 20 use static-libs || epatch "${FILESDIR}"/remove-static-lib.patch
25} 21 tc-export CC
26
27src_compile() {
28 emake CC="$(tc-getCC)"
29} 22}
30 23
31src_install() { 24src_install() {
32 emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install 25 emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
33 26

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20