kumquat-buildroot/package/lesstif/lesstif.mk
Bernd Kuhls 822a757456 infra: Move --enable/--disable-debug to package/Makefile.in
A lot of packages ignored BR2_ENABLE_DEBUG. This patch simplifies the handling of
this option by adding the corresponding configure option to the global Makefile
for target packages.

For host packages --disable-debug is added to the global Makefile.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-10-19 17:07:14 +02:00

42 lines
1.3 KiB
Makefile

################################################################################
#
# lesstif
#
################################################################################
LESSTIF_VERSION = 0.95.2
LESSTIF_SOURCE = lesstif-$(LESSTIF_VERSION).tar.bz2
LESSTIF_SITE = http://downloads.sourceforge.net/project/lesstif/lesstif/$(LESSTIF_VERSION)
LESSTIF_INSTALL_STAGING = YES
LESSTIF_DEPENDENCIES = \
xlib_libXt \
xlib_libXext \
freetype
LESSTIF_LICENSE = LGPLv2+
LESSTIF_LICENSE_FILES = COPYING.LIB
LESSTIF_CONF_OPTS = \
--with-gnu-ld \
--with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config \
--enable-production=yes \
--enable-build-tests=no \
--no-recursion
# Reduces the buggy makefile to the smallest possible (and working) thing
define LESSTIF_NOMAN2HTML
echo "all:" > $(@D)/doc/Makefile
echo "" >> $(@D)/doc/Makefile
echo "install:" >> $(@D)/doc/Makefile
echo "" >> $(@D)/doc/Makefile
echo "clean:" >> $(@D)/doc/Makefile
endef
# Prevents to copy ac_find_motif.m4 on target, it would else
# be created at $(TARGET_DIR)/$(TOPDIR)/output/host/usr/share/aclocal/ac_find_motif.m4
define LESSTIF_FIXACLOCAL
sed -i -e "/install-data-am: install-aclocalDATA/d" $(@D)/scripts/autoconf/Makefile
endef
LESSTIF_POST_CONFIGURE_HOOKS += LESSTIF_NOMAN2HTML
LESSTIF_POST_CONFIGURE_HOOKS += LESSTIF_FIXACLOCAL
$(eval $(autotools-package))