/[gentoo-x86]/media-video/mpeg-movie/mpeg-movie-1.6.0-r1.ebuild
Gentoo

Contents of /media-video/mpeg-movie/mpeg-movie-1.6.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Nov 26 20:51:06 2006 UTC (13 years, 10 months ago) by beandog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
treecleaned, 146692

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mpeg-movie/mpeg-movie-1.6.0-r1.ebuild,v 1.12 2005/07/10 21:11:06 swegener Exp $
4
5 inherit eutils
6
7 MY_P=${PN/-/_}
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="Tools for MPEG-I movies"
10 SRC_URI="http://heroine.linuxave.net/${MY_P}-${PV}.tar.gz"
11 HOMEPAGE="http://heroine.linuxave.net/toys.html"
12
13 SLOT="0"
14 LICENSE="BSD LGPL-2 GPL-2"
15 KEYWORDS="x86"
16 IUSE="nas"
17
18 DEPEND="virtual/x11
19 >=media-libs/jpeg-6b
20 >=media-libs/libsdl-1.1.5"
21
22 src_unpack() {
23 unpack ${A}
24 cd ${S}
25
26 epatch ${FILESDIR}/${PF}-gentoo.patch
27
28 for i in video_in video_out
29 do
30 cd ${S}/${i}
31 cp Makefile Makefile.orig
32 sed -e "s:gnu/types\.h:bits/types\.h:" \
33 -e "s:stdio_lim\.h:bits/stdio_lim\.h:" \
34 -e "s:bytesex\.h::" \
35 -e "s:selectbits\.h::" \
36 -e "s:huge_val\.h:bits/huge_val\.h:" \
37 -e "s:mathcalls\.h:bits/mathcalls\.h:" \
38 -e "s:posix1_lim\.h:bits/posix1_lim\.h:" \
39 -e "s:posix2_lim\.h:bits/posix2_lim\.h:" \
40 -e "s:posix_opt\.h:bits/posix_opt\.h:" \
41 -e "s:local_lim\.h:bits/local_lim\.h:" \
42 -e "s:socketbits\.h::" \
43 -e "s:sockaddrcom\.h::" \
44 -e "s:errnos\.h::" \
45 -e "s:statbuf\.h::" \
46 -e "s:ipc_buf\.h::" \
47 -e "s:shm_buf\.h::" \
48 -e "s:timebits\.h::" \
49 -e "s:confname\.h:bits/confname\.h:" \
50 -e "s:sigset\.h:bits/sigset\.h:" \
51 -e "s:signum\.h:bits/signum\.h:" \
52 -e "s:sigaction\.h:bits/sigaction\.h:" \
53 -e "s:asm/sigcontext\.h:bits/sigcontext\.h:" \
54 -e "s:include/sigcontext\.h:include/bits/sigcontext\.h:" \
55 -e "s:/usr/lib/X11:/usr/X11R6/lib:" \
56 Makefile.orig > Makefile
57 done
58
59 cd ${S}/audio_out
60 cp GNUmake GNUmake.orig
61 sed -e "s:SDL_DIR += /usr/local:SDL_DIR += /usr:" GNUmake.orig > GNUmake
62 if use nas ; then
63 cp GNUmake GNUmake.orig
64 sed -e "s#^SDLLIB := -L#SDLLIB := -L/usr/X11R6/lib -lXt -L#" \
65 GNUmake.orig > GNUmake
66 fi
67
68 cd ${S}/quicktime4linux/src
69 cp Makefile Makefile.orig
70 sed -e "s:c_flags:./c_flags:g" \
71 Makefile.orig > Makefile
72
73 # GCC-3.2.1 fix:
74 cd ${S}/audio_out
75 cp MPEGstream.h MPEGstream.h.orig
76 sed -e 's:\(#include "MPEGerror.h"\):\1\n#include <cstring>:' \
77 MPEGstream.h.orig > MPEGstream.h
78
79 cp MPEGring.h MPEGring.h.orig
80 sed -e 's:\(#include "SDL_mutex.h"\):\1\n#include <cstring>:' \
81 MPEGring.h.orig > MPEGring.h
82
83
84 cp mpeg_export.h mpeg_export.h.orig
85 sed -e 's:\(#include "quicktime.h"\):\1\n#include <cstring>:' \
86 mpeg_export.h.orig > mpeg_export.h
87 }
88
89 src_compile() {
90 emake -j1 || die
91 }
92
93 src_install () {
94 newbin audio_in/encode mpeg_audio_encode
95 newbin audio_out/plaympeg mpeg_audio_play
96 newbin mplex_in/mplex mpeg_mplex
97 newbin mplex_out/dmplex mpeg_dmplex
98 newbin video_in/mpeg_encode mpeg_video_encode
99 dobin video_out/mpeg_play
100
101 dodoc docs/*.txt
102 dohtml -r ./
103 }

  ViewVC Help
Powered by ViewVC 1.1.20