/[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.3 Revision 1.4
1# Copyright 1999-2012 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.3 2012/03/03 15:41:53 maekke 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
6inherit eutils toolchain-funcs multilib 6inherit eutils toolchain-funcs multilib
7 7
8DESCRIPTION="An alternative protocol to UPnP IGD specification." 8DESCRIPTION="An alternative protocol to UPnP IGD specification"
9HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html" 9HOMEPAGE="http://miniupnp.free.fr/libnatpmp.html"
10SRC_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"
11 11
12LICENSE="BSD" 12LICENSE="BSD"
13SLOT="0" 13SLOT="0"
15IUSE="static-libs" 15IUSE="static-libs"
16 16
17src_prepare() { 17src_prepare() {
18 epatch "${FILESDIR}"/respect-FLAGS.patch 18 epatch "${FILESDIR}"/respect-FLAGS.patch
19 epatch "${FILESDIR}"/respect-libdir.patch 19 epatch "${FILESDIR}"/respect-libdir.patch
20 use !static-libs && epatch "${FILESDIR}"/remove-static-lib.patch 20 use static-libs || epatch "${FILESDIR}"/remove-static-lib.patch
21} 21 tc-export CC
22
23src_compile() {
24 emake CC="$(tc-getCC)"
25} 22}
26 23
27src_install() { 24src_install() {
28 emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install 25 emake PREFIX="${D}" GENTOO_LIBDIR="$(get_libdir)" install
29 26

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

  ViewVC Help
Powered by ViewVC 1.1.20