diff --git a/recipes-kde-framework/tier1/kjs/files/0001-install-icemaker-we-need-the-native-one-for-cross-co.patch b/recipes-kde-framework/tier1/kjs/files/0001-install-icemaker-we-need-the-native-one-for-cross-co.patch new file mode 100644 index 00000000..a8d6a0c2 --- /dev/null +++ b/recipes-kde-framework/tier1/kjs/files/0001-install-icemaker-we-need-the-native-one-for-cross-co.patch @@ -0,0 +1,31 @@ +From d5c93a4838c8283b0a13ac1ca2395118cefe7e94 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 3 Dec 2014 16:02:52 +0100 +Subject: [PATCH] install icemaker - we need the native one for cross + compilation +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller +--- + src/kjs/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/kjs/CMakeLists.txt b/src/kjs/CMakeLists.txt +index d8406ea..3286334 100644 +--- a/src/kjs/CMakeLists.txt ++++ b/src/kjs/CMakeLists.txt +@@ -67,6 +67,7 @@ endif() + add_executable(icemaker ${icemaker_SRCS}) + ecm_mark_nongui_executable(icemaker) + target_include_directories(icemaker PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..") ++ install(TARGETS icemaker EXPORT KF5JSTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) + + # get the name of the generated wrapper script (which sets up LD_LIBRARY_PATH) + #get_target_property(ICEMAKER_EXECUTABLE icemaker WRAPPER_SCRIPT) +-- +1.8.3.1 + diff --git a/recipes-kde-framework/tier1/kjs/kjs-native.bb b/recipes-kde-framework/tier1/kjs/kjs-native.bb new file mode 100644 index 00000000..2b991fb6 --- /dev/null +++ b/recipes-kde-framework/tier1/kjs/kjs-native.bb @@ -0,0 +1,9 @@ +require ${BPN}.inc + +inherit native + +SRC_URI += " \ + file://0001-install-icemaker-we-need-the-native-one-for-cross-co.patch \ +" + +DEPENDS += "libpcre-native" diff --git a/recipes-kde-framework/tier1/kjs/kjs.bb b/recipes-kde-framework/tier1/kjs/kjs.bb new file mode 100644 index 00000000..4e4632a9 --- /dev/null +++ b/recipes-kde-framework/tier1/kjs/kjs.bb @@ -0,0 +1,9 @@ +require ${BPN}.inc + +inherit cmake-lib + +DEPENDS += "${BPN}-native libpcre" + +# cross libs / headers +CMAKE_HIDE_ERROR[1] = "KF5JS, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib" +CMAKE_HIDE_ERROR[2] = "KF5JS, -S${includedir}, -S${STAGING_INCDIR}" diff --git a/recipes-kde-framework/tier1/kjs/kjs.inc b/recipes-kde-framework/tier1/kjs/kjs.inc new file mode 100644 index 00000000..d534ccd3 --- /dev/null +++ b/recipes-kde-framework/tier1/kjs/kjs.inc @@ -0,0 +1,10 @@ +SUMMARY = "Support for JS scripting in applications" +LICENSE = "GPLv2 | LGPLv2.1" +LIC_FILES_CHKSUM = " \ + file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ +" + +inherit kde perlnative + +SRCREV = "c59650a0b873df766de2bbf11e6ef37a7b2c323b" +PV = "5.5.0"