blob: 9743ced0a5ab4c4ff52185c06954d306ee0b74fc (
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
57
58
59
60
61
62
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/camserv/camserv-0.5.1-r2.ebuild,v 1.3 2003/10/06 08:21:23 phosphan Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A streaming video server."
SRC_URI="mirror://sourceforge/cserv/${P}.tar.gz"
HOMEPAGE="http://cserv.sourceforge.net/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND=">=media-libs/jpeg-6b-r2
>=media-libs/imlib-1.9.13-r2"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-0.5-errno.patch
}
src_compile() {
_CC="${CC}"
_CFLAGS="${CFLAGS}"
_CXXFLAGS="${CXXFLAGS}"
_CHOST="${CHOST}"
unset CC
unset CFLAGS
unset CXXFLAGS
unset CHOST
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib || die "./configure failed"
CC="${_CC}"
CFLAGS="${_CFLAGS}"
CXXFLAGS="${_CXXFLAGS}"
CHOST="${_CHOST}"
emake || die
}
src_install () {
einstall datadir=${D}/usr/share/${PN} || die
dodoc AUTHORS BUGS ChangeLog COPYING NEWS README TODO javascript.txt
dohtml defpage.html
# new init script
insinto /etc/init.d
newins ${FILESDIR}/camserv.init camserv
fperms +x /etc/init.d/camserv
}
|