/[gentoo-x86]/media-tv/xawtv/xawtv-3.95-r2.ebuild
Gentoo

Contents of /media-tv/xawtv/xawtv-3.95-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Oct 24 19:18:50 2012 UTC (2 years, 6 months ago) by ulm
Branch: MAIN
Changes since 1.8: +3 -3 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/xawtv-3.95-r2.ebuild,v 1.8 2011/03/15 22:29:14 ulm Exp $
4
5 EAPI=1
6
7 inherit eutils font autotools flag-o-matic
8
9 PATCHLEVEL="4"
10
11 IUSE="aalib alsa dv lirc mmx motif nls opengl quicktime X xv zvbi xext"
12
13 MY_FONT=tv-fonts-1.1
14 DESCRIPTION="Small suite of video4linux related software"
15 HOMEPAGE="http://bytesex.org/xawtv/"
16 SRC_URI="http://dl.bytesex.org/releases/xawtv/${P}.tar.gz
17 X? ( http://dl.bytesex.org/releases/tv-fonts/${MY_FONT}.tar.bz2 )
18 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
19
20 SLOT="0"
21 LICENSE="GPL-2"
22 KEYWORDS="alpha amd64 ia64 ~ppc ~sparc x86"
23
24 RDEPEND=">=sys-libs/ncurses-5.1
25 virtual/jpeg
26 X? (
27 x11-libs/libFS
28 x11-libs/libXmu
29 x11-libs/libX11
30 x11-libs/libXaw
31 x11-libs/libXt
32 x11-libs/libXext
33 x11-libs/libXrender
34 xext? (
35 x11-libs/libXinerama
36 x11-libs/libXxf86dga
37 x11-libs/libXrandr
38 x11-libs/libXxf86vm
39 )
40 x11-apps/xset
41 xv? ( x11-libs/libXv )
42 )
43 motif? ( >=x11-libs/motif-2.3:0
44 app-text/recode )
45 alsa? ( media-libs/alsa-lib )
46 aalib? ( media-libs/aalib )
47 dv? ( media-libs/libdv )
48 lirc? ( app-misc/lirc )
49 opengl? ( virtual/opengl )
50 quicktime? ( media-libs/libquicktime )
51 zvbi? ( media-libs/zvbi
52 media-libs/libpng )"
53
54 DEPEND="${RDEPEND}
55 X? (
56 x11-apps/xset
57 x11-apps/bdftopcf
58 x11-proto/videoproto
59 xext? ( x11-proto/xineramaproto )
60 )"
61
62 pkg_setup() {
63 if use X; then
64 font_pkg_setup
65 fi
66 }
67
68 src_unpack() {
69 unpack ${A}
70 if use X; then
71 cd "${WORKDIR}/${MY_FONT}"
72 epatch "${WORKDIR}/patches/extra/${MY_FONT}-nox.patch"
73 fi
74 cd "${S}"
75
76 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
77 epatch "${FILESDIR}/${P}-libquicktime-compat.patch"
78 epatch "${FILESDIR}/${P}-pagemask-fix.patch"
79 epatch "${FILESDIR}/${P}-jpeg-7.patch"
80 eautoreconf
81 }
82
83 src_compile() {
84 # It tries to include FSlib.h directly, but this seems to have moved.
85 use X && has_version x11-libs/libFS && append-flags -I/usr/include/X11/fonts
86
87 econf \
88 $(use_with X x) \
89 $(use_enable xext xfree-ext) \
90 $(use_enable xv xvideo) \
91 $(use_enable dv) \
92 $(use_enable mmx) \
93 $(use_enable motif) \
94 $(use_enable quicktime) \
95 $(use_enable alsa) \
96 $(use_enable lirc) \
97 $(use_enable opengl gl) \
98 $(use_enable zvbi) \
99 $(use_enable aalib aa) \
100 || die " xawtv configure failed"
101
102 emake verbose=yes || die "Make failed"
103
104 if use X; then
105 cd "${WORKDIR}/${MY_FONT}"
106 emake -j1 DISPLAY= || die "tvfonts failed"
107 fi
108 }
109
110 src_install() {
111 make install DESTDIR="${D}" resdir="${D}"/etc/X11 || die "make install failed"
112
113 # v4lctl is only installed automatically if the X USE flag is enabled
114 use X || \
115 dobin x11/v4lctl
116
117 dodoc Changes README* TODO "${FILESDIR}"/webcamrc
118 docinto cgi-bin
119 dodoc scripts/webcam.cgi
120
121 use X || \
122 rm -f "${D}"/usr/share/man/man1/{pia,propwatch}.1 \
123 "${D}"/usr/share/{man,man/fr,man/es}/man1/xawtv.1 \
124 "${D}"/usr/share/{man,man/es}/man1/rootv.1
125
126 use motif || \
127 rm -f "${D}"/usr/share/man/man1/{motv,mtt}.1
128
129 use zvbi || \
130 rm -f "${D}"/usr/share/man/man1/{alevtd,mtt}.1 \
131 "${D}"/usr/share/{man,man/es}/man1/scantv.1
132
133 use nls || \
134 rm -f "${D}"/usr/share/man/fr \
135 "${D}"/usr/share/man/es
136
137 # The makefile seems to be fubar'd for some data
138 dodir /usr/share/${PN}
139 mv "${D}"/usr/share/*.list "${D}"/usr/share/${PN}
140 mv "${D}"/usr/share/Index* "${D}"/usr/share/${PN}
141
142 if use X; then
143 cd "${WORKDIR}/${MY_FONT}"
144 insinto /usr/share/fonts/xawtv
145 doins *.gz fonts.alias
146
147 font_xfont_config
148 fi
149 }
150
151 pkg_postinst() {
152 if use X; then
153 ebegin "installing teletype fonts into /usr/share/fonts/xawtv"
154 cd /usr/share/fonts/xawtv
155 mkfontdir
156 eend
157 fi
158 }

  ViewVC Help
Powered by ViewVC 1.1.20