diff options
author | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
---|---|---|
committer | takeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp> | 2020-11-02 11:07:33 +0900 |
commit | 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch) | |
tree | cd70a267a5ef105ba32f200aa088e281fbd85747 /external/meta-openembedded/meta-oe/recipes-support/iniparser | |
parent | 4204309872da5cb401cbb2729d9e2d4869a87f42 (diff) |
basesystem-jjsandbox/ToshikazuOhiwa/master-jj
recipes
Diffstat (limited to 'external/meta-openembedded/meta-oe/recipes-support/iniparser')
-rw-r--r-- | external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch | 63 | ||||
-rw-r--r-- | external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser_4.1.bb | 17 |
2 files changed, 80 insertions, 0 deletions
diff --git a/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch b/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch new file mode 100644 index 00000000..b666f00f --- /dev/null +++ b/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser/Add-CMake-support.patch @@ -0,0 +1,63 @@ +Origin: Debian packaging +From: Klee Dienes <klee@mit.edu> +Date: Thu, 13 Feb 2014 07:03:26 -0500 +Subject: Add CMake support. + +--- + CMakeLists.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 44 insertions(+) + create mode 100644 CMakeLists.txt + +--- /dev/null ++++ b/CMakeLists.txt +@@ -0,0 +1,50 @@ ++cmake_minimum_required (VERSION 2.8.8) ++ ++project (iniparser) ++include (GNUInstallDirs) ++ ++include_directories (src) ++ ++set(INIPARSER_SRCS src/dictionary.c src/iniparser.c) ++set(INIPARSER_HDRS src/dictionary.h src/iniparser.h) ++ ++add_library(iniparser-shared SHARED ${INIPARSER_SRCS} ${INIPARSER_HDRS}) ++add_library(iniparser-static STATIC ${INIPARSER_SRCS} ${INIPARSER_HDRS}) ++ ++set_target_properties(iniparser-shared PROPERTIES SOVERSION 1) ++set_target_properties(iniparser-shared PROPERTIES OUTPUT_NAME iniparser) ++set_target_properties(iniparser-static PROPERTIES OUTPUT_NAME iniparser) ++ ++install (TARGETS iniparser-shared ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++ ++install (TARGETS iniparser-static ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++ ++find_package(Doxygen) ++if (NOT DOXYGEN_FOUND) ++message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly") ++endif() ++ ++file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/iniparser.dox ++ "@INCLUDE = ${CMAKE_CURRENT_SOURCE_DIR}/doc/iniparser.dox\n" ++ "OUTPUT_DIRECTORY = ${CMAKE_CURRENT_BINARY_DIR}\n" ++ ) ++ ++add_custom_target (doc ALL ++ COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/iniparser.dox ++ SOURCES doc/iniparser.dox) ++ ++enable_testing() ++ ++add_test(NAME testsuite ++ COMMAND make ++ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test) ++ ++install (FILES ${INIPARSER_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/iniparser) ++ ++install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR}) diff --git a/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser_4.1.bb b/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser_4.1.bb new file mode 100644 index 00000000..f4b553a5 --- /dev/null +++ b/external/meta-openembedded/meta-oe/recipes-support/iniparser/iniparser_4.1.bb @@ -0,0 +1,17 @@ +SUMMARY = "The iniParser library is a simple C library offering INI file parsing services (both reading and writing)." +SECTION = "libs" +HOMEPAGE = "https://github.com/ndevilla/iniparser" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e02baf71c76e0650e667d7da133379ac" + +DEPENDS = "doxygen-native" + +SRC_URI = "git://github.com/ndevilla/iniparser.git;protocol=https \ + file://Add-CMake-support.patch" + +# tag 4.1 +SRCREV= "0a38e85c9cde1e099ca3bf70083bd00f89c3e5b6" + +S = "${WORKDIR}/git" + +inherit cmake |