mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 14:47:15 +08:00
65 lines
2.1 KiB
Bash
65 lines
2.1 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgname=ffmpeg
|
|
pkgver=1.0.1
|
|
pkgrel=2
|
|
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
|
|
arch=('x86_64')
|
|
url="http://ffmpeg.org/"
|
|
license=('GPL')
|
|
depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora'
|
|
'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libvpx>=1.1.0'
|
|
'libva' 'openjpeg' 'rtmpdump' 'speex' 'gsm' 'pulseaudio')
|
|
makedepends=('yasm')
|
|
source=("http://${pkgname}.org/releases/${pkgname}-${pkgver}.tar.bz2"
|
|
"openjpeg1.5.1.patch"
|
|
)
|
|
md5sums=('dbbb88ce5525dea22b24aaa098a9bcc2'
|
|
'a4b39642b8885e4cd7d4f30bdc043351')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# openjpeg 1.5.1 is installed in a different place than 1.5.0, this patch makes it search there
|
|
# patch is from http://patches.libav.org/patch/32269/
|
|
# this patch should be unnecessary with newer versions of ffmpeg
|
|
mv ../openjpeg1.5.1.patch .
|
|
patch < openjpeg1.5.1.patch
|
|
./configure --prefix=/usr \
|
|
--enable-libmp3lame \
|
|
--enable-libvorbis \
|
|
--enable-libxvid \
|
|
--enable-libx264 \
|
|
--enable-libvpx \
|
|
--enable-libtheora \
|
|
--enable-libgsm \
|
|
--enable-postproc \
|
|
--enable-shared \
|
|
--enable-x11grab \
|
|
--enable-libopencore_amrnb \
|
|
--enable-libopencore_amrwb \
|
|
--enable-libschroedinger \
|
|
--enable-libopenjpeg \
|
|
--enable-librtmp \
|
|
--enable-libpulse \
|
|
--enable-gpl \
|
|
--enable-version3 \
|
|
--enable-runtime-cpudetect \
|
|
--enable-libspeex \
|
|
--disable-debug \
|
|
--disable-static
|
|
|
|
make
|
|
make tools/qt-faststart
|
|
make doc/ff{mpeg,play,server}.1
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install install-man
|
|
install -D -m755 tools/qt-faststart "${pkgdir}/usr/bin/qt-faststart"
|
|
}
|