You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/librosprite/librosprite-9999.ebuild

39 lines
959 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/librosprite/librosprite-9999.ebuild,v 1.2 2012/07/18 09:25:56 xmw Exp $
EAPI=4
inherit git-2 multilib toolchain-funcs
DESCRIPTION="framebuffer abstraction library, written in C"
HOMEPAGE="http://www.netsurf-browser.org/projects/librosprite/"
EGIT_REPO_URI="git://git.netsurf-browser.org/${PN}.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND=""
DEPEND="virtual/pkgconfig"
src_prepare() {
sed -e '/^\(C\|LD\)FLAGS = -g /s:= -g :+= :' \
-e "/^CC =/s:=.*:= $(tc-getCC):" \
-e "/^LD =/s:=.*:= $(tc-getCC):" \
-e "/^AR =/s:=.*:= $(tc-getAR):" \
-e "/^install/,/^uninstall/s:/lib:/$(get_libdir):" \
-i Makefile || die
sed -e "/^libdir/s:/lib:/$(get_libdir):g" \
-i ${PN}.pc.in || die
}
src_compile() {
emake PREFIX=/usr
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}