| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsidplay/libsidplay-2.1.1-r2.ebuild,v 1.8 2012/05/16 02:16:03 ssuominen Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit eutils libtool
|
| 7 |
|
| 8 |
MY_P=sidplay-libs-${PV}
|
| 9 |
|
| 10 |
DESCRIPTION="C64 SID player library"
|
| 11 |
HOMEPAGE="http://sidplay2.sourceforge.net/"
|
| 12 |
SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="2"
|
| 16 |
KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
|
| 17 |
IUSE="static-libs"
|
| 18 |
|
| 19 |
S=${WORKDIR}/${MY_P}
|
| 20 |
|
| 21 |
src_prepare() {
|
| 22 |
epatch \
|
| 23 |
"${FILESDIR}"/${PN}2-gcc41.patch \
|
| 24 |
"${FILESDIR}"/${P}-fbsd.patch \
|
| 25 |
"${FILESDIR}"/${P}-gcc43.patch
|
| 26 |
|
| 27 |
elibtoolize
|
| 28 |
}
|
| 29 |
|
| 30 |
src_configure() {
|
| 31 |
econf \
|
| 32 |
--enable-shared \
|
| 33 |
$(use_enable static-libs static) \
|
| 34 |
--with-pic
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
emake DESTDIR="${D}" install
|
| 39 |
|
| 40 |
docinto libsidplay
|
| 41 |
dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
|
| 42 |
|
| 43 |
docinto libsidutils
|
| 44 |
dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
|
| 45 |
|
| 46 |
docinto resid
|
| 47 |
dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
|
| 48 |
|
| 49 |
doenvd "${FILESDIR}"/65resid
|
| 50 |
|
| 51 |
# Libs: -line of libsidutils.pc and libsidplay2.pc reference .la files!
|
| 52 |
# find "${ED}" -name '*.la' -exec rm -f {} +
|
| 53 |
}
|