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 # Internal error, aborting at dw2gencfi.c:214 in emit_expr_encoded
16 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79509
17 ifeq ($(BR2_m68k_cf
),y
)
18 KMSXX_CONF_OPTS
+= -DCMAKE_CXX_FLAGS
="$(TARGET_CXXFLAGS) -fno-dwarf2-cfi-asm"
21 ifeq ($(BR2_PACKAGE_KMSXX_INSTALL_TESTS
),y
)
23 fbtestpat kmsblank kmscapture \
24 kmsprint kmsview testpat wbcap \
27 define KMSXX_INSTALL_TARGET_TESTS
28 $(foreach t
,$(KMSXX_TESTS
),\
29 $(INSTALL
) -D
-m
0755 $(@D
)/bin
/$(t
) \
30 $(TARGET_DIR
)/usr
/bin
/$(t
)
35 KMSXX_LIBS
= kms
++ kms
++util
37 define KMSXX_INSTALL_TARGET_CMDS
38 $(if
$(BR2_SHARED_LIBS
)$(BR2_SHARED_STATIC_LIBS
),
39 $(foreach l
,$(KMSXX_LIBS
),\
40 $(INSTALL
) -D
-m
0755 $(@D
)/lib
/lib
$(l
).so \
41 $(TARGET_DIR
)/usr
/lib
/lib
$(l
).so
44 $(KMSXX_INSTALL_TARGET_TESTS
)
47 define KMSXX_INSTALL_STAGING_CMDS
48 $(foreach l
,$(KMSXX_LIBS
),\
49 $(if
$(BR2_SHARED_LIBS
)$(BR2_SHARED_STATIC_LIBS
),
50 $(INSTALL
) -D
-m
0755 $(@D
)/lib
/lib
$(l
).so \
51 $(STAGING_DIR
)/usr
/lib
/lib
$(l
).so
)
52 $(if
$(BR2_STATIC_LIBS
)$(BR2_SHARED_STATIC_LIBS
),
53 $(INSTALL
) -D
-m
0755 $(@D
)/lib
/lib
$(l
).a \
54 $(STAGING_DIR
)/usr
/lib
/lib
$(l
).a
)
55 mkdir
-p
$(STAGING_DIR
)/usr
/include/$(l
)
56 cp
-dpfr
$(@D
)/$(l
)/inc
/$(l
)/* $(STAGING_DIR
)/usr
/include/$(l
)/
60 $(eval
$(cmake-package
))