diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/libtheora | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/libtheora')
-rw-r--r-- | media-libs/libtheora/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libtheora/files/libtheora-1.0_beta2-flags.patch | 14 | ||||
-rw-r--r-- | media-libs/libtheora/files/libtheora-1.1.1-libpng16.patch | 17 | ||||
-rw-r--r-- | media-libs/libtheora/files/libtheora-1.1.1-underlinking.patch | 14 | ||||
-rw-r--r-- | media-libs/libtheora/libtheora-1.1.1-r1.ebuild | 93 | ||||
-rw-r--r-- | media-libs/libtheora/libtheora-1.1.1.ebuild | 77 | ||||
-rw-r--r-- | media-libs/libtheora/metadata.xml | 8 |
7 files changed, 224 insertions, 0 deletions
diff --git a/media-libs/libtheora/Manifest b/media-libs/libtheora/Manifest new file mode 100644 index 000000000000..4c55ef94070b --- /dev/null +++ b/media-libs/libtheora/Manifest @@ -0,0 +1 @@ +DIST libtheora-1.1.1.tar.bz2 1903175 SHA256 b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc SHA512 9ab9b3af1c35d16a7d6d84f61f59ef3180132e30c27bdd7c0fa2683e0d00e2c791accbc7fd2c90718cc947d8bd10ee4a5940fb55f90f1fd7b0ed30583a47dbbd WHIRLPOOL deeb71454da7b32e3561ef31925e685170123bb18b0b4963db18cad8c422ede3a8e0a29662dbd45edce51ceca12c7ad5d2fe70f33db0c3a9b1cabe84fb37376b diff --git a/media-libs/libtheora/files/libtheora-1.0_beta2-flags.patch b/media-libs/libtheora/files/libtheora-1.0_beta2-flags.patch new file mode 100644 index 000000000000..a47cc5771680 --- /dev/null +++ b/media-libs/libtheora/files/libtheora-1.0_beta2-flags.patch @@ -0,0 +1,14 @@ +diff -ur libtheora-1.0beta2.orig/configure.ac libtheora-1.0beta2/configure.ac +--- libtheora-1.0beta2.orig/configure.ac 2007-10-13 00:01:38.000000000 +0300 ++++ libtheora-1.0beta2/configure.ac 2007-11-25 22:44:49.000000000 +0200 +@@ -102,8 +102,8 @@ + case $host in + *) + DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES" +- CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops" +- PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";; ++ CFLAGS="-Wall -Wno-parentheses" ++ PROFILE="-Wall -Wno-parentheses -pg -g -fno-inline-functions -DDEBUG";; + esac + fi + CFLAGS="$CFLAGS $cflags_save" diff --git a/media-libs/libtheora/files/libtheora-1.1.1-libpng16.patch b/media-libs/libtheora/files/libtheora-1.1.1-libpng16.patch new file mode 100644 index 000000000000..93da700c4d7a --- /dev/null +++ b/media-libs/libtheora/files/libtheora-1.1.1-libpng16.patch @@ -0,0 +1,17 @@ +http://bugs.gentoo.org/465450 +http://trac.xiph.org/ticket/1947 + +--- examples/png2theora.c ++++ examples/png2theora.c +@@ -462,9 +462,9 @@ + png_set_strip_alpha(png_ptr); + + row_data = (png_bytep)png_malloc(png_ptr, +- 3*height*width*png_sizeof(*row_data)); ++ 3*height*width*sizeof(*row_data)); + row_pointers = (png_bytep *)png_malloc(png_ptr, +- height*png_sizeof(*row_pointers)); ++ height*sizeof(*row_pointers)); + for(y = 0; y < height; y++) { + row_pointers[y] = row_data + y*(3*width); + } diff --git a/media-libs/libtheora/files/libtheora-1.1.1-underlinking.patch b/media-libs/libtheora/files/libtheora-1.1.1-underlinking.patch new file mode 100644 index 000000000000..b45a368ebd76 --- /dev/null +++ b/media-libs/libtheora/files/libtheora-1.1.1-underlinking.patch @@ -0,0 +1,14 @@ +http://bugs.gentoo.org/504270 + +--- examples/Makefile.am ++++ examples/Makefile.am +@@ -22,7 +22,7 @@ + + player_example_SOURCES = player_example.c + player_example_CFLAGS = $(SDL_CFLAGS) $(OGG_CFLAGS) $(VORBIS_CFLAGS) +-player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS) ++player_example_LDADD = $(LDADDDEC) $(SDL_LIBS) $(VORBIS_LIBS) $(OSS_LIBS) -lm + + encoder_example_SOURCES = encoder_example.c + EXTRA_encoder_example_SOURCES = getopt.c getopt1.c getopt.h + diff --git a/media-libs/libtheora/libtheora-1.1.1-r1.ebuild b/media-libs/libtheora/libtheora-1.1.1-r1.ebuild new file mode 100644 index 000000000000..91c24a15693b --- /dev/null +++ b/media-libs/libtheora/libtheora-1.1.1-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic multilib-minimal + +DESCRIPTION="The Theora Video Compression Codec" +HOMEPAGE="http://www.theora.org" +SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="doc +encode examples static-libs" + +RDEPEND=">=media-libs/libogg-1.3.0:=[${MULTILIB_USEDEP}] + encode? ( >=media-libs/libvorbis-1.3.3-r1:=[${MULTILIB_USEDEP}] ) + examples? ( + media-libs/libpng:0= + >=media-libs/libsdl-0.11.0 + media-libs/libvorbis:= + ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r1 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" +REQUIRED_USE="examples? ( encode )" #285895 + +S=${WORKDIR}/${P/_} + +VARTEXFONTS=${T}/fonts + +DOCS=( AUTHORS CHANGES README ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.0_beta2-flags.patch \ + "${FILESDIR}"/${P}-underlinking.patch \ + "${FILESDIR}"/${P}-libpng16.patch #465450 + + # bug 467006 + sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac || die + + AT_M4DIR=m4 eautoreconf +} + +multilib_src_configure() { + use x86 && filter-flags -fforce-addr -frename-registers #200549 + use doc || export ac_cv_prog_HAVE_DOXYGEN=false + + local myconf + if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then + myconf=" $(use_enable examples)" + else + # those will be overwritten anyway + myconf=" --disable-examples" + fi + + # --disable-spec because LaTeX documentation has been prebuilt + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + --disable-spec \ + $(use_enable encode) \ + ${myconf} +} + +multilib_src_install() { + emake \ + DESTDIR="${D}" \ + docdir="${EPREFIX}"/usr/share/doc/${PF} \ + install + + if use examples && [ "${ABI}" = "${DEFAULT_ABI}" ]; then + dobin examples/.libs/png2theora + for bin in dump_{psnr,video} {encoder,player}_example; do + newbin examples/.libs/${bin} theora_${bin} + done + fi +} + +multilib_src_install_all() { + prune_libtool_files + einstalldocs + + if use examples && use doc; then + docinto examples + dodoc examples/*.[ch] + docompress -x /usr/share/doc/${PF}/examples + docinto . + fi +} diff --git a/media-libs/libtheora/libtheora-1.1.1.ebuild b/media-libs/libtheora/libtheora-1.1.1.ebuild new file mode 100644 index 000000000000..ddac4368c998 --- /dev/null +++ b/media-libs/libtheora/libtheora-1.1.1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic + +DESCRIPTION="The Theora Video Compression Codec" +HOMEPAGE="http://www.theora.org" +SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-aix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="doc +encode examples static-libs" + +RDEPEND="media-libs/libogg:= + encode? ( media-libs/libvorbis:= ) + examples? ( + media-libs/libpng:0= + >=media-libs/libsdl-0.11.0 + media-libs/libvorbis:= + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" +REQUIRED_USE="examples? ( encode )" #285895 + +S=${WORKDIR}/${P/_} + +VARTEXFONTS=${T}/fonts + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.0_beta2-flags.patch \ + "${FILESDIR}"/${P}-libpng16.patch #465450 + + # bug 467006 + sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac || die + + AT_M4DIR=m4 eautoreconf +} + +src_configure() { + use x86 && filter-flags -fforce-addr -frename-registers #200549 + use doc || export ac_cv_prog_HAVE_DOXYGEN=false + + # --disable-spec because LaTeX documentation has been prebuilt + econf \ + $(use_enable static-libs static) \ + --disable-spec \ + $(use_enable encode) \ + $(use_enable examples) +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir="${EPREFIX}"/usr/share/doc/${PF} \ + install + + dodoc AUTHORS CHANGES README + + if use examples; then + if use doc; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.[ch] + fi + + dobin examples/.libs/png2theora + for bin in dump_{psnr,video} {encoder,player}_example; do + newbin examples/.libs/${bin} theora_${bin} + done + fi + + prune_libtool_files +} diff --git a/media-libs/libtheora/metadata.xml b/media-libs/libtheora/metadata.xml new file mode 100644 index 000000000000..1cadc2e4ec21 --- /dev/null +++ b/media-libs/libtheora/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>video</herd> +<maintainer> + <email>media-video@gentoo.org</email> +</maintainer> +</pkgmetadata> |