diff options
Diffstat (limited to 'media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild')
-rw-r--r-- | media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild b/media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild new file mode 100644 index 000000000000..c7b9095ea837 --- /dev/null +++ b/media-libs/libnsgif/libnsgif-0.2.1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="decoding library for the GIF image file format, written in C" +HOMEPAGE="http://www.netsurf-browser.org/projects/libnsgif/" +SRC_URI="https://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~m68k-mint" +IUSE="" + +DEPEND=" + dev-util/netsurf-buildsystem + virtual/pkgconfig" + +src_prepare() { + default + sed -e '1i#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"' \ + -i src/lzw.c || die +} + +_emake() { + source /usr/share/netsurf-buildsystem/gentoo-helpers.sh + netsurf_define_makeconf + emake "${NETSURF_MAKECONF[@]}" COMPONENT_TYPE=lib-shared $@ +} + +src_compile() { + _emake +} + +src_install() { + _emake DESTDIR="${ED}" install +} |