blob: 0edb59b2c78e6cdee037e1b1c44eb514b8105eca (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/daaplib/daaplib-0.1.1a.ebuild,v 1.1 2004/03/25 06:29:04 eradicator Exp $
DESCRIPTION="a tiny, portable C++ library to read and write low-level DAAP streams in memory"
HOMEPAGE="http://www.deleet.de/projekte/daap/daaplib/"
SRC_URI="http://deleet.de/projekte/daap/daaplib/${PN}.${PV}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="static"
DEPEND="app-arch/unzip"
RDEPEND=""
S=${WORKDIR}/${PN}.${PV}/daaplib/src
src_compile() {
# There is no configure step
emake || die
if use static; then
ranlib libdaaplib.a
else
c++ -shared --soname=libdaaplib.so -o libdaaplib.so taginput.o tagoutput.o registry.o
fi
}
src_install() {
# Not an autoconf make file :(
if use static; then
dolib.a libdaaplib.a
else
dolib.so libdaaplib.so
fi
mkdir -p ${D}/usr/include/
cp -r ../include/daap ${D}/usr/include/
chmod -R a+r ${D}/usr/include/daap
dodoc ../../COPYING ../../README
}
|