![Valentin Korenblit](/assets/img/avatar_default.png)
When imake is installed on the host, it tries to include freetype headers from host, so we must override ac_cv_path_IMAKE to avoid this. Extract from config.log: configure:14803: checking if we should use imake to help configure:14820: result: yes configure:14829: checking for xmkmf configure:14846: found /usr/bin/xmkmf configure:14857: result: /usr/bin/xmkmf configure:14920: testing Using /usr/bin/xmkmf ... configure:15015: testing IMAKE_CFLAGS -I. -I/usr/include/freetype2 Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr> [Thomas: pass ac_cv_path_IMAKE="" as suggested by Romain Naour.] Reviewed-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 lines
982 B
Makefile
36 lines
982 B
Makefile
################################################################################
|
|
#
|
|
# xterm
|
|
#
|
|
################################################################################
|
|
|
|
XTERM_VERSION = 327
|
|
XTERM_SOURCE = xterm-$(XTERM_VERSION).tgz
|
|
XTERM_SITE = http://invisible-mirror.net/archives/xterm
|
|
XTERM_DEPENDENCIES = ncurses xlib_libXaw host-pkgconf
|
|
XTERM_LICENSE = MIT
|
|
XTERM_LICENSE_FILES = version.c
|
|
XTERM_CONF_OPTS = --enable-256-color \
|
|
--x-includes=$(STAGING_DIR)/usr/include \
|
|
--x-libraries=$(STAGING_DIR)/usr/lib
|
|
|
|
# Avoid freetype2 path poisoning by imake
|
|
XTERM_CONF_ENV = ac_cv_path_IMAKE=""
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
|
|
XTERM_DEPENDENCIES += xlib_libXft
|
|
XTERM_CONF_OPTS += --enable-freetype \
|
|
--with-freetype-config=auto
|
|
else
|
|
XTERM_CONF_OPTS += --disable-freetype
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
|
XTERM_DEPENDENCIES += xlib_libXinerama
|
|
XTERM_CONF_OPTS += --with-xinerama
|
|
else
|
|
XTERM_CONF_OPTS += --without-xinerama
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|