1 |
xmw 13/02/27 08:00:55 |
2 |
|
3 |
Added: libnsfb-0.0.2-autodetect.patch |
4 |
Log: |
5 |
Add use flags sdl, vnx, xcb (thanks a.m@××××××××.hu, bug 458978). Restore cross-compile functionality (thanks James Le Cuirot, bug 431884) |
6 |
|
7 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 62EEF090) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-libs/libnsfb/files/libnsfb-0.0.2-autodetect.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libnsfb/files/libnsfb-0.0.2-autodetect.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libnsfb/files/libnsfb-0.0.2-autodetect.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: libnsfb-0.0.2-autodetect.patch |
16 |
=================================================================== |
17 |
Michael Weber https://bugs.gentoo.org/458978 |
18 |
|
19 |
--- libnsfb-0.0.2/Makefile |
20 |
+++ libnsfb-0.0.2/Makefile |
21 |
@@ -20,9 +20,17 @@ |
22 |
|
23 |
NSFB_XCB_PKG_NAMES := xcb xcb-icccm xcb-image xcb-keysyms |
24 |
|
25 |
+ifndef NSFB_VNC_AVAILABLE |
26 |
$(eval $(call pkg_config_package_available,NSFB_VNC_AVAILABLE,libvncserver)) |
27 |
+endif |
28 |
+ |
29 |
+ifndef NSFB_SDL_AVAILABLE |
30 |
$(eval $(call pkg_config_package_available,NSFB_SDL_AVAILABLE,sdl)) |
31 |
+endif |
32 |
+ |
33 |
+ifndef NSFB_XCB_AVAILABLE |
34 |
$(eval $(call pkg_config_package_available,NSFB_XCB_AVAILABLE,$(NSFB_XCB_PKG_NAMES))) |
35 |
+endif |
36 |
|
37 |
ifeq ($(NSFB_SDL_AVAILABLE),yes) |
38 |
$(eval $(call pkg_config_package_add_flags,sdl,CFLAGS)) |
39 |
@@ -63,7 +71,10 @@ |
40 |
|
41 |
REQUIRED_PKGS := $(REQUIRED_PKGS) $(NSFB_XCB_PKG_NAMES) |
42 |
|
43 |
+ ifndef NSFB_XCB_UTIL_AVAILABLE |
44 |
$(eval $(call pkg_config_package_available,NSFB_XCB_UTIL_AVAILABLE,xcb-util)) |
45 |
+ endif |
46 |
+ |
47 |
ifeq ($(NSFB_XCB_UTIL_AVAILABLE),yes) |
48 |
REQUIRED_PKGS := $(REQUIRED_PKGS) xcb-util |
49 |
endif |