mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: lib3mf: Remove bundled software.
* gnu/packages/engineering.scm (lib3mf)[source](snippet): Delete bundled copies of libzip and zlib. Adjust header inclusions.
This commit is contained in:
parent
5e36d4381f
commit
f29a17c84b
1 changed files with 19 additions and 1 deletions
|
@ -2305,7 +2305,25 @@ (define-public lib3mf
|
|||
(snippet
|
||||
'(begin
|
||||
;; Delete pre-compiled ACT.
|
||||
(delete-file-recursively "AutomaticComponentToolkit/bin")))))
|
||||
(delete-file-recursively "AutomaticComponentToolkit/bin")
|
||||
|
||||
;; Remove bundled software. Preserve cpp-base64 as it has been
|
||||
;; modified and cannot easily be unbundled.
|
||||
(for-each delete-file-recursively
|
||||
'("Include/Libraries/libzip"
|
||||
"Include/Libraries/zlib"
|
||||
"Source/Libraries/libzip"
|
||||
"Source/Libraries/zlib"))
|
||||
|
||||
;; Adjust header includes such that system headers are found.
|
||||
(substitute* '("Include/Common/OPC/NMR_OpcPackageReader.h"
|
||||
"Include/Common/Platform/NMR_ImportStream_ZIP.h"
|
||||
"Include/Common/Platform/NMR_ExportStream_ZIP.h"
|
||||
"Include/Common/Platform/NMR_ImportStream_Compressed.h"
|
||||
"Include/Common/Platform/NMR_ExportStream_Compressed.h"
|
||||
"Source/Common/Platform/NMR_PortableZIPWriterEntry.cpp")
|
||||
(("Libraries/libzip/") "")
|
||||
(("Libraries/zlib/") ""))))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags (list "-DUSE_INCLUDED_ZLIB=0"
|
||||
|
|
Loading…
Reference in a new issue