xref: /OK3568_Linux_fs/buildroot/package/lesstif/lesstif.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# lesstif
4#
5################################################################################
6
7LESSTIF_VERSION = 0.95.2
8LESSTIF_SOURCE = lesstif-$(LESSTIF_VERSION).tar.bz2
9LESSTIF_SITE = http://downloads.sourceforge.net/project/lesstif/lesstif/$(LESSTIF_VERSION)
10LESSTIF_INSTALL_STAGING = YES
11LESSTIF_DEPENDENCIES = \
12	xlib_libXt \
13	xlib_libXext \
14	freetype
15LESSTIF_LICENSE = LGPL-2.0+
16LESSTIF_LICENSE_FILES = COPYING.LIB
17LESSTIF_CONF_OPTS = \
18	--with-gnu-ld \
19	--with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config \
20	--enable-production=yes \
21	--enable-build-tests=no \
22	--no-recursion
23
24# Reduces the buggy makefile to the smallest possible (and working) thing
25define LESSTIF_NOMAN2HTML
26	echo "all:" > $(@D)/doc/Makefile
27	echo "" >> $(@D)/doc/Makefile
28	echo "install:" >> $(@D)/doc/Makefile
29	echo "" >> $(@D)/doc/Makefile
30	echo "clean:" >> $(@D)/doc/Makefile
31endef
32
33# Prevents to copy ac_find_motif.m4 on target, it would else
34# be created at $(TARGET_DIR)/$(HOST_DIR)/share/aclocal/ac_find_motif.m4
35define LESSTIF_FIXACLOCAL
36	sed -i -e "/install-data-am: install-aclocalDATA/d" $(@D)/scripts/autoconf/Makefile
37endef
38
39LESSTIF_POST_CONFIGURE_HOOKS += LESSTIF_NOMAN2HTML
40LESSTIF_POST_CONFIGURE_HOOKS += LESSTIF_FIXACLOCAL
41
42$(eval $(autotools-package))
43