summaryrefslogtreecommitdiff
path: root/packages/media-libs/imlib2-webp/imlib2-webp.exlib
blob: df0d3cfdeb17c92eca48d45669898692c99d9153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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
}

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
}