From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 1/1] xterm: x-includes and x-libraries must be set for cross-compiling
Date: Sun, 26 Jul 2015 21:37:41 +0200 [thread overview]
Message-ID: <55B53705.7010703@openwide.fr> (raw)
In-Reply-To: <20150726175949.GI3770@free.fr>
Hi Mikhail, Yann, All,
Le 26/07/2015 19:59, Yann E. MORIN a ?crit :
> Mikhail, All,
>
> On 2015-07-26 20:46 +0300, kyak spake thusly:
>> 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 patch does two things: add x-includes, x-libraries and add freetype2
dependency.
It would be good to split these changes in two different patches.
>>
>> 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>
>
> The From filed does not match your Signed-off-by; please fix your git
> config with:
>
> git config --global user.name 'Mikhail Peselnik'
> git config --global user.email 'bas at 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
>
> This should be a 'select' rather than a 'depends on'.
In not sure about select. There is a --disable-freetype option, see below.
>
>> 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 \
>
> I guess this should instead be: -I$(STAGING_DIR)/usr/include
>
>> + --with-freetype-libs=$(STAGING_DIR)/usr/lib
>
> And this: -L$(STAGING_DIR)/usr/lib
>
> You may also want to add:
>
> --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
Maybe something like this (untested):
ifeq ($(BR2_PACKAGE_FREETYPE),y)
XTERM_CONF_OPTS += --with-freetype-config="$(STAGING_DIR)/usr/bin/freetype-config" \
--with-freetype-cflags="-I$(STAGING_DIR)/usr/include" \
--with-freetype-libs="-L$(STAGING_DIR)/usr/lib"
else
XTERM_CONF_OPTS += --disable-freetype
endif
But it you think that freetype must always be selected, this is ok.
Thoughts ?
Best regards,
Romain Naour
>
> Regards,
> Yann E. MORIN.
>
>> $(eval $(autotools-package))
>> --
>> 2.4.6
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>
next prev parent reply other threads:[~2015-07-26 19:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B53705.7010703@openwide.fr \
--to=romain.naour@openwide.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox