Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 73542 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-video/ffmpeg/ffmpeg-0.4.9_p20050226-r5.ebuild (-1 / +20 lines)
Lines 18-24 Link Here
18
SLOT="0"
18
SLOT="0"
19
# ~alpha need to test aac useflag
19
# ~alpha need to test aac useflag
20
# ~ia64 ~arm ~mips ~hppa
20
# ~ia64 ~arm ~mips ~hppa
21
KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86"
21
KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~ppc-macos sparc x86"
22
IUSE="aac altivec debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss threads truetype v4l xvid dts network zlib sdl"
22
IUSE="aac altivec debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss threads truetype v4l xvid dts network zlib sdl"
23
23
24
# Theora support has switch but there's no oggtheora.c sourcefile...
24
# Theora support has switch but there's no oggtheora.c sourcefile...
Lines 63-68 Link Here
63
	epatch ${FILESDIR}/${PN}-a52.patch
63
	epatch ${FILESDIR}/${PN}-a52.patch
64
	epatch ${FILESDIR}/${PN}-missing_links.patch
64
	epatch ${FILESDIR}/${PN}-missing_links.patch
65
65
66
	if use ppc-macos; then
67
		sed -i s:SLIBSUF=".so":SLIBSUF=".dylib": configure
68
		epatch ${FILESDIR}/${P}-osx.patch
69
		sed -i -e 's:\$<:\$< -L../libavcodec -lavcodec -L../libavformat -lavformat:g' vhook/Makefile
70
		use ogg && sed -i -e 's:ifeq ($(CPU),Darwin):ifeq ($(CPU),Darwin)\
71
			LDFLAGS+=-logg:' libavformat/Makefile
72
	fi
73
66
	cd ${S}
74
	cd ${S}
67
	cp -R ${S_BASE} ${S_STATIC}
75
	cp -R ${S_BASE} ${S_STATIC}
68
	mv ${S_BASE} ${S_SHARED}
76
	mv ${S_BASE} ${S_SHARED}
Lines 75-80 Link Here
75
83
76
	local myconf=""
84
	local myconf=""
77
85
86
	# Tiger needs -force_cpusubtype_ALL
87
	if use ppc-macos;
88
	then
89
		append-flags -force_cpusubtype_ALL
90
		myconf="${myconf} --disable-vhook"
91
	fi
92
78
	#disable mmx accelerated code if not requirested, or if PIC is required
93
	#disable mmx accelerated code if not requirested, or if PIC is required
79
	# as the provided asm decidedly isn't PIC.
94
	# as the provided asm decidedly isn't PIC.
80
	if ( ! has_pic && use mmx ) || use amd64; then
95
	if ( ! has_pic && use mmx ) || use amd64; then
Lines 83-88 Link Here
83
		myconf="${myconf} --disable-mmx"
98
		myconf="${myconf} --disable-mmx"
84
	fi
99
	fi
85
100
101
	# This generates a (valid) complaint by portage that this use
102
	# flag is not defined in IUSE.  Something tells me this branch
103
	# is never going to be taken, however, I don't dare to remove
104
	# it.  Fabian Groffen 2005-07-10
86
	if use elibc_FreeBSD; then
105
	if use elibc_FreeBSD; then
87
		myconf="${myconf} --enable-memalign-hack"
106
		myconf="${myconf} --enable-memalign-hack"
88
	fi
107
	fi

Return to bug 73542