summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-07-27 02:34:57 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-07-27 02:34:57 +0000
commit27cd9981a9379ede411632635b0b00b9463c3dd4 (patch)
treeff58116dbe6f01c268d3d6eea0d4c385c8ef93dd /media-libs/sdl-image
parentfix TEXTREL #236054 (diff)
downloadgentoo-2-27cd9981a9379ede411632635b0b00b9463c3dd4.tar.gz
gentoo-2-27cd9981a9379ede411632635b0b00b9463c3dd4.tar.bz2
gentoo-2-27cd9981a9379ede411632635b0b00b9463c3dd4.zip
add USE=static-libs support
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'media-libs/sdl-image')
-rw-r--r--media-libs/sdl-image/ChangeLog6
-rw-r--r--media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild10
2 files changed, 12 insertions, 4 deletions
diff --git a/media-libs/sdl-image/ChangeLog b/media-libs/sdl-image/ChangeLog
index a349e940eb1f..f1250f9ec5e9 100644
--- a/media-libs/sdl-image/ChangeLog
+++ b/media-libs/sdl-image/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/sdl-image
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/ChangeLog,v 1.74 2010/07/23 22:07:30 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/ChangeLog,v 1.75 2010/07/27 02:34:57 mr_bones_ Exp $
+
+ 27 Jul 2010; Michael Sterrett <mr_bones_@gentoo.org>
+ sdl-image-1.2.10-r1.ebuild:
+ add USE=static-libs support
23 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
sdl-image-1.2.10-r1.ebuild:
diff --git a/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild b/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild
index 0f5fe95080fa..2466c8febb13 100644
--- a/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild
+++ b/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild,v 1.10 2010/07/23 22:07:30 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/sdl-image-1.2.10-r1.ebuild,v 1.11 2010/07/27 02:34:57 mr_bones_ Exp $
EAPI=2
MY_P="${P/sdl-/SDL_}"
@@ -11,14 +11,13 @@ SRC_URI="http://www.libsdl.org/projects/SDL_image/release/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
-IUSE="gif jpeg tiff png"
+IUSE="gif jpeg png static-libs tiff"
DEPEND="sys-libs/zlib
media-libs/libsdl
png? ( >=media-libs/libpng-1.4 )
jpeg? ( virtual/jpeg )
tiff? ( media-libs/tiff )"
-RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
@@ -27,6 +26,7 @@ src_configure() {
--disable-jpg-shared \
--disable-png-shared \
--disable-tif-shared \
+ $(use_enable static-libs static) \
$(use_enable gif) \
$(use_enable jpeg jpg) \
$(use_enable tiff tif) \
@@ -45,4 +45,8 @@ src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dobin .libs/showimage || die "dobin failed"
dodoc CHANGES README
+ if ! use static-libs ; then
+ find "${D}" -type f -name '*.la' -exec rm {} + \
+ || die "la removal failed"
+ fi
}