media-libs/giflib - 6.1.3 (gentoo)

Search

Install

Install this version:

emerge -a =media-libs/giflib-6.1.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-libs/giflib-6.1.3

Or alternatively:

emerge --autounmask-write -a =media-libs/giflib-6.1.3

Package Information

Description:
Library to handle, display and manipulate GIF images
Homepage:
https://sourceforge.net/projects/giflib/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
6.1.3 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-solaris 0/7
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic multilib-minimal toolchain-funcs

DESCRIPTION="Library to handle, display and manipulate GIF images"
HOMEPAGE="https://sourceforge.net/projects/giflib/"
SRC_URI="https://downloads.sourceforge.net/giflib/${P}.tar.gz"

LICENSE="MIT"
SLOT="0/7"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-solaris"
IUSE="doc static-libs"

BDEPEND="doc? ( virtual/imagemagick-tools )"

PATCHES=(
	"${FILESDIR}"/${PN}-6.1.3-verbose-tests.patch
)

src_prepare() {
	default

	# We don't want docs to be built unconditionally
	sed -i -e '/$(MAKE) -C doc/d' Makefile || die

	multilib_copy_sources
}

multilib_src_compile() {
	append-lfs-flags

	emake \
		AR="$(tc-getAR)" \
		CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS} -std=gnu99 -fPIC" \
		LDFLAGS="${LDFLAGS}" \
		OFLAGS="" \
		all

	if use doc && multilib_is_native_abi; then
		emake -C doc
	fi
}

multilib_src_test() {
	emake -j1 check
}

multilib_src_install() {
	emake \
		DESTDIR="${D}" \
		PREFIX="${EPREFIX}/usr" \
		LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
		install

	if ! use static-libs ; then
		find "${ED}" -name "*.a" -delete || die
	fi

	if use doc && multilib_is_native_abi; then
		docinto html
		dodoc doc/*.html
	fi
}

multilib_src_install_all() {
	einstalldocs
	if use doc ; then
		docinto html
		dodoc -r doc/{gifstandard,whatsinagif}
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-libs/giflib | euse -E <flag> -p media-libs/giflib | euse -D <flag> -p media-libs/giflib

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

BDEPEND

doc? ( virtual/imagemagick-tools )

Manifest for 6.1.3

Type File Size Source URLs
DIST giflib-6.1.3.tar.gz 470579 bytes https://downloads.sourceforge.net/giflib/giflib-6.1.3.tar.gz