View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/media-libs/libsdl/libsdl-1.2.11-r1.ebuild (-19 / +24 lines)
 Lines 1-8    Link Here 
# Copyright 1999-2007 Gentoo Foundation
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.11-r1.ebuild,v 1.5 2007/03/05 16:47:11 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.11-r1.ebuild,v 1.4 2007/02/13 14:24:10 gustavoz Exp $
inherit flag-o-matic toolchain-funcs eutils libtool
inherit flag-o-matic toolchain-funcs eutils libtool
DESCRIPTION="Simple Direct Media Layer"
DESCRIPTION="Simple Direct Media Layer"
HOMEPAGE="http://www.libsdl.org/"
HOMEPAGE="http://www.libsdl.org/"
 Lines 74-103    Link Here 
	epatch "${FILESDIR}"/${P}-libcaca-new-api.patch #40224
	epatch "${FILESDIR}"/${P}-libcaca-new-api.patch #40224
	epatch "${FILESDIR}"/${P}-sdl-config.patch
	epatch "${FILESDIR}"/${P}-sdl-config.patch
	epatch "${FILESDIR}"/${P}-xinerama-head-0.patch #145917
	epatch "${FILESDIR}"/${P}-xinerama-head-0.patch #145917
	epatch "${FILESDIR}"/${P}-no-inline-BlitRGBtoRGBPixelAlphaMMX3DNOW.patch #148186
	epatch "${FILESDIR}"/${P}-no-inline-BlitRGBtoRGBPixelAlphaMMX3DNOW.patch #148186
	epatch "${FILESDIR}"/${P}-audioConv.patch #151991
	epatch "${FILESDIR}"/${P}-audioConv.patch #151991
	epatch "${FILESDIR}"/${P}-no-yasm.patch #169388
	epatch "${FILESDIR}"/${P}-fbcon-page-header.patch #159923 #169388
	epatch "${FILESDIR}"/${P}-fbcon-page-header.patch #159923 #169388
	epatch "${FILESDIR}"/${P}-dont-propagate-lpthread.patch #Fixes Debian bug #401950 and Debian bug #380508
	epatch "${FILESDIR}"/${P}-supermount-double-free-issue.patch #Fixes Debian bug #375822
	# add yasm-compatible defines to nasm code (hopefully we
	#We're using NASM
	# can get this killed soonish)
	## add yasm-compatible defines to nasm code (hopefully we
	local f
	## can get this killed soonish)
	for f in "${S}"/src/hermes/*.asm ; do
	#local f
		cat <<-EOF >> "${f}"
	#for f in "${S}"/src/hermes/*.asm ; do
		%ifidn __YASM_OBJFMT__,elf
	#	cat <<-EOF >> "${f}"
		section ".note.GNU-stack" noalloc noexec nowrite progbits
	#	%ifidn __YASM_OBJFMT__,elf
		%endif
	#	section ".note.GNU-stack" noalloc noexec nowrite progbits
		EOF
	#	%endif
	done
	#	EOF
	#done
	# yasm does not understand -i
	# bug #147201
	#we're using NASM
	sed -i \
	## yasm does not understand -i
		-e 's:NASMFLAGS -i:NASMFLAGS -I:' \
	## bug #147201
		configure.in \
	#sed -i \
		|| die "sed failed"
	#	-e 's:NASMFLAGS -i:NASMFLAGS -I:' \
	#	configure.in \
	#	|| die "sed failed"
	#
	./autogen.sh || die "autogen failed"
	./autogen.sh || die "autogen failed"
	elibtoolize
	elibtoolize
}
}
src_compile() {
src_compile() {