Skip to content

Commit

Permalink
libwebp 0.5.1 (new plan)
Browse files Browse the repository at this point in the history
A library to encode/decode images in WebP format.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Jul 30, 2016
1 parent ad8eaae commit 4e241d5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions libwebp/plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
pkg_name=libwebp
pkg_version=0.5.1
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('WebM') # Custom BSD3-like license, see: https://www.webmproject.org/license/software/
pkg_description="WebP codec: library to encode and decode images in WebP format."
pkg_upstream_url=https://developers.google.com/speed/webp
pkg_source=https://storage.googleapis.com/downloads.webmproject.org/releases/webp/${pkg_name}-${pkg_version}.tar.gz
pkg_shasum=6ad66c6fcd60a023de20b6856b03da8c7d347269d76b1fd9c3287e8b5e8813df
pkg_deps=(
core/giflib
core/glibc
core/libjpeg-turbo
core/jbigkit
core/libpng
core/libtiff
core/xz
core/zlib
)
pkg_build_deps=(
core/gcc
core/file
core/make
)
pkg_lib_dirs=(lib)
pkg_include_dirs=(include)
pkg_bin_dirs=(bin)

do_prepare() {
if [[ ! -r /usr/bin/file ]]; then
ln -sv "$(pkg_path_for file)/bin/file" /usr/bin/file
_clean_file=true
fi
}

do_build() {
./configure --prefix="$pkg_prefix" --enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder
make
}

do_end() {
if [[ -n "$_clean_file" ]]; then
rm -fv /usr/bin/file
fi
}

0 comments on commit 4e241d5

Please sign in to comment.