diff options
author | Tony Butler <spudz76@gmail.com> | 2022-11-28 17:32:11 -0800 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-01-16 23:51:10 +0000 |
commit | 32e99ed06972e4295cec7ae57b2c55eb63566461 (patch) | |
tree | 08f1a5c663bf00592d68d20442064696546fc21b /tools/lzop/patches | |
parent | 9a8509c2c572a29aec28b6b10da12c5d7a1efba8 (diff) | |
download | upstream-32e99ed06972e4295cec7ae57b2c55eb63566461.tar.gz upstream-32e99ed06972e4295cec7ae57b2c55eb63566461.tar.bz2 upstream-32e99ed06972e4295cec7ae57b2c55eb63566461.zip |
tools/lzop: add `lzop` binaries
Depends: `tools/liblzo`
`lzop` is the standard executable for LZO compression
the initramfs generator offers the LZO option but there was no
executable to support it actually working
Signed-off-by: Tony Butler <spudz76@gmail.com>
Diffstat (limited to 'tools/lzop/patches')
-rw-r--r-- | tools/lzop/patches/001-add-cmake-ENABLE_DOCS-configurable.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/lzop/patches/001-add-cmake-ENABLE_DOCS-configurable.patch b/tools/lzop/patches/001-add-cmake-ENABLE_DOCS-configurable.patch new file mode 100644 index 0000000000..01ebd33a39 --- /dev/null +++ b/tools/lzop/patches/001-add-cmake-ENABLE_DOCS-configurable.patch @@ -0,0 +1,24 @@ +--- a/CMakeLists.txt 2017-08-10 04:19:45.000000000 -0700 ++++ b/CMakeLists.txt 2022-11-28 17:21:03.453548350 -0800 +@@ -50,6 +50,9 @@ + + project(lzop VERSION 1.04 LANGUAGES C) + ++# configuration options ++option(ENABLE_DOCS "Install documentation." ON) ++ + # install directories + if(NOT CMAKE_INSTALL_PREFIX) + message(FATAL_ERROR "ERROR: CMAKE_INSTALL_PREFIX is not defined.") +@@ -186,9 +189,11 @@ + + install(TARGETS lzop DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}") + ++if(ENABLE_DOCS) + set(f AUTHORS COPYING NEWS README THANKS doc/lzop.html doc/lzop.man doc/lzop.pod doc/lzop.ps doc/lzop.tex doc/lzop.txt) + install(FILES ${f} DESTINATION "${CMAKE_INSTALL_FULL_DOCDIR}") + install(FILES doc/lzop.1 DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man1") ++endif() # ENABLE_DOCS + + endif() # CMAKE_INSTALL_FULL_LIBDIR + |