summaryrefslogtreecommitdiff
blob: 90ad35074b7058bade3347af1d5697678da4b10d (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
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-video/zapping/zapping-0.6.1-r1.ebuild,v 1.6 2002/07/11 06:30:42 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Zapping is a TV- and VBI- viewer for the Gnome environment."
SRC_URI="mirror://sourceforge/zapping/${P}.tar.gz"
HOMEPAGE="http://zapping.sourceforge.net"

DEPEND=">=gnome-base/gnome-libs-1.4.1.2-r1
	>=gnome-base/libglade-0.17-r1
	=x11-libs/gtk+-1.2*"

src_compile() {
	./configure --prefix=/usr --infodir=/usr/share/info     \
		--mandir=/usr/share/man --host=${CHOST} || die

	# Fix problem with new include structure (yes Hallski, I did try your way,
	# but it breaks it even more :)
	mv src/Makefile src/Makefile.orig
	sed -e 's/INCLUDES \= \$(COMMON_INCLUDES)/INCLUDES \= \$(COMMON_INCLUDES) -I\/usr\/include\/libglade-1.0 /' src/Makefile.orig >src/Makefile

	emake || die
}

src_install () {
	make prefix=${D}/usr				\
	     sysconfdir=${D}/etc			\
	     infodir=${D}/usr/share/info	\
	     mandir=${D}/usr/share/man		\
		 PACKAGE_LIB_DIR=${D}/usr/lib/zapping \
		 PACKAGE_PIXMAPS_DIR=${D}/usr/share/pixmaps/zapping \
		 PLUGIN_DEFAULT_DIR=${D}/usr/lib/zapping/plugins \
	     install || die
	rm ${D}/usr/bin/zapzilla
	dosym /usr/bin/zapping /usr/bin/zapzilla
	dodoc AUTHORS COPYING ChangeLog NEWS README TODO
}