summaryrefslogtreecommitdiff
path: root/media-libs/giflib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
commitb7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch)
tree9fd110f9fc996e8a4213eeda994a8c112491b86d /media-libs/giflib
parent066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff)
gentoo resync : 19.03.2019
Diffstat (limited to 'media-libs/giflib')
-rw-r--r--media-libs/giflib/Manifest9
-rw-r--r--media-libs/giflib/files/giflib-5.1.4-reallocarray-export.patch128
-rw-r--r--media-libs/giflib/files/giflib-5.1.8-gentoo.patch16
-rw-r--r--media-libs/giflib/giflib-5.1.4-r2.ebuild69
-rw-r--r--media-libs/giflib/giflib-5.1.7.ebuild (renamed from media-libs/giflib/giflib-5.1.6-r1.ebuild)0
-rw-r--r--media-libs/giflib/giflib-5.1.8-r1.ebuild77
6 files changed, 98 insertions, 201 deletions
diff --git a/media-libs/giflib/Manifest b/media-libs/giflib/Manifest
index 3e8516945204..2317ff8c4858 100644
--- a/media-libs/giflib/Manifest
+++ b/media-libs/giflib/Manifest
@@ -1,15 +1,16 @@
AUX giflib-4.1.6-gif2rle.patch 764 BLAKE2B af377785f83dcd5c2c4382eb2d490ccc01000aa2a1ef8f306c7e0284857de02765a714fea73870ac6226331a88e422bd8afd3b0ec90b7f3e225bcabf079dc32e SHA512 6714906d49a0c285c1fb642a81c092378042ec06be6c4d7c586459e80bb010423fe4b9801124b71c945fd118d99432869bc180bfa32a6c3c29bcfb6b4c5a027f
AUX giflib-4.1.6-giffix-null-Extension-fix.patch 693 BLAKE2B b0faee004c9cbb95839cb047de902500b1c46f6d3185fc061fb99b0759a57512cb030ca965bb927c68c642ecd72a714260c288b19d24404a6b4cb022ba41094b SHA512 9006c85529735a84afaddddbb06b25cb2b7eff64574edea693d75171c6b2bb7a666e498920a9abca2b28290e4c601b6eb6eecc6ea1b0e6b8602fd4a55863338f
-AUX giflib-5.1.4-reallocarray-export.patch 5668 BLAKE2B c2dc8b1f9ffa5ba5e3f50bd71ecb098331a97737e20f71ae88fa2b3a0aa27c9d3a83d72654692ad71edb7eb03aac00f7af21088eded85c3a0126e6893a4f583c SHA512 3635efc2b10adc01bb0ac70a99e8ac7dbe3dc1b2f03060ea449777078da2a1eb731f17299a9e239afb55e25777cae54de6ca12d9d069e513b03a9eb6402a6658
AUX giflib-5.1.6-gentoo.patch 424 BLAKE2B 2d244e7e5311506a03dde36d83f14c9ff75533b60ac8be470c73786acf652d07774d7756bb342bb5373a515db090c3a3bab3abb10a87be09e97eb81cfe59e38a SHA512 88f133e4fabcbbca9151812f9a6e1676c41301175b6637502c5c2a2b888ad31975ebf4d28d77c0adaf7a854860f9979b7a45479542ed91fa72e97c3f705f2da4
+AUX giflib-5.1.8-gentoo.patch 469 BLAKE2B f0bbb86b2fc3288860ccad7a06f4217f29dbd60bf5871e0a701e7744e37002d484046ec85109db6e9e60d72c4a227bb1d206f2a3590ab526c88fa8f82e567beb SHA512 feede4296a111d063dd2a81b9eb0552f6b4e38e5bf340e57cd6a12e83ff577b3d78be2dc2296ade57901ef8d11760dd54c721525fe157fe57e8fcac3d2baf970
DIST giflib-4.1.6.tar.bz2 506050 BLAKE2B 154c95425a570a822447d1fc5bddbecf31fd81473e18d49fdeb93e72ade7541197fc6147b2d4cdf6857b3326b2f4c40e01f026041369242f4e9fbe892cc8e150 SHA512 f47954218ed7d3415cc195a1031a688fcb7dd2bc2b394491830e6b5f5332903ed7c4433b795cd3da9ac53bfc969fe94bec2a4e66b15c0385c732c01b1b7e5057
DIST giflib-5.0.6.tar.bz2 621073 BLAKE2B ae162c281755cae4d00bcbd07273f7c7488ae67c42fef819abae1011eddf801bc4525e326417d3e8a036b18b75d7064de59ceda370e5ded956b22d319c67d3a9 SHA512 117e20319f2df32bdf094678cdececad2b6f33a40baff172d4df68ade86547825ebca81186071bff51e60126692df84dbd7bb5cc4877ba68448f7c47a2cc2491
DIST giflib-5.1.4.tar.bz2 639703 BLAKE2B 5176fbd94c37a86a7f7a3964b6b5f2637d76ba5d40e594a0db52a3a09e22b915a0388fc9bd2f1446dcf66b3b9c0d76741583e4d5d3f7362fa3997e8b26503fc4 SHA512 32b5e342056c210e6478e9cb3b6ceec9594dcfaf34feea1eb4dad633a081ed4465bceee578c19165907cb47cb83912ac359ceea666a8e07dbbb5420f9928f96d
-DIST giflib-5.1.6.tar.gz 391894 BLAKE2B e961236459d7312b41668f19cfb26006af0f0dc1a9741abee3f00d8eeba0dceebe5b03709dfc8170c1b73a6687dd926c5ef92ac2817fe78ab65160e8012d9044 SHA512 a148e3ebee6ad00ac24eb2241e5d7f51c0a22e6e931ebd751ca57b921a2a3d1a17a6d1e0e949ca0401589b539ec1458a57a9e306fadaf03dcd2ec40c11ca28be
+DIST giflib-5.1.7.tar.gz 391525 BLAKE2B d994941f4da324f62a16af973b443660b6cf3ee764e9b7f8c165656037f11d482ccd141e9ac8a81ae1096faa4e264602191ebd039cbf5dd2f55e435aef0ab546 SHA512 b30c3707839a6d66a3e54d92607c303e5ca3d04d6a02d2037fdc8b80386f9a7fa4148727705014481c3c167bdfac2e99d7e4db1ff7f277b64bd2d9193a89f8b0
+DIST giflib-5.1.8.tar.gz 419065 BLAKE2B 4a42120758be15e765dae249d98d25164b40e64f933415412420163c0ed7fd6967d3958fff70478d5635a5bb9a6ed397f06ad6de510f2e97de5574b7c68d84d2 SHA512 d390917837a64de1912720ab8968e6b077c6be9f9a2f835faced44420f54d6d55d4e3543b9779ec65d399858856188fea93c170b253d0b83928f15548a14aba3
EBUILD giflib-4.1.6-r2.ebuild 1383 BLAKE2B 564dfc8776afe92c076aa5bec6c8f58b985bd8b8c3b14621c9946aa8984047a6cf4ffe776a803199ac0417615dc2df270ec8b4b35683f3a657d92f4ccbd415a2 SHA512 71a6621273dd6341e25de0150aa7b194a1143b6e344ba2a77317fd72394f585fe232d9eee5dbd28242773ebaf26072119d5ebe93ae540d4054d7e1d64410059c
EBUILD giflib-4.1.6-r3.ebuild 1482 BLAKE2B 98f35d4ceb7bafcc67b9d66d273ca0362a49e0be0e804c4665c9c723d7e04689429362611b35cf37bd2c9d5df29f422be541ef796f4cda58ec0e6877aa23f5c3 SHA512 752ba45f1c9650a9268c5c9e555f239ec8302549573f508d5c9ce0ba9a1461b8497cde8dfabf180cc6ad8aaca420931b9025188d4743c526c3bdceaa93c1c1ae
EBUILD giflib-5.0.6.ebuild 1060 BLAKE2B 9ee4bc54795eeef8850a5a94129dfb8c73b979d8b1e2f827fe434bf5c9966b5580e4ff0d7946fab757bfcfc18bce87368c2f8ca903e4dfe6c927281c3535041f SHA512 7c0abe0f1450dbdb2b72239e7876f3d2b3e13292c0883c92af6f85a764dd4a14f3391d55b2a21313041f07eebcb086f3fb28141093794b9fbb501c650a59f5a0
-EBUILD giflib-5.1.4-r2.ebuild 1473 BLAKE2B d2b40ef189f9edad3003bbb734b056bdf50bfa626386efee79a7181c578dae4c3080739a8bf012e3a72d779fbc454f2609b46b6273b791fe6b844d2fc1128efa SHA512 d9a4bc42cdb3f8c5ddd47dae36eebbcbb488f4df2bf364c332dd8b576952c26c1fd241d2fd40df5af7938d15afeba4b5b73a41447f0c10795c80afcf4f0fe763
EBUILD giflib-5.1.4.ebuild 1390 BLAKE2B 5e1719539fb2ee35bfc86c64c651534bf72057080c2f7d38e15df4ed4f6d5b7c91cea3ba55a47054455f9953a25c110733bb05e5b75da793c005d779a5dd3373 SHA512 f86b46958b2e977c56dfbd8df548d540a4b1873254abf4c6e1a69c24e696b4928a8f3d56145a545be3528497965e3e4898ab56fbdaf6b9d1c88d8066c170774d
-EBUILD giflib-5.1.6-r1.ebuild 1918 BLAKE2B 7a0219fd96c2862eb8b4087e25a03983c0f1abbfeb8321871ebc487c106b9d88a338c69231efd4561030f58c82dc65fed31b6a5204e48c86094d41f027e6c133 SHA512 b926b6da59cdbd55e3e741d808b11ac5ddc62b2756596349a1a800463e0c772baa7b36a1234591ba75b9d760abc16b1663fb70eaa5b32d57024dd8651c853d20
+EBUILD giflib-5.1.7.ebuild 1918 BLAKE2B 7a0219fd96c2862eb8b4087e25a03983c0f1abbfeb8321871ebc487c106b9d88a338c69231efd4561030f58c82dc65fed31b6a5204e48c86094d41f027e6c133 SHA512 b926b6da59cdbd55e3e741d808b11ac5ddc62b2756596349a1a800463e0c772baa7b36a1234591ba75b9d760abc16b1663fb70eaa5b32d57024dd8651c853d20
+EBUILD giflib-5.1.8-r1.ebuild 1875 BLAKE2B 6b12c444b885ae0a0aa321c76a47281847c92ce4a01363515d8bc3933cc474eb146cc3007221a8c9fe94a3faf7d5b5c25535b5a756a2479eecc8f8e00eec94b8 SHA512 12d8a59b6940a27ff7c0d688f8f71bb808189ad668c50392bc4842b0b119de11792bd56ec5a0b01951d5cb1f369da14cf543b7824c56ab995f525bc6f8db0572
MISC metadata.xml 444 BLAKE2B 50913e89623c9855de9b3344c4f7a9f6266b42d99ab88cd4c6be63b8fb00a984dc05b89efbac92ed2b5980e9bed163473925a88384a61b3887ef86473f89b216 SHA512 10f7b2069a73ae9d488fba9febb6b8edcab5f278e1d68ef5b998037f02de5de81d07983b66f3c4ac8a59fa9a4836b92a909c66a4c1188a97aa03174cf4f546cf
diff --git a/media-libs/giflib/files/giflib-5.1.4-reallocarray-export.patch b/media-libs/giflib/files/giflib-5.1.4-reallocarray-export.patch
deleted file mode 100644
index 1c2a433c29c2..000000000000
--- a/media-libs/giflib/files/giflib-5.1.4-reallocarray-export.patch
+++ /dev/null
@@ -1,128 +0,0 @@
-From dfba2b34d35ddfd47233293f2f28978e8acfc87c Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Wed, 14 Mar 2018 21:18:14 +0100
-Subject: [PATCH] Address clash of export reallocarray with glibc
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-.. by renaming the exported symbol and the related
-function in code and where it's used.
-
-Bug: https://bugs.gentoo.org/637438
-
-Compile error was:
-
-/usr/include/gif_lib.h:248:51: error: declaration of ‘void* reallocarray(void*, size_t, size_t)’ has a different exception specifier
- reallocarray(void *optr, size_t nmemb, size_t size);
- ^
-[..]
-/usr/include/stdlib.h:443:14: error: from previous declaration ‘void* reallocarray(void*, size_t, size_t) throw ()’
- extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
----
- lib/dgif_lib.c | 4 ++--
- lib/gif_lib.h | 2 +-
- lib/gifalloc.c | 10 +++++-----
- lib/openbsd-reallocarray.c | 2 +-
- 4 files changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/lib/dgif_lib.c b/lib/dgif_lib.c
-index 66a1d6a..f0e0385 100644
---- a/lib/dgif_lib.c
-+++ b/lib/dgif_lib.c
-@@ -396,7 +396,7 @@ DGifGetImageDesc(GifFileType *GifFile)
-
- if (GifFile->SavedImages) {
- SavedImage* new_saved_images =
-- (SavedImage *)reallocarray(GifFile->SavedImages,
-+ (SavedImage *)openbsd_reallocarray(GifFile->SavedImages,
- (GifFile->ImageCount + 1), sizeof(SavedImage));
- if (new_saved_images == NULL) {
- GifFile->Error = D_GIF_ERR_NOT_ENOUGH_MEM;
-@@ -1108,7 +1108,7 @@ DGifSlurp(GifFileType *GifFile)
- if (ImageSize > (SIZE_MAX / sizeof(GifPixelType))) {
- return GIF_ERROR;
- }
-- sp->RasterBits = (unsigned char *)reallocarray(NULL, ImageSize,
-+ sp->RasterBits = (unsigned char *)openbsd_reallocarray(NULL, ImageSize,
- sizeof(GifPixelType));
-
- if (sp->RasterBits == NULL) {
-diff --git a/lib/gif_lib.h b/lib/gif_lib.h
-index 078930c..cefc3bb 100644
---- a/lib/gif_lib.h
-+++ b/lib/gif_lib.h
-@@ -245,7 +245,7 @@ extern ColorMapObject *GifUnionColorMap(const ColorMapObject *ColorIn1,
- extern int GifBitSize(int n);
-
- extern void *
--reallocarray(void *optr, size_t nmemb, size_t size);
-+openbsd_reallocarray(void *optr, size_t nmemb, size_t size);
-
- /******************************************************************************
- Support for the in-core structures allocation (slurp mode).
-diff --git a/lib/gifalloc.c b/lib/gifalloc.c
-index 3b51868..1394cfa 100644
---- a/lib/gifalloc.c
-+++ b/lib/gifalloc.c
-@@ -188,7 +188,7 @@ GifUnionColorMap(const ColorMapObject *ColorIn1,
-
- /* perhaps we can shrink the map? */
- if (RoundUpTo < ColorUnion->ColorCount) {
-- GifColorType *new_map = (GifColorType *)reallocarray(Map,
-+ GifColorType *new_map = (GifColorType *)openbsd_reallocarray(Map,
- RoundUpTo, sizeof(GifColorType));
- if( new_map == NULL ) {
- GifFreeMapObject(ColorUnion);
-@@ -232,7 +232,7 @@ GifAddExtensionBlock(int *ExtensionBlockCount,
- if (*ExtensionBlocks == NULL)
- *ExtensionBlocks=(ExtensionBlock *)malloc(sizeof(ExtensionBlock));
- else {
-- ExtensionBlock* ep_new = (ExtensionBlock *)reallocarray
-+ ExtensionBlock* ep_new = (ExtensionBlock *)openbsd_reallocarray
- (*ExtensionBlocks, (*ExtensionBlockCount + 1),
- sizeof(ExtensionBlock));
- if( ep_new == NULL )
-@@ -325,7 +325,7 @@ GifMakeSavedImage(GifFileType *GifFile, const SavedImage *CopyFrom)
- if (GifFile->SavedImages == NULL)
- GifFile->SavedImages = (SavedImage *)malloc(sizeof(SavedImage));
- else
-- GifFile->SavedImages = (SavedImage *)reallocarray(GifFile->SavedImages,
-+ GifFile->SavedImages = (SavedImage *)openbsd_reallocarray(GifFile->SavedImages,
- (GifFile->ImageCount + 1), sizeof(SavedImage));
-
- if (GifFile->SavedImages == NULL)
-@@ -355,7 +355,7 @@ GifMakeSavedImage(GifFileType *GifFile, const SavedImage *CopyFrom)
- }
-
- /* next, the raster */
-- sp->RasterBits = (unsigned char *)reallocarray(NULL,
-+ sp->RasterBits = (unsigned char *)openbsd_reallocarray(NULL,
- (CopyFrom->ImageDesc.Height *
- CopyFrom->ImageDesc.Width),
- sizeof(GifPixelType));
-@@ -369,7 +369,7 @@ GifMakeSavedImage(GifFileType *GifFile, const SavedImage *CopyFrom)
-
- /* finally, the extension blocks */
- if (sp->ExtensionBlocks != NULL) {
-- sp->ExtensionBlocks = (ExtensionBlock *)reallocarray(NULL,
-+ sp->ExtensionBlocks = (ExtensionBlock *)openbsd_reallocarray(NULL,
- CopyFrom->ExtensionBlockCount,
- sizeof(ExtensionBlock));
- if (sp->ExtensionBlocks == NULL) {
-diff --git a/lib/openbsd-reallocarray.c b/lib/openbsd-reallocarray.c
-index aa70686..b922b01 100644
---- a/lib/openbsd-reallocarray.c
-+++ b/lib/openbsd-reallocarray.c
-@@ -27,7 +27,7 @@
- #define MUL_NO_OVERFLOW ((size_t)1 << (sizeof(size_t) * 4))
-
- void *
--reallocarray(void *optr, size_t nmemb, size_t size)
-+openbsd_reallocarray(void *optr, size_t nmemb, size_t size)
- {
- if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
- nmemb > 0 && SIZE_MAX / nmemb < size) {
---
-2.17.0.rc2
-
diff --git a/media-libs/giflib/files/giflib-5.1.8-gentoo.patch b/media-libs/giflib/files/giflib-5.1.8-gentoo.patch
new file mode 100644
index 000000000000..90a72685d343
--- /dev/null
+++ b/media-libs/giflib/files/giflib-5.1.8-gentoo.patch
@@ -0,0 +1,16 @@
+--- giflib-5.1.8/Makefile
++++ giflib-5.1.8/Makefile
+@@ -61,12 +61,11 @@
+ LDLIBS=libgif.a -lm
+
+ all: libgif.so libgif.a $(UTILS)
+- $(MAKE) -C doc
+
+ $(UTILS):: libgif.a
+
+ libgif.so: $(OBJECTS) $(HEADERS)
+- $(CC) $(CFLAGS) -shared $(OFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
++ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
+
+ libgif.a: $(OBJECTS) $(HEADERS)
+ $(AR) rcs libgif.a $(OBJECTS)
diff --git a/media-libs/giflib/giflib-5.1.4-r2.ebuild b/media-libs/giflib/giflib-5.1.4-r2.ebuild
deleted file mode 100644
index 940bfb803e3e..000000000000
--- a/media-libs/giflib/giflib-5.1.4-r2.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils libtool multilib-minimal
-
-DESCRIPTION="Library to handle, display and manipulate GIF images"
-HOMEPAGE="https://sourceforge.net/projects/giflib/"
-SRC_URI="mirror://sourceforge/giflib/${P}.tar.bz2"
-
-LICENSE="MIT"
-SLOT="0/7"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc static-libs"
-
-DEPEND="doc? ( app-text/xmlto )"
-
-PATCHES=(
- "${FILESDIR}"/${P}-reallocarray-export.patch
-)
-
-src_prepare() {
- default
- elibtoolize
-}
-
-multilib_src_configure() {
- local myeconfargs=(
- # No need for xmlto as they ship generated files.
- ac_cv_prog_have_xmlto=no
-
- $(use_enable static-libs static)
- )
-
- ECONF_SOURCE="${S}" \
- econf "${myeconfargs[@]}"
-}
-
-multilib_src_compile() {
- default
-
- if use doc && multilib_is_native_abi; then
- emake -C doc
- fi
-}
-
-multilib_src_install() {
- default
-
- # for static libs the .la file is required if built with +X
- use static-libs || prune_libtool_files --all
-
- if use doc && multilib_is_native_abi; then
- docinto html
- dodoc doc/*.html
- fi
-}
-
-multilib_src_install_all() {
- doman doc/*.1
- docinto
- dodoc AUTHORS BUGS ChangeLog NEWS README TODO
- if use doc; then
- dodoc doc/*.txt
- docinto html
- dodoc -r doc/whatsinagif
- fi
-}
diff --git a/media-libs/giflib/giflib-5.1.6-r1.ebuild b/media-libs/giflib/giflib-5.1.7.ebuild
index 9f1609ae182b..9f1609ae182b 100644
--- a/media-libs/giflib/giflib-5.1.6-r1.ebuild
+++ b/media-libs/giflib/giflib-5.1.7.ebuild
diff --git a/media-libs/giflib/giflib-5.1.8-r1.ebuild b/media-libs/giflib/giflib-5.1.8-r1.ebuild
new file mode 100644
index 000000000000..e16390f179c9
--- /dev/null
+++ b/media-libs/giflib/giflib-5.1.8-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Library to handle, display and manipulate GIF images"
+HOMEPAGE="https://sourceforge.net/projects/giflib/"
+SRC_URI="mirror://sourceforge/giflib/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/7"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc static-libs"
+
+DEPEND="doc? ( app-text/xmlto )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.1.8-gentoo.patch
+)
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ # Use reallocarray() from libc if available.
+ if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_GNU_SOURCE -o "${T}/reallocarray_test" -x c - <<< $'#include <stdlib.h>\nint main() {void *p = reallocarray(NULL, 0, 0);}' 2> /dev/null; then
+ local -x CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -DHAVE_REALLOCARRAY"
+ sed -e "s/ openbsd-reallocarray\.c//" -i Makefile || die
+ rm openbsd-reallocarray.c || die
+ fi
+
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -std=gnu99 -fPIC -Wno-format-truncation" \
+ LDFLAGS="${LDFLAGS}" \
+ OFLAGS="" \
+ all
+
+ if use doc && multilib_is_native_abi; then
+ emake -C doc
+ fi
+}
+
+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() {
+ docinto
+ dodoc ChangeLog NEWS README TODO
+ if use doc ; then
+ dodoc doc/*.txt
+ docinto html
+ dodoc -r doc/whatsinagif
+ fi
+}
+
+multilib_src_test() {
+ emake -j1 check
+}