c263cefe86
Needed by Kodi 16.x-Jarvis:
6f8171f539
[Peter: needs GCC >= 4.7 for C+11, no need to install in target,
Drop TARGET_CONFIGURE_OPTS, add TARGET_CXXFLAGS, wrap long lines]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
29 lines
940 B
Makefile
29 lines
940 B
Makefile
################################################################################
|
|
#
|
|
# libcrossguid
|
|
#
|
|
################################################################################
|
|
|
|
LIBCROSSGUID_VERSION = 8f399e8bd4252be9952f3dfa8199924cc8487ca4
|
|
LIBCROSSGUID_SITE = $(call github,graeme-hill,crossguid,$(LIBCROSSGUID_VERSION))
|
|
LIBCROSSGUID_LICENSE = MIT
|
|
LIBCROSSGUID_LICENSE_FILES = LICENSE
|
|
LIBCROSSGUID_INSTALL_STAGING = YES
|
|
# only a static library
|
|
LIBCROSSGUID_INSTALL_TARGET = NO
|
|
LIBCROSSGUID_DEPENDENCIES = util-linux
|
|
|
|
define LIBCROSSGUID_BUILD_CMDS
|
|
(cd $(@D); $(TARGET_CXX) $(TARGET_CXXFLAGS) -std=c++11 -DGUID_LIBUUID \
|
|
-c guid.cpp -o guid.o)
|
|
(cd $(@D); $(TARGET_AR) rvs libcrossguid.a guid.o)
|
|
endef
|
|
|
|
define LIBCROSSGUID_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -D -m 644 $(@D)/libcrossguid.a \
|
|
$(STAGING_DIR)/usr/lib/libcrossguid.a
|
|
$(INSTALL) -D -m 644 $(@D)/guid.h $(STAGING_DIR)/usr/include/guid.h
|
|
endef
|
|
|
|
$(eval $(generic-package))
|