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

Collapse All | Expand All

(-)/usr/portage/dev-libs/libnsfb/libnsfb-9999.ebuild (-7 / +13 lines)
Lines 14-27 Link Here
14
LICENSE="MIT"
14
LICENSE="MIT"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS=""
16
KEYWORDS=""
17
IUSE="static-libs"
17
IUSE="static-libs sdl vnc xcb"
18
18
19
RDEPEND="media-libs/libsdl
19
RDEPEND="sdl? ( media-libs/libsdl )
20
	net-libs/libvncserver
20
	vnc? ( net-libs/libvncserver )
21
	x11-libs/libxcb
21
	xcb? ( x11-libs/libxcb x11-libs/xcb-util x11-libs/xcb-util-image x11-libs/xcb-util-keysyms )"
22
	x11-libs/xcb-util
23
	x11-libs/xcb-util-image
24
	x11-libs/xcb-util-keysyms"
25
DEPEND="${RDEPEND}
22
DEPEND="${RDEPEND}
26
	virtual/pkgconfig"
23
	virtual/pkgconfig"
27
24
Lines 46-51 Link Here
46
	echo "Q := " >> Makefile.config.override
43
	echo "Q := " >> Makefile.config.override
47
	echo "CC := $(tc-getCC)" >> Makefile.config.override
44
	echo "CC := $(tc-getCC)" >> Makefile.config.override
48
	echo "AR := $(tc-getAR)" >> Makefile.config.override
45
	echo "AR := $(tc-getAR)" >> Makefile.config.override
46
47
	# replace auto-detection by USE flags for sdl, vnc, and xcb
48
	local u a=available n=NSFB_
49
	for u in VNC SDL XCB
50
	do
51
		use ${u,,} && eval $u=yes
52
		sed -e "/$a,$n$u/s+\(^.*$\)+#\1\n$n${u}_${a^^} := ${!u:-no}+" \
53
			-i Makefile || die
54
	done
49
}
55
}
50
56
51
src_compile() {
57
src_compile() {

Return to bug 458978