1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# libloki 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLIBLOKI_VERSION = 0.1.7 8*4882a593SmuzhiyunLIBLOKI_SOURCE = loki-$(LIBLOKI_VERSION).tar.bz2 9*4882a593SmuzhiyunLIBLOKI_SITE = https://sourceforge.net/projects/loki-lib/files/Loki/Loki%20$(LIBLOKI_VERSION) 10*4882a593SmuzhiyunLIBLOKI_LICENSE = MIT 11*4882a593SmuzhiyunLIBLOKI_INSTALL_STAGING = YES 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 14*4882a593SmuzhiyunLIBLOKI_BUILD_TARGETS += build-static 15*4882a593SmuzhiyunLIBLOKI_INSTALL_TARGETS += install-static 16*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_LIBS),y) 17*4882a593SmuzhiyunLIBLOKI_BUILD_TARGETS += build-shared 18*4882a593SmuzhiyunLIBLOKI_INSTALL_TARGETS += install-shared 19*4882a593Smuzhiyunelse ifeq ($(BR2_SHARED_STATIC_LIBS),y) 20*4882a593SmuzhiyunLIBLOKI_BUILD_TARGETS += build-static build-shared 21*4882a593SmuzhiyunLIBLOKI_INSTALL_TARGETS += install-static install-shared 22*4882a593Smuzhiyunendif 23*4882a593Smuzhiyun 24*4882a593Smuzhiyundefine LIBLOKI_BUILD_CMDS 25*4882a593Smuzhiyun $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ 26*4882a593Smuzhiyun CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \ 27*4882a593Smuzhiyun -C $(@D) $(LIBLOKI_BUILD_TARGETS) 28*4882a593Smuzhiyunendef 29*4882a593Smuzhiyun 30*4882a593Smuzhiyundefine LIBLOKI_INSTALL_STAGING_CMDS 31*4882a593Smuzhiyun $(MAKE) -C $(@D)/src DESTDIR=$(STAGING_DIR) $(LIBLOKI_INSTALL_TARGETS) 32*4882a593Smuzhiyun $(MAKE) -C $(@D)/include DESTDIR=$(STAGING_DIR) install 33*4882a593Smuzhiyunendef 34*4882a593Smuzhiyun 35*4882a593Smuzhiyundefine LIBLOKI_INSTALL_TARGET_CMDS 36*4882a593Smuzhiyun $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) $(LIBLOKI_INSTALL_TARGETS) 37*4882a593Smuzhiyunendef 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun$(eval $(generic-package)) 40