dededf0ff2
- Add hash for license file
- guid.cpp and guid.h have been renamed Guid.cpp and Guid.hpp (they
will be renamed back to guid.cpp and guid.hpp in next release)
- Continue to use package-generic infrastructure as cmake doesn't work
properly with this version. Commit such as
974def4e0a
is needed. Migration on cmake should be done in next package
release.
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
29 lines
908 B
Makefile
29 lines
908 B
Makefile
################################################################################
|
|
#
|
|
# libcrossguid
|
|
#
|
|
################################################################################
|
|
|
|
LIBCROSSGUID_VERSION = v0.2.2
|
|
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.hpp $(STAGING_DIR)/usr/include/guid.h
|
|
endef
|
|
|
|
$(eval $(generic-package))
|