blob: 26e9e5c126aaf026e47acb607bdad9473c74ad0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.12.ebuild,v 1.4 2012/01/21 16:23:07 phajdan.jr Exp $
# this ebuild is only for the libmikmod.so.2 SONAME for ABI compat
EAPI=2
inherit autotools eutils flag-o-matic multilib
DESCRIPTION="A library to play a wide range of module formats"
HOMEPAGE="http://mikmod.raphnet.net/"
SRC_URI="mirror://sourceforge/mikmod/${P}.tar.gz"
LICENSE="|| ( LGPL-2.1 LGPL-2 )"
SLOT="2"
KEYWORDS="amd64 x86"
IUSE="+oss raw"
src_prepare() {
epatch "${FILESDIR}"/${P}-64bit.patch \
"${FILESDIR}"/${P}-autotools.patch \
"${FILESDIR}"/${PN}-3.2.0_beta2-info.patch \
"${FILESDIR}"/${PN}-3.2.0_beta2-doubleRegister.patch \
"${FILESDIR}"/${PN}-CVE-2007-6720.patch \
"${FILESDIR}"/${PN}-CVE-2009-0179.patch \
"${FILESDIR}"/${PN}-3.2.0_beta2-no-drv_raw.patch
AT_M4DIR=${S} eautoreconf
}
src_configure() {
use raw && append-flags -DDRV_RAW
econf \
--disable-af \
--disable-alsa \
--disable-esd \
$(use_enable oss) \
--disable-static
}
src_install() {
exeinto /usr/$(get_libdir)
newexe ${PN}/.libs/${PN}.so.2.0.4 ${PN}.so.2 || die
}
pkg_postinst() {
use oss || ewarn "No audio output will be available because of USE=\"-oss\"."
}
|