kumquat-buildroot/package/libtommath/libtommath.mk
Francois Perrad fe6afbfa03 libtommath: set PREFIX when installing
The default value is /usr/local and causes breakage in libtomcrypt & moarvm

Fixes:

  http://autobuild.buildroot.net/results/a760063f05ae23f79920bc89ffc37e7dcf77aeab/
  http://autobuild.buildroot.net/results/78c9bc9a21cfce48615b70d80b25dd4847bd803b/

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-09-05 21:11:54 +02:00

24 lines
796 B
Makefile

################################################################################
#
# libtommath
#
################################################################################
LIBTOMMATH_VERSION = 1.0.1
LIBTOMMATH_SITE = https://github.com/libtom/libtommath/releases/download/v$(LIBTOMMATH_VERSION)
LIBTOMMATH_SOURCE = ltm-$(LIBTOMMATH_VERSION).tar.xz
LIBTOMMATH_LICENSE = WTFPL
LIBTOMMATH_LICENSE_FILES = LICENSE
LIBTOMMATH_INSTALL_STAGING = YES
LIBTOMMATH_INSTALL_TARGET = NO # only static library
define LIBTOMMATH_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="-I./ -fPIC $(TARGET_CFLAGS)"
endef
define LIBTOMMATH_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" PREFIX=/usr install
endef
$(eval $(generic-package))