e7f0843273
Fix the following build failure raised since bump to version 2.43 in
commit bdd05a2b13
:
/usr/bin/install: cannot stat '/tmp/instance-0/output-1/build/liblinear-2.43/liblinear.so.3': No such file or directory
Fixes:
- http://autobuild.buildroot.org/results/97c2a3babe8f9df7cda069858f13e3be2508cf40
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# liblinear
|
|
#
|
|
################################################################################
|
|
|
|
LIBLINEAR_VERSION = 2.43
|
|
LIBLINEAR_SITE = http://www.csie.ntu.edu.tw/~cjlin/liblinear
|
|
LIBLINEAR_LICENSE = BSD-3-Clause
|
|
LIBLINEAR_LICENSE_FILES = COPYRIGHT
|
|
LIBLINEAR_INSTALL_STAGING = YES
|
|
LIBLINEAR_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
# $1: destination directory
|
|
define LIBLINEAR_INSTALL_SHARED
|
|
$(INSTALL) -m 0644 -D $(@D)/liblinear.so.4 $(1)/usr/lib/liblinear.so.4
|
|
ln -sf liblinear.so.4 $(1)/usr/lib/liblinear.so
|
|
endef
|
|
LIBLINEAR_CFLAGS += -fPIC
|
|
endif
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
# $1: destination directory
|
|
define LIBLINEAR_INSTALL_STATIC
|
|
$(INSTALL) -m 0644 -D $(@D)/liblinear.a $(1)/usr/lib/liblinear.a
|
|
endef
|
|
endif
|
|
|
|
define LIBLINEAR_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(LIBLINEAR_CFLAGS)" -C $(@D) \
|
|
$(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),lib) \
|
|
$(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),static-lib)
|
|
endef
|
|
|
|
define LIBLINEAR_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -m 0644 -D $(@D)/linear.h $(STAGING_DIR)/usr/include/linear.h
|
|
$(call LIBLINEAR_INSTALL_SHARED,$(STAGING_DIR))
|
|
$(call LIBLINEAR_INSTALL_STATIC,$(STAGING_DIR))
|
|
endef
|
|
|
|
define LIBLINEAR_INSTALL_TARGET_CMDS
|
|
$(call LIBLINEAR_INSTALL_SHARED,$(TARGET_DIR))
|
|
endef
|
|
|
|
$(eval $(generic-package))
|