Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29824 - New ebuild for avidemux-2.0.16 - builds on ppc
Summary: New ebuild for avidemux-2.0.16 - builds on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High enhancement
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-09-28 10:58 UTC by Vincent Strubel
Modified: 2003-09-29 12:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild (avidemux-2.0.16.ebuild.tar.gz,2.04 KB, application/x-tgz)
2003-09-28 11:04 UTC, Vincent Strubel
Details
Patch (patch_jpeg.diff,1.78 KB, text/plain)
2003-09-29 02:31 UTC, Marc Hildebrand (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Strubel 2003-09-28 10:58:22 UTC
avidemux2 has had its code cleaned so that it works on non-x86 architecture. Here's an ebuild 
that works on my ppc system. The binary itself works, as far as I've tested it, except the OSS 
sound output is borked. ALSA, arts, and ALSA-OSS work, though. 
What I've changed (from the 2.0.14 ebuild) : 
- make the divx4linux dependency conditional on x86 
- add a patch to configure.in to fix mmx/endianness detection on ppc 
- filter altivec flags, because they make the compile fail (with gcc-3.2 at least) 
- sed on a source file to remove an invalid cast if (use ppc) 
 
I've also added the dev-lang/nasm dependency for x86, since it is recommended by the 
author, but haven't tested it on x86. 
The avidemux2 developper reportedly had it working on sparc back in July, might be worth a 
try... 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Portage 2.0.49-r5 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-ben2) 
================================================================= 
System uname: 2.4.22-ben2 ppc 
ACCEPT_KEYWORDS="ppc ~ppc" 
AUTOCLEAN="yes" 
CFLAGS="-Os -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt 
-fsigned-char" 
CHOST="powerpc-unknown-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/
config /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/
share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-Os -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec 
-mpowerpc-gfxopt -fsigned-char" 
DISTDIR="/mnt/Portage/portdir/distfiles" 
FEATURES="noauto ccache userpriv digest" 
GENTOO_MIRRORS="http://gentoo.linux.no http://www.ibiblio.org/pub/Linux/distributions/
gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/mnt/Portage/packages" 
PORTAGE_TMPDIR="/mnt/Portage/portage-tmpdir" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="mitshm foomaticdb gnome-libs directfb gdbm berkdb slang bonobo tcltk guile mysql sdl 
gpm tcpd libwww perl python aalib alsa apm arts canna cdr cjk cups dvd encode esd evo fbcon 
gif gnome gtk gtk2 gtkhtml imlib jpeg kde mozilla moznoirc moznomail moznocompose 
mozsvg mpeg nls oggvorbis opengl oss pam pdflib plotutils png qt quicktime readline socks5 ssl 
tetex tiff truetype usb X xv xml2 zlib radeon breakme -java -motif ppc motif samba pic"
Comment 1 Vincent Strubel 2003-09-28 11:04:45 UTC
Created attachment 18430 [details]
The ebuild
Comment 2 Marc Hildebrand (RETIRED) gentoo-dev 2003-09-29 02:31:43 UTC
Created attachment 18458 [details]
Patch

You ebuild works fine here, nice work.
I added two lines to epatch the "save jpeg" bug (see the avidemux - hp for
details).
Attatched you'll find the patch, just add these lines to the ebuild:

# Fixes a save/jpeg - bug
cd ${S}/avidemux; epatch ${FILESDIR}/patch_jpeg.diff; cd ${S}

Just after the mmx/endian patch.

Cheers,
Marc.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-09-29 12:52:06 UTC
in cvs