-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bzip3: add recipe #11612
bzip3: add recipe #11612
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: SSE4 <tomskside@gmail.com>
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit b23484dbzip3/1.1.4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks!
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit ffd8b97bzip3/1.1.4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can sneak in the missing system lib?
Hooks produced the following warnings for commit ffd8b97
bzip3/1.1.4post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libbzip3.so' links to system library 'm' but it is not in cpp_info.system_libs.
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
All green in build 6 (
|
C_EXTENSIONS OFF | ||
) | ||
if (with_thread) | ||
target_compile_definitions(bzip3 PRIVATE "PTHREAD") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add:
find_package(Threads REQUIRED)
target_link_libraries(bzip3 PRIVATE Threads::Threads)
if (WITH_UTIL) | ||
install( | ||
TARGETS bzip3_cmd | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaks iOS
should be:
DESTINATION ${CMAKE_INSTALL_BINDIR}
if self.settings.os not in ["Linux", "FreeBSD"]: | ||
del self.options.with_thread |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- should be in
config_options()
- why only Linux & FreeBSD? Should be deleted for Windows only (and actually it should work for MinGW with pthread)
cmake = self._configure_cmake() | ||
cmake.install() | ||
|
||
def package_info(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add:
self.cpp_info.set_property("pkg_config_name", "bzip3")
see https://github.com/kspalaiologos/bzip3/blob/1.1.4/bzip3.pc.in
* bzip3: add recipe * set c_std_99 features for `restrict` keyword * make restrict macro * update cmake required version Co-authored-by: SSE4 <tomskside@gmail.com> * add const * modernize CMakeLists.txt * link pthread only on with_thread=True Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: SSE4 <tomskside@gmail.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
…update-from-conan-io * 'master' of github.com:conan-io/conan-center-index: (1322 commits) (conan-io#11692) [bot] Add Access Request users (2022-07-14) (conan-io#11691) gettext: update dependencies (conan-io#11685) libcurl: update openssl (conan-io#11688) s2n: update openssl (conan-io#11687) sqlite3: add version 3.39.1 (conan-io#11683) docs: add a link the list of reviewers (conan-io#11682) certify - bump deps (conan-io#11673) amqp-cpp - bump deps (conan-io#11672) msix - bump deps (conan-io#11580) wayland: Switch to MesonToolchain generator to allow cross-compiling (conan-io#11557) spirv-tools package 1.3.216 has the wrong git hash (conan-io#11439) openssl: Fix option no_md2 (conan-io#11680) cassandra-cpp-driver - bump deps (conan-io#11671) arrow: update dependencies (conan-io#11675) aws-c-cal - bump deps (conan-io#11677) brynet - bump deps (conan-io#11662) doc: link to cci-pending-review github page (conan-io#11612) bzip3: add recipe (conan-io#11071) [libjpeg] Use SPDX license identifer (conan-io#11478) libcurl: add version 7.84.0 ...
Specify library name and version: bzip3/1.1.4
Bzip3 is a compression library.