summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-07-17 23:29:19 +0000
committerMichael Weber <xmw@gentoo.org>2012-07-17 23:29:19 +0000
commitda1b6fc6b33423d7d99a95f0d2d027dc06a1a9b9 (patch)
tree3d959100f4dbfab34e819a6095f5278da885e6ab /media-libs/libnsbmp/libnsbmp-0.0.3.ebuild
parentRemove versions installing into /etc/udev/rules.d (diff)
downloadhistorical-da1b6fc6b33423d7d99a95f0d2d027dc06a1a9b9.tar.gz
historical-da1b6fc6b33423d7d99a95f0d2d027dc06a1a9b9.tar.bz2
historical-da1b6fc6b33423d7d99a95f0d2d027dc06a1a9b9.zip
Initial import
Package-Manager: portage-2.1.11.7/cvs/Linux x86_64
Diffstat (limited to 'media-libs/libnsbmp/libnsbmp-0.0.3.ebuild')
-rw-r--r--media-libs/libnsbmp/libnsbmp-0.0.3.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/media-libs/libnsbmp/libnsbmp-0.0.3.ebuild b/media-libs/libnsbmp/libnsbmp-0.0.3.ebuild
new file mode 100644
index 000000000000..62aa36ba0c90
--- /dev/null
+++ b/media-libs/libnsbmp/libnsbmp-0.0.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libnsbmp/libnsbmp-0.0.3.ebuild,v 1.1 2012/07/17 23:29:19 xmw Exp $
+
+EAPI=4
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="decoding library for BMP and ICO image file formats, written in C"
+HOMEPAGE="http://www.netsurf-browser.org/projects/libnsbmp/"
+SRC_URI="http://download.netsurf-browser.org/libs/releases/${P}-src.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE="static-libs"
+
+RDEPEND=""
+DEPEND=""
+
+src_prepare() {
+ sed -e "/^INSTALL_ITEMS/s: /lib: /$(get_libdir):g" \
+ -e "s:-Werror::g" \
+ -i Makefile || die
+ sed -e "/^libdir/s:/lib:/$(get_libdir):g" \
+ -i ${PN}.pc.in || die
+ echo "Q := " >> Makefile.config.override
+ echo "CC := $(tc-getCC)" >> Makefile.config.override
+ echo "AR := $(tc-getAR)" >> Makefile.config.override
+}
+
+src_compile() {
+ emake COMPONENT_TYPE=lib-shared
+ use static-libs && emake COMPONENT_TYPE=lib-static
+}
+
+src_test() {
+ emake COMPONENT_TYPE=lib-shared test
+ use static-libs && emake COMPONENT_TYPE=lib-static test
+}
+
+src_install() {
+ emake COMPONENT_TYPE=lib-shared DESTDIR="${D}" PREFIX=/usr install
+ use static-libs && \
+ emake COMPONENT_TYPE=lib-static DESTDIR="${D}" PREFIX=/usr install
+}