blob: ec3cfc87b65de5ce995b9000aae1d55793601bd9 (
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
29
30
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 2019 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
require github [ user=vi ]
export_exlib_phases src_install src_prepare
SLOT="0"
SUMMARY="Loader for HEIC for Imlib2 (i.e. for Feh). Based on libheif."
LICENCES=="BSD-3 LGPL"
MYOPTIONS=""
DEPENDENCIES="
build+run:
media-libs/imlib2
media-libs/libheif
"
imlib2-heic_src_prepare() {
edo sed "s/pkg-config/$(exhost --target)-pkg-config/g" -i makefile
edo sed 's/strip $@//g' -i makefile
edo sed "s/CC=gcc/CC=$(exhost --target)-cc/g" -i commands.mk
}
imlib2-heic_src_install() {
edo mkdir -p "${IMAGE}"/usr/$(exhost --target)/lib/imlib2/loaders
edo cp heic.so "${IMAGE}"/usr/$(exhost --target)/lib/imlib2/loaders
}
|