diff options
Diffstat (limited to 'media-video/mvc/mvc-0.8.7.ebuild')
-rw-r--r-- | media-video/mvc/mvc-0.8.7.ebuild | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/media-video/mvc/mvc-0.8.7.ebuild b/media-video/mvc/mvc-0.8.7.ebuild index 14fe5fd5ecef..6697abad2586 100644 --- a/media-video/mvc/mvc-0.8.7.ebuild +++ b/media-video/mvc/mvc-0.8.7.ebuild @@ -1,30 +1,38 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mvc/mvc-0.8.7.ebuild,v 1.2 2005/07/28 10:44:32 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/mvc/mvc-0.8.7.ebuild,v 1.3 2006/07/09 20:07:27 flameeyes Exp $ + +inherit toolchain-funcs DESCRIPTION="Motion Video Capture, text mode v4l video capture program with motion detection feature" HOMEPAGE="http://modesto.sourceforge.net/piave/index.html" -MY_P="${P}" -SRC_URI="http://www.turbolinux.com.cn/~merlin/mvc/${MY_P}.tar.gz" +SRC_URI="http://www.turbolinux.com.cn/~merlin/mvc/${P}.tar.gz" -IUSE="nls" +IUSE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="~ppc ~x86" -DEPEND="virtual/x11" +RDEPEND="media-libs/jpeg + media-libs/libpng" +DEPEND="${RDEPEND} + dev-util/pkgconfig" -src_unpack() { - unpack ${A} - cd ${S} - sed -i -e "s:prefix=/usr:prefix=${D}/usr:" Makefile || die "Could not fix install path" +doecho() { + echo "$@" + exec "$@" } src_compile() { - emake || die + doecho $(tc-getCC) \ + ${CFLAGS} -DHAVE_JPEG -DHAVE_PNG $(pkg-config --cflags libpng) \ + ${LDFLAGS} -o mvc \ + mvc.c \ + -ljpeg $(pkg-config --libs libpng) } src_install() { - make DESTDIR=${D} install || die - dodoc AUTHORS ChangeLog README TODO + dobin mvc + doman mvc.1 + dodoc ChangeLog README TODO NEWS } |