/[gentoo-x86]/media-libs/libquicktime/libquicktime-1.2.2.ebuild
Gentoo

Contents of /media-libs/libquicktime/libquicktime-1.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Mar 30 13:08:56 2012 UTC (2 years, 5 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libquicktime/libquicktime-1.2.2.ebuild,v 1.10 2011/04/25 20:55:53 aballier Exp $
4
5 EAPI=1
6
7 inherit libtool eutils
8
9 MY_P=${P/_pre/pre}
10
11 DESCRIPTION="A library based on quicktime4linux with extensions"
12 HOMEPAGE="http://libquicktime.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
18 IUSE="mmx X opengl dv gtk alsa aac encode png jpeg vorbis lame x264 ffmpeg doc schroedinger"
19
20 RDEPEND="dv? ( media-libs/libdv )
21 gtk? ( >=x11-libs/gtk+-2.4.0:2 )
22 aac? (
23 media-libs/faad2
24 encode? ( media-libs/faac )
25 )
26 alsa? ( >=media-libs/alsa-lib-1.0.16 )
27 png? ( media-libs/libpng )
28 jpeg? ( virtual/jpeg )
29 vorbis? ( media-libs/libvorbis media-libs/libogg )
30 lame? ( media-sound/lame )
31 ffmpeg? ( virtual/ffmpeg )
32 x264? ( media-libs/x264 )
33 schroedinger? ( >=media-libs/schroedinger-1.0.5 )
34 X? ( x11-libs/libXaw
35 x11-libs/libXv
36 x11-libs/libXext
37 x11-libs/libX11
38 opengl? ( media-libs/mesa )
39 )
40 virtual/libintl"
41 DEPEND="${RDEPEND}
42 X? (
43 x11-proto/videoproto
44 x11-proto/xextproto
45 )
46 doc? ( app-doc/doxygen )
47 dev-util/pkgconfig
48 sys-devel/gettext"
49
50 S=${WORKDIR}/${MY_P}
51
52 src_unpack() {
53 unpack ${A}
54 cd "${S}"
55
56 epatch "${FILESDIR}/${P}-ffmpeg07.patch"
57 # Needed for sane .so versionning on g/fbsd
58 elibtoolize
59 }
60
61 src_compile() {
62 local MY_OPTS=""
63 if use !encode || use !aac; then
64 MY_OPTS="--without-faac"
65 fi
66
67 econf --enable-shared \
68 --enable-static \
69 --enable-gpl \
70 $(use_with doc doxygen) \
71 $(use_enable mmx asm) \
72 $(use_with X x) \
73 $(use_with gtk) \
74 $(use_with dv libdv) \
75 $(use_with alsa) \
76 $(use_with aac faad2) \
77 $(use_with png libpng) \
78 $(use_with jpeg libjpeg) \
79 $(use vorbis || echo "--without-vorbis") \
80 $(use_with lame) \
81 $(use_with x264) \
82 $(use_with ffmpeg) \
83 $(use_with opengl) \
84 $(use_with schroedinger) \
85 ${MY_OPTS} \
86 --without-cpuflags || die "econf failed"
87
88 emake || die "emake failed"
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "emake install failed"
93
94 dodoc README TODO ChangeLog
95 # Compatibility with software that uses quicktime prefix, but
96 # don't do that when building for Darwin/MacOS
97 [[ ${CHOST} != *-darwin* ]] && \
98 dosym /usr/include/lqt /usr/include/quicktime
99 }
100
101 pkg_preinst() {
102 if [[ -d /usr/include/quicktime && ! -L /usr/include/quicktime ]]; then
103 elog "For compatibility with other quicktime libraries, ${PN} was"
104 elog "going to create a /usr/include/quicktime symlink, but for some"
105 elog "reason that is a directory on your system."
106
107 elog "Please check that is empty, and remove it, or submit a bug"
108 elog "telling us which package owns the directory."
109 die "/usr/include/quicktime is a directory."
110 fi
111 }

  ViewVC Help
Powered by ViewVC 1.1.20