1 ################################################################################
5 ################################################################################
7 KMSXX_VERSION
= bd5f6471e619a6ba2987bc7f66ef78a531f94d6c
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
)
17 fbtestpat kmsblank kmscapture \
18 kmsprint kmsview testpat wbcap \
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
)
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
)
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
)/
54 $(eval
$(cmake-package
))