2015-09-28 21:27:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libcrossguid
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-05-01 09:52:11 +02:00
|
|
|
LIBCROSSGUID_VERSION = 8f399e8bd4252be9952f3dfa8199924cc8487ca4
|
2015-09-28 21:27:01 +02:00
|
|
|
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 \
|
2018-05-01 09:52:11 +02:00
|
|
|
-c guid.cpp -o guid.o)
|
2015-09-28 21:27:01 +02:00
|
|
|
(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
|
2018-05-01 09:52:11 +02:00
|
|
|
$(INSTALL) -D -m 644 $(@D)/guid.h $(STAGING_DIR)/usr/include/guid.h
|
2015-09-28 21:27:01 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|