expat: add patch to not build docs

This commit is contained in:
Lukas Rusak 2017-10-10 12:07:08 -07:00
parent a130ffaee9
commit d701a7d1e2
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3
2 changed files with 24 additions and 6 deletions

View File

@ -31,9 +31,4 @@ PKG_LONGDESC="Expat is an XML parser library written in C. It is a stream-orient
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_CMAKE_OPTS_TARGET="-DBUILD_tools=OFF -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_shared=ON"
pre_make_target() {
# fix builderror when building in subdirs
cp -r ../doc .
}
PKG_CMAKE_OPTS_TARGET="-DBUILD_docs=OFF -DBUILD_tools=OFF -DBUILD_examples=OFF -DBUILD_tests=OFF -DBUILD_shared=ON"

View File

@ -0,0 +1,23 @@
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2016-06-21 05:58:38.000000000 -0700
+++ b/CMakeLists.txt 2017-10-10 09:39:36.713079492 -0700
@@ -10,6 +10,7 @@
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_TARNAME "${PACKAGE_NAME}")
+option(BUILD_docs "build the docs for expat library" ON)
option(BUILD_tools "build the xmlwf tool for expat library" ON)
option(BUILD_examples "build the examples for expat library" ON)
option(BUILD_tests "build the tests for expat library" ON)
@@ -92,8 +93,9 @@
install(FILES lib/expat.h lib/expat_external.h DESTINATION include)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/expat.pc DESTINATION lib/pkgconfig)
-
-add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)
+if(BUILD_docs)
+ add_custom_command(TARGET expat PRE_BUILD COMMAND $(MAKE) -C doc xmlwf.1)
+endif()
if(BUILD_tools AND NOT WINCE)
set(xmlwf_SRCS