summaryrefslogtreecommitdiff
blob: 3249a1659b15fcb500ba5551a749b89a4b40ab83 (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
50
51
52
53
54
55
56
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.9-r3.ebuild,v 1.4 2002/02/11 10:49:26 m0rpheus Exp $

P=libmikmod-3.1.9
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="The boldest sound on the planet"
SRC_URI="http://www.mikmod.org/files/libmikmod/${A}"

DEPEND="virtual/glibc
	alsa? ( >=media-libs/alsa-lib-0.5.9 )
	esd? ( >=media-sound/esound-0.2.19 )"


src_compile() {

  local myconf
  if [ "`use esd`" ]
  then
    myconf="--enable-eds"
  else
    myconf="--disable-esd"
  fi
  if [ "`use alsa`" ]
  then
    myconf="$myconf --enable-alsa"
  else
    myconf="$myconf --disable-alsa"
  fi
  if [ "`use oss`" ]
  then
    myconf="$myconf --enable-oss"
  else
    myconf="$myconf --disable-oss"
  fi

  try ./configure --host=${CHOST} --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info \
	$myconf
  try pmake

}

src_install() {

  try make DESTDIR=${D} install

  dodoc AUTHORS COPYING* NEWS PROBLEMS README TODO *.lsm
  docinto html
  dodoc docs/*.html
}