xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/webp/libwebp_1.2.4.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "WebP is an image format designed for the Web"
2*4882a593SmuzhiyunDESCRIPTION = "WebP is a method of lossy and lossless compression that can be \
3*4882a593Smuzhiyun               used on a large variety of photographic, translucent and \
4*4882a593Smuzhiyun               graphical images found on the web. The degree of lossy \
5*4882a593Smuzhiyun               compression is adjustable so a user can choose the trade-off \
6*4882a593Smuzhiyun               between file size and image quality. WebP typically achieves \
7*4882a593Smuzhiyun               an average of 30% more compression than JPEG and JPEG 2000, \
8*4882a593Smuzhiyun               without loss of image quality."
9*4882a593SmuzhiyunHOMEPAGE = "https://developers.google.com/speed/webp/"
10*4882a593SmuzhiyunSECTION = "libs"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
13*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=6e8dee932c26f2dab503abf70c96d8bb \
14*4882a593Smuzhiyun                    file://PATENTS;md5=c6926d0cb07d296f886ab6e0cc5a85b7"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSRC_URI = "http://downloads.webmproject.org/releases/webp/${BP}.tar.gz"
17*4882a593SmuzhiyunSRC_URI[sha256sum] = "7bf5a8a28cc69bcfa8cb214f2c3095703c6b73ac5fba4d5480c205331d9494df"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "http://downloads.webmproject.org/releases/webp/index.html"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunEXTRA_OECONF = " \
22*4882a593Smuzhiyun    --disable-wic \
23*4882a593Smuzhiyun    --enable-libwebpmux \
24*4882a593Smuzhiyun    --enable-libwebpdemux \
25*4882a593Smuzhiyun    --enable-threading \
26*4882a593Smuzhiyun"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun# Do not trust configure to determine if neon is available.
29*4882a593Smuzhiyun#
30*4882a593SmuzhiyunEXTRA_OECONF_ARM = " \
31*4882a593Smuzhiyun    ${@bb.utils.contains("TUNE_FEATURES","neon","--enable-neon","--disable-neon",d)} \
32*4882a593Smuzhiyun"
33*4882a593SmuzhiyunEXTRA_OECONF:append:arm = " ${EXTRA_OECONF_ARM}"
34*4882a593SmuzhiyunEXTRA_OECONF:append:armeb = " ${EXTRA_OECONF_ARM}"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuninherit autotools lib_package
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunPACKAGECONFIG ??= ""
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun# libwebpdecoder is a subset of libwebp, don't build it unless requested
41*4882a593SmuzhiyunPACKAGECONFIG[decoder] = "--enable-libwebpdecoder,--disable-libwebpdecoder"
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun# Apply for examples programs: cwebp and dwebp
44*4882a593SmuzhiyunPACKAGECONFIG[gif] = "--enable-gif,--disable-gif,giflib"
45*4882a593SmuzhiyunPACKAGECONFIG[jpeg] = "--enable-jpeg,--disable-jpeg,jpeg"
46*4882a593SmuzhiyunPACKAGECONFIG[png] = "--enable-png,--disable-png,,libpng"
47*4882a593SmuzhiyunPACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun# Apply only for example program vwebp
50*4882a593SmuzhiyunPACKAGECONFIG[gl] = "--enable-gl,--disable-gl,mesa-glut"
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunPACKAGES =+ "${PN}-gif2webp"
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunDESCRIPTION:${PN}-gif2webp = "Simple tool to convert animated GIFs to WebP"
55*4882a593SmuzhiyunFILES:${PN}-gif2webp = "${bindir}/gif2webp"
56