aboutsummaryrefslogtreecommitdiff
path: root/libs_video/ffmpeg/ffmpeg.build
blob: deb662802c316a76644787d53e89e2cd9239075c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>

source /usr/src/ports/Build/build.sh

NAME=ffmpeg
VERSION=2.2.1
BUILD=1
DEPENDS=('orc >= 0.4.16-1' 'lame >= 3.99.5-1' 'libtheora >= 1.1.1-1' 'libspeex >= 1.2rc1-1' 'libxvidcore >= 1.3.2-1' 'libschroedinger >= 1.0.11-1' 'libgsm >= 1.0.13-1' 'libx264 >= 20140422-1' 'celt >= 0.11.3-1' 'libopus >= 1.1-1' 'libvpx >= 1.3.0-1' 'libva >= 1.1.0-1' 'libvdpau >= 0.6-1' 'libcdio >= 0.92-1')

# Description

cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: ffmpeg
${NAME}:
${NAME}: FFMPEG is a complete solution to record, convert and stream audio and
${NAME}: video. It includes libavcodec, the leading audio/video codec library.
${NAME}:
${NAME}: Homepage: http://www.ffmpeg.org
${NAME}:
${NAME}:
${NAME}:
${NAME}:
${NAME}:
EOF

# Sources

SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=http://ffmpeg.org/releases/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCCOPY[0]="GPL2 GPL3 LGPL21 LGPL3"

build0()
{
case "$(cpufamily ${ARCH})" in
  x86)
    OPTARCH=i686
    OPTCPU=i586
  ;;
  x86_64)
    OPTARCH=x86_64
    OPTCPU=x86_64
  ;;
esac
sed -i 's|$(LIBDIR)/pkgconfig|$(DESTDIR)/usr/share/pkgconfig|g' library.mak
./configure \
 --extra-cflags="-I${SYS_DIR[include]}/x264" \
 --disable-static \
 --enable-shared \
 --enable-pic \
 --disable-debug \
 --prefix="${SYS_DIR[usr]}" \
 --mandir="${SYS_DIR[man]}" \
 --libdir="${SYS_DIR[lib]}" \
 --datadir="${SYS_DIR[share]}/application-data/${SRCNAME[0]}" \
 --enable-gpl \
 --enable-version3 \
 --enable-nonfree \
 --arch="${OPTARCH}" \
 --cpu="${OPTCPU}" \
 --disable-indev=oss \
 --disable-outdev=oss \
 --enable-runtime-cpudetect \
 --enable-pthreads \
 --enable-postproc \
 --enable-vaapi \
 --enable-vdpau \
 --enable-x11grab \
 --enable-zlib \
 --enable-bzlib \
 --enable-gnutls \
 --enable-openal \
 --enable-libbluray \
 --enable-libmp3lame \
 --enable-libspeex \
 --enable-libtheora \
 --enable-libvorbis \
 --enable-libschroedinger \
 --enable-libvpx \
 --enable-libxvid \
 --enable-libgsm \
 --enable-librtmp \
 --enable-libcdio \
 --enable-libmodplug \
 --enable-libfreetype \
 --enable-libcelt \
 --enable-libv4l2 \
 --enable-libx264 \
 --enable-libopus
# --enable-libsoxr \
# --enable-avisynth \
# --enable-libamr-nb \
# --enable-libamr-wb \
# --enable-libdc1394 \
# --enable-libfaac \
# --enable-libnut \
# --enable-libdirac \
# --enable-libopenjpeg \
# --enable-libaacplus \
# --enable-libass \
# --enable-libopencv \
# --enable-libstagefright-h264 \
# --enable-libutvideo \
# --enable-libvo-aacenc \
# --enable-libvo-amrwbenc \
# --enable-libxavs \
make ${JOBS} V=1
make install DESTDIR="${PKG}"
doc CREDITS MAINTAINERS doc/RELEASE_NOTES
changelog Changelog
license LICENSE
rm -rf ${PKG}${SYS_DIR[share]}/application-data/${SRCNAME[0]}/examples
}