diff options
-rw-r--r-- | packages/media-libs/imlib2-webp/imlib2-webp-scm.exheres-0 | 6 | ||||
-rw-r--r-- | packages/media-libs/imlib2-webp/imlib2-webp.exlib | 29 |
2 files changed, 35 insertions, 0 deletions
diff --git a/packages/media-libs/imlib2-webp/imlib2-webp-scm.exheres-0 b/packages/media-libs/imlib2-webp/imlib2-webp-scm.exheres-0 new file mode 100644 index 0000000..a297d5c --- /dev/null +++ b/packages/media-libs/imlib2-webp/imlib2-webp-scm.exheres-0 @@ -0,0 +1,6 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require imlib2-webp + +PLATFORMS="~amd64 ~x86" diff --git a/packages/media-libs/imlib2-webp/imlib2-webp.exlib b/packages/media-libs/imlib2-webp/imlib2-webp.exlib new file mode 100644 index 0000000..2f56bad --- /dev/null +++ b/packages/media-libs/imlib2-webp/imlib2-webp.exlib @@ -0,0 +1,29 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + +require github [ user=gawen947 ] + +export_exlib_phases src_install src_prepare + +SLOT="0" + +SUMMARY="A WebP loader for Imlib2. Published under the BSD license." + +LICENCES=="BSD-3 LGPL" + +MYOPTIONS="" +DEPENDENCIES=" + build+run: + media-libs/imlib2 + media-libs/libwebp:= +" + +imlib2-webp_src_prepare() { + edo sed "s/pkg-config/$(exhost --target)-pkg-config/g" -i makefile + edo sed "s/CC=cc/CC=$(exhost --target)-cc/g" -i commands.mk +} + +imlib2-webp_src_install() { + edo mkdir -p "${IMAGE}"/usr/$(exhost --target)/lib/imlib2/loaders + edo cp webp.so "${IMAGE}"/usr/$(exhost --target)/lib/imlib2/loaders +} |