Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCHv2 1/1] xterm: x-includes and x-libraries must be set for cross-compiling
@ 2015-07-26 17:46 kyak
  2015-07-26 17:59 ` Yann E. MORIN
  2015-07-26 19:47 ` Thomas Petazzoni
  0 siblings, 2 replies; 9+ messages in thread
From: kyak @ 2015-07-26 17:46 UTC (permalink / raw)
  To: buildroot

From: Mikhail Peselnik <bas@bmail.ru>

These flags need to be set so that the configure script would
correctly use libICE from cross-toolchain rather than from host.
Also, the xterm package is missing the freetype2 dependency, as
noted by Romain Naour.

This fix is similar to "package/efl/libevas: x-includes and x-libraries
must be set for cross-compiling" done by Romain Naour on libecore.

Signed-off-by: Mikhail Peselnik <bas@bmail.ru>
---
 package/xterm/Config.in | 1 +
 package/xterm/xterm.mk  | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/xterm/Config.in b/package/xterm/Config.in
index e17d2c6..f549df4 100644
--- a/package/xterm/Config.in
+++ b/package/xterm/Config.in
@@ -4,6 +4,7 @@ config BR2_PACKAGE_XTERM
 	select BR2_PACKAGE_XLIB_LIBXAW
 	depends on BR2_PACKAGE_XORG7
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_PACKAGE_FREETYPE
 	help
 	  xterm terminal emulator
 
diff --git a/package/xterm/xterm.mk b/package/xterm/xterm.mk
index 56f692d..f7a332d 100644
--- a/package/xterm/xterm.mk
+++ b/package/xterm/xterm.mk
@@ -10,6 +10,9 @@ XTERM_SITE = ftp://invisible-island.net/xterm
 XTERM_DEPENDENCIES = ncurses xlib_libXaw
 XTERM_LICENSE = MIT
 XTERM_LICENSE_FILES = version.c
-XTERM_CONF_OPTS = --enable-256-color
-
+XTERM_CONF_OPTS = --enable-256-color \
+	--x-includes=$(STAGING_DIR)/usr/include \
+	--x-libraries=$(STAGING_DIR)/usr/lib \
+	--with-freetype-cflags=$(STAGING_DIR)/usr/include \
+	--with-freetype-libs=$(STAGING_DIR)/usr/lib
 $(eval $(autotools-package))
-- 
2.4.6

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-27 14:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-26 17:46 [Buildroot] [PATCHv2 1/1] xterm: x-includes and x-libraries must be set for cross-compiling kyak
2015-07-26 17:59 ` Yann E. MORIN
2015-07-26 19:37   ` Romain Naour
2015-07-26 19:44   ` Thomas Petazzoni
2015-07-26 20:02     ` Yann E. MORIN
2015-07-26 19:47 ` Thomas Petazzoni
2015-07-26 21:03   ` Romain Naour
2015-07-26 21:25     ` Thomas Petazzoni
2015-07-27 14:49       ` Romain Naour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox