summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-04-17 23:48:11 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-04-17 23:48:11 +0000
commitbc9ecac7f6c142faef7c9498cfbe9b75e47f543e (patch)
treed9af44bc4c689ffa46bc9831ea4fb20b14c6adc5 /media-libs/libquicktime
parentInstall test.rb (diff)
downloadgentoo-2-bc9ecac7f6c142faef7c9498cfbe9b75e47f543e.tar.gz
gentoo-2-bc9ecac7f6c142faef7c9498cfbe9b75e47f543e.tar.bz2
gentoo-2-bc9ecac7f6c142faef7c9498cfbe9b75e47f543e.zip
Version bump
(Portage version: 2.1.2.4)
Diffstat (limited to 'media-libs/libquicktime')
-rw-r--r--media-libs/libquicktime/ChangeLog8
-rw-r--r--media-libs/libquicktime/files/digest-libquicktime-1.0.03
-rw-r--r--media-libs/libquicktime/files/libquicktime-1.0.0-cflags.patch40
-rw-r--r--media-libs/libquicktime/libquicktime-1.0.0.ebuild117
4 files changed, 167 insertions, 1 deletions
diff --git a/media-libs/libquicktime/ChangeLog b/media-libs/libquicktime/ChangeLog
index 90f82101ed50..3cc6bcbbe3ec 100644
--- a/media-libs/libquicktime/ChangeLog
+++ b/media-libs/libquicktime/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/libquicktime
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libquicktime/ChangeLog,v 1.84 2007/03/27 15:02:07 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libquicktime/ChangeLog,v 1.85 2007/04/17 23:48:11 aballier Exp $
+
+*libquicktime-1.0.0 (17 Apr 2007)
+
+ 17 Apr 2007; Alexis Ballier <aballier@gentoo.org>
+ +files/libquicktime-1.0.0-cflags.patch, +libquicktime-1.0.0.ebuild:
+ Version bump
27 Mar 2007; Raúl Porcel <armin76@gentoo.org> libquicktime-0.9.10.ebuild:
ia64 stable wrt bug 157814
diff --git a/media-libs/libquicktime/files/digest-libquicktime-1.0.0 b/media-libs/libquicktime/files/digest-libquicktime-1.0.0
new file mode 100644
index 000000000000..1d05aa0bc046
--- /dev/null
+++ b/media-libs/libquicktime/files/digest-libquicktime-1.0.0
@@ -0,0 +1,3 @@
+MD5 2f609e3ef5e760f44022f6c4b66d6a01 libquicktime-1.0.0.tar.gz 998950
+RMD160 8f3b2dd22bdff8bc09d33b84164a684581ee8ece libquicktime-1.0.0.tar.gz 998950
+SHA256 60c478fd81450e18a1fcf1bcee672d5cd04c4ca5871ffb709ef6a635111141a4 libquicktime-1.0.0.tar.gz 998950
diff --git a/media-libs/libquicktime/files/libquicktime-1.0.0-cflags.patch b/media-libs/libquicktime/files/libquicktime-1.0.0-cflags.patch
new file mode 100644
index 000000000000..03da11e82be7
--- /dev/null
+++ b/media-libs/libquicktime/files/libquicktime-1.0.0-cflags.patch
@@ -0,0 +1,40 @@
+Index: libquicktime-1.0.0/configure.ac
+===================================================================
+--- libquicktime-1.0.0.orig/configure.ac
++++ libquicktime-1.0.0/configure.ac
+@@ -7,6 +7,8 @@ LQT_VERSION_MAJOR=`echo $VERSION | cut -
+ LQT_VERSION_MINOR=`echo $VERSION | cut -d . -f 2`
+ LQT_VERSION_MICRO=`echo $VERSION | cut -d . -f 3 | cut -d p -f 1`
+
++USER_CFLAGS=$CFLAGS
++
+ AM_CONFIG_HEADER(config.h)
+
+ AC_CANONICAL_HOST
+@@ -693,10 +695,15 @@ for i in $lqt_test_cflags; do
+ LQT_TRY_CFLAGS($i, COMMON_CFLAGS="$COMMON_CFLAGS $i") ;
+ done
+
++if test "x${USER_CFLAGS}" = "x"; then
++
++ dnl Optimizing flags
+
+-dnl Optimizing flags
++ LQT_OPT_CFLAGS($host_cpu, ["-O3 -funroll-all-loops -fomit-frame-pointer"])
+
+-LQT_OPT_CFLAGS($host_cpu, ["-O3 -funroll-all-loops -fomit-frame-pointer"])
++ CFLAGS="$OPT_CFLAGS"
++
++fi
+
+ AH_TEMPLATE([NDEBUG],
+ [Causes debug code to e removed])
+@@ -705,7 +712,7 @@ if test x$LQT_DEBUG != xtrue; then
+ AC_DEFINE(NDEBUG)
+ fi
+
+-CFLAGS="$OPT_CFLAGS $COMMON_CFLAGS"
++CFLAGS="$CFLAGS $COMMON_CFLAGS"
+
+ # -L is required so that linker can find libquicktime when DESTDIR is used.
+ # libtool bug, documented at: http://www.geocrawler.com/mail/thread.php3?subject=install+phase+fails&list=404
diff --git a/media-libs/libquicktime/libquicktime-1.0.0.ebuild b/media-libs/libquicktime/libquicktime-1.0.0.ebuild
new file mode 100644
index 000000000000..3f941a09f791
--- /dev/null
+++ b/media-libs/libquicktime/libquicktime-1.0.0.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libquicktime/libquicktime-1.0.0.ebuild,v 1.1 2007/04/17 23:48:11 aballier Exp $
+
+WANT_AUTOMAKE="latest"
+WANT_AUTOCONF="latest"
+inherit libtool eutils autotools
+
+DESCRIPTION="A library based on quicktime4linux with extensions"
+HOMEPAGE="http://libquicktime.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="mmx X opengl dv gtk alsa aac encode png jpeg vorbis lame x264 ffmpeg"
+
+RDEPEND="dv? ( media-libs/libdv )
+ gtk? ( >=x11-libs/gtk+-2.4.0 )
+ aac? (
+ media-libs/faad2
+ encode? ( media-libs/faac )
+ )
+ alsa? ( media-libs/alsa-lib )
+ png? ( media-libs/libpng )
+ jpeg? ( media-libs/jpeg )
+ vorbis? ( media-libs/libvorbis media-libs/libogg )
+ lame? ( media-sound/lame )
+ ffmpeg? ( media-video/ffmpeg )
+ x264? ( >=media-libs/x264-svn-20060810 )
+ X? ( x11-libs/libXaw
+ x11-libs/libXv
+ x11-libs/libXext
+ x11-libs/libX11
+ opengl? ( media-libs/mesa )
+ )
+ !virtual/quicktime"
+DEPEND="${RDEPEND}
+ X? (
+ x11-proto/videoproto
+ x11-proto/xextproto
+ )
+ dev-util/pkgconfig"
+
+PROVIDE="virtual/quicktime"
+
+pkg_setup() {
+ if has_version '=x11-base/xorg-x11-6*' && ! built_with_use x11-base/xorg-x11 xv; then
+ die "You need xv support to compile ${PN}."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-cflags.patch"
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_compile() {
+ local MY_OPTS=""
+ if use !encode || use !aac; then
+ MY_OPTS="--without-faac"
+ fi
+
+ econf --enable-shared \
+ --enable-static \
+ --enable-gpl \
+ $(use_enable mmx) \
+ $(use_with X x) \
+ $(use_with gtk) \
+ $(use_with dv libdv) \
+ $(use_with alsa) \
+ $(use_with aac faad2) \
+ $(use_with png libpng) \
+ $(use_with jpeg libjpeg) \
+ $(use vorbis || echo "--without-vorbis") \
+ $(use_with lame) \
+ $(use_with x264) \
+ $(use_with ffmpeg) \
+ $(use_with opengl) \
+ ${MY_OPTS} \
+ --without-cpuflags || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # Compatibility with software that uses quicktime prefix, but
+ # don't do that when building for Darwin/MacOS
+ [[ ${CHOST} != *-darwin* ]] && \
+ dosym /usr/include/lqt /usr/include/quicktime
+}
+
+pkg_preinst() {
+ if [[ -d /usr/include/quicktime && ! -L /usr/include/quicktime ]]; then
+ einfo "For compatibility with other quicktime libraries, ${PN} was"
+ einfo "going to create a /usr/include/quicktime symlink, but for some"
+ einfo "reason that is a directory on your system."
+
+ if $(has_version =media-libs/libquicktime-0.9.4); then
+ einfo "It seems this directory belongs to libquicktime-0.9.4."
+ einfo "We'll delete that directory now."
+ rm -rvf /usr/include/quicktime
+ else
+ einfo "Please check that is empty, and remove it, or submit a bug"
+ einfo "telling us which package owns the directory."
+ die "/usr/include/quicktime is a directory."
+ fi
+ fi
+}
+