2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-01-29 19:20:59 +01:00
|
|
|
#
|
|
|
|
# gpm
|
|
|
|
#
|
2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-01-29 19:20:59 +01:00
|
|
|
|
|
|
|
GPM_VERSION = 1.20.7
|
|
|
|
GPM_SOURCE = gpm-$(GPM_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
GPM_SITE = http://www.nico.schottelius.org/software/gpm/archives
|
2014-01-29 19:20:59 +01:00
|
|
|
GPM_LICENSE = GPLv2+
|
|
|
|
GPM_LICENSE_FILES = COPYING
|
|
|
|
GPM_INSTALL_STAGING = YES
|
2014-02-05 13:41:18 +01:00
|
|
|
GPM_DEPENDENCIES = host-bison
|
2014-01-29 19:20:59 +01:00
|
|
|
|
|
|
|
# if not already installed in staging dir, gpm Makefile may fail to find some
|
|
|
|
# of the headers needed to generate build dependencies, the first time it is
|
|
|
|
# built. CPPFLAGS is used to pass the right include path to dependency rules.
|
2015-02-27 13:20:00 +01:00
|
|
|
GPM_CONF_ENV = CPPFLAGS="$(TARGET_CPPFLAGS) -I$(@D)/src/headers/" \
|
|
|
|
ac_cv_path_emacs=no
|
2014-01-29 19:20:59 +01:00
|
|
|
|
2014-05-17 11:50:21 +02:00
|
|
|
# For some reason, Microblaze gcc does not define __ELF__, which gpm
|
|
|
|
# configure script uses to determine whether the architecture uses ELF
|
|
|
|
# binaries and therefore can build shared libraries. We fix this by
|
|
|
|
# telling GPM that ELF is used on Microblaze.
|
|
|
|
ifeq ($(BR2_microblaze),y)
|
|
|
|
GPM_CONF_ENV += itz_cv_sys_elf=yes
|
|
|
|
endif
|
|
|
|
|
2014-01-29 19:20:59 +01:00
|
|
|
# gpm and ncurses have a circular dependency. As gpm function GPM_Wgetch()
|
|
|
|
# (requiring ncurses) is not recommended for use by ncurses people themselves
|
|
|
|
# and as it's better to have gpm support in ncurses that the contrary, we force
|
|
|
|
# gpm to not look after ncurses explicitly.
|
|
|
|
# http://invisible-island.net/ncurses/ncurses.faq.html#using_gpm_lib
|
2014-09-27 21:32:44 +02:00
|
|
|
GPM_CONF_OPTS = --without-curses
|
2014-01-29 19:20:59 +01:00
|
|
|
|
|
|
|
# configure is missing but gpm seems not compatible with our autoreconf
|
|
|
|
# mechanism so we have to do it manually instead of using GPM_AUTORECONF = YES
|
|
|
|
define GPM_RUN_AUTOGEN
|
2014-04-15 00:31:06 +02:00
|
|
|
cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
|
2014-01-29 19:20:59 +01:00
|
|
|
endef
|
2014-02-04 10:38:57 +01:00
|
|
|
GPM_PRE_CONFIGURE_HOOKS += GPM_RUN_AUTOGEN
|
2014-01-29 19:20:59 +01:00
|
|
|
|
|
|
|
GPM_DEPENDENCIES += host-automake host-autoconf host-libtool
|
|
|
|
|
2014-02-03 11:58:30 +01:00
|
|
|
# gpm tries to build/install .info doc even if makeinfo isn't installed on the
|
|
|
|
# host, so we have to disable global doc installation to prevent autobuild
|
|
|
|
# errors.
|
|
|
|
define GPM_DISABLE_DOC_INSTALL
|
|
|
|
$(SED) 's/SUBDIRS = src doc contrib/SUBDIRS = src contrib/' \
|
|
|
|
$(@D)/Makefile.in
|
|
|
|
endef
|
|
|
|
GPM_POST_PATCH_HOOKS += GPM_DISABLE_DOC_INSTALL
|
|
|
|
|
2014-01-29 19:20:59 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GPM_INSTALL_TEST_TOOLS),)
|
|
|
|
define GPM_REMOVE_TEST_TOOLS_FROM_TARGET
|
|
|
|
for tools in mev hltest mouse-test display-buttons \
|
2014-10-27 09:25:28 +01:00
|
|
|
get-versions display-coords; do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/$$tools ; \
|
2014-01-29 19:20:59 +01:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
GPM_POST_INSTALL_TARGET_HOOKS += GPM_REMOVE_TEST_TOOLS_FROM_TARGET
|
|
|
|
endif
|
|
|
|
|
|
|
|
define GPM_INSTALL_GPM_ROOT_CONF_ON_TARGET
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/conf/gpm-root.conf $(TARGET_DIR)/etc/
|
|
|
|
endef
|
|
|
|
|
|
|
|
GPM_POST_INSTALL_TARGET_HOOKS += GPM_INSTALL_GPM_ROOT_CONF_ON_TARGET
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|