initial commit
This commit is contained in:
50
media-libs/sdl-net/sdl-net-1.2.7-r9999.ebuild
Normal file
50
media-libs/sdl-net/sdl-net-1.2.7-r9999.ebuild
Normal file
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-net/sdl-net-1.2.7.ebuild,v 1.13 2010/07/27 00:52:41 mr_bones_ Exp $
|
||||
|
||||
# Pinkbyte: needed for eautoreconf, epatch
|
||||
inherit autotools eutils
|
||||
#
|
||||
|
||||
EAPI=2
|
||||
MY_P=${P/sdl-/SDL_}
|
||||
DESCRIPTION="Simple Direct Media Layer Network Support Library"
|
||||
HOMEPAGE="http://www.libsdl.org/projects/SDL_net/index.html"
|
||||
SRC_URI="http://www.libsdl.org/projects/SDL_net/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="ipv6 static-libs"
|
||||
|
||||
DEPEND=">=media-libs/libsdl-1.2.5"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
# Pinkbyte: patch for IPv6
|
||||
use ipv6 && epatch "${FILESDIR}/${P}-ipv6-new.patch"
|
||||
|
||||
# epatch "${FILESDIR}/1-additional-sdlnet-tcp.patch"
|
||||
# epatch "${FILESDIR}/2-additional-revert-chat-cpp.patch"
|
||||
# epatch "${FILESDIR}/3-sdlnet-h.patch"
|
||||
# epatch "${FILESDIR}/4-sdlnet-c.patch"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-dependency-tracking \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable ipv6)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
dodoc CHANGES README
|
||||
if ! use static-libs ; then
|
||||
find "${D}" -type f -name '*.la' -exec rm {} + \
|
||||
|| die "la removal failed"
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user