libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / kmsxx / kmsxx.mk
blobdf0ab234d7a515dd0838c71ab4cf2e842f692bef
1 ################################################################################
3 # kmsxx
5 ################################################################################
7 KMSXX_VERSION = a706f157b86e90696808025db01de99646d51a77
8 KMSXX_SITE = $(call github,tomba,kmsxx,$(KMSXX_VERSION))
9 KMSXX_LICENSE = MPLv2.0
10 KMSXX_LICENSE_FILES = LICENSE
11 KMSXX_INSTALL_STAGING = YES
12 KMSXX_DEPENDENCIES = libdrm host-pkgconf
13 KMSXX_CONF_OPTS = -DKMSXX_ENABLE_PYTHON=OFF
15 ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS),y)
16 KMSXX_TESTS = \
17 fbtestpat kmsblank kmscapture \
18 kmsprint kmsview testpat wbcap \
19 wbm2m
21 define KMSXX_INSTALL_TARGET_TESTS
22 $(foreach t,$(KMSXX_TESTS),\
23 $(INSTALL) -D -m 0755 $(@D)/bin/$(t) \
24 $(TARGET_DIR)/usr/bin/$(t)
26 endef
27 endif
29 KMSXX_LIBS = kms++ kms++util
31 define KMSXX_INSTALL_TARGET_CMDS
32 $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
33 $(foreach l,$(KMSXX_LIBS),\
34 $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
35 $(TARGET_DIR)/usr/lib/lib$(l).so
38 $(KMSXX_INSTALL_TARGET_TESTS)
39 endef
41 define KMSXX_INSTALL_STAGING_CMDS
42 $(foreach l,$(KMSXX_LIBS),\
43 $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),
44 $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).so \
45 $(STAGING_DIR)/usr/lib/lib$(l).so)
46 $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),
47 $(INSTALL) -D -m 0755 $(@D)/lib/lib$(l).a \
48 $(STAGING_DIR)/usr/lib/lib$(l).a)
49 mkdir -p $(STAGING_DIR)/usr/include/$(l)
50 cp -dpfr $(@D)/$(l)/inc/$(l)/* $(STAGING_DIR)/usr/include/$(l)/
52 endef
54 $(eval $(cmake-package))