Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 442740 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +16 lines)
Line  Link Here
0
-- media-libs/glfw/glfw-2.6.ebuild
0
++ media-libs/glfw/glfw-2.6.ebuild
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/glfw/glfw-2.6.ebuild,v 1.7 2012/10/18 20:35:22 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/glfw/glfw-2.6.ebuild,v 1.7 2012/10/18 20:35:22 mr_bones_ Exp $
4
4
5
EAPI=2
5
EAPI=2
6
inherit eutils multilib
6
inherit eutils multilib toolchain-funcs
7
7
8
DESCRIPTION="The Portable OpenGL FrameWork"
8
DESCRIPTION="The Portable OpenGL FrameWork"
9
HOMEPAGE="http://glfw.sourceforge.net/"
9
HOMEPAGE="http://glfw.sourceforge.net/"
Lines 25-32 Link Here
25
		-e "s:\"docs/:\"/usr/share/doc/${PF}/pdf/:" \
25
		-e "s:\"docs/:\"/usr/share/doc/${PF}/pdf/:" \
26
		readme.html \
26
		readme.html \
27
		|| die "sed failed"
27
		|| die "sed failed"
28
29
	# respect cflags
30
	sed -i \
31
		-e "/CFLAGS/s#-Os#${CFLAGS}#" \
32
		compile.sh \
33
		|| die "sed compile.sh failed"
34
28
	epatch "${FILESDIR}/${P}"-dyn.patch \
35
	epatch "${FILESDIR}/${P}"-dyn.patch \
29
		"${FILESDIR}"/${P}-ldflags.patch
36
		"${FILESDIR}"/${P}-ldflags.patch
37
38
	# respect cflags in linking command as well
39
	sed -i \
40
		-e "/^libglfw.so/{n;s/\$(CC)/\$(CC) ${CFLAGS}/;}" \
41
		lib/x11/Makefile.x11.in \
42
		|| die "sed Makefile.x11.in failed"
30
}
43
}
31
44
32
src_configure() {
45
src_configure() {
Lines 34-40 Link Here
34
}
47
}
35
48
36
src_compile() {
49
src_compile() {
37
	emake -C lib/x11 PREFIX=/usr -f Makefile.x11 default libglfw.pc || die "emake failed"
50
	emake -C lib/x11 CC=$(tc-getCC) PREFIX=/usr -f Makefile.x11 default libglfw.pc || die "emake failed"
38
}
51
}
39
52
40
src_install() {
53
src_install() {

Return to bug 442740