libpng is a PNG reference library. It supports almost all PNG features and is extensible. See documentation
- The Core Planners: chef-core-planners@chef.io
Library package
Library packages can be set as runtime or build time dependencies, however they are typically used as buildtime dependencies. See Defining your dependencies for more information.
To add core/libpng as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/libpng)
pkg_deps=(core/libpng)
To install this plan, run the following command:
hab pkg install core/libpng
hab pkg install core/libpng
» Installing core/libpng
☁ Determining latest version of core/libpng in the 'stable' channel
→ Found newer installed version (core/libpng/1.6.37/20200629164559) than remote version (core/libpng/1.6.37/20200310022515)
→ Using core/libpng/1.6.37/20200629164559
★ Install of core/libpng/1.6.37/20200629164559 complete with 0 new packages installed.
To view the library files first get the habitat installation directory
hab pkg path core/libpng
/hab/pkgs/core/libpng/1.6.37/20200629164559
Then list the libraries, for example:
ls -1 $(hab pkg path core/libpng)
include
lib
share
...
...