Skip to content

Commit 6608666

Browse files
author
Andrea Medeghini
committed
Refactoring
1 parent 4817b0d commit 6608666

File tree

11 files changed

+527
-34
lines changed

11 files changed

+527
-34
lines changed

COPYING LGPL v2.1.txt

Lines changed: 502 additions & 0 deletions
Large diffs are not rendered by default.

Dockerfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ffmpeg4java:latest
1+
FROM ffmpeg4java-base:latest
22

33
COPY ffmpeg4java.i ffmpeg4java.i
44

Dockerfile.linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get -y install make gcc g++
55
COPY Makefile.lib.linux ffmpeg/Makefile.lib.linux
66
COPY Makefile.jni.linux ffmpeg/Makefile.jni.linux
77

8-
COPY Patch.linux ffmpeg/Patch.linux
8+
COPY Patch.linux Patch.linux
99

1010
COPY build-linux.sh build-linux.sh
1111

Dockerfile.mingw64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get update && apt-get -y install make mingw-w64
55
COPY Makefile.lib.mingw64 ffmpeg/Makefile.lib.mingw64
66
COPY Makefile.jni.mingw64 ffmpeg/Makefile.jni.mingw64
77

8-
COPY Patch.mingw64 ffmpeg/Patch.mingw64
8+
COPY Patch.mingw64 Patch.mingw64
99

1010
COPY build-mingw64.sh build-mingw64.sh
1111

Dockerfile.repo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
FROM ffmpeg4java:latest
1+
FROM ffmpeg4java-base:latest
22

3-
RUN git clone https://github.com/nextbreakpoint/FFmpeg.git ffmpeg
3+
COPY checkout.sh checkout.sh
4+
5+
RUN sh checkout.sh

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ We use docker for compiling Linux library.
9393

9494
Generate JNI code before compiling library for Linux
9595

96+
Create repository image:
97+
98+
sh create-image-repo.sh
99+
96100
Create image for building library:
97101

98102
sh create-image-linux.sh
@@ -112,6 +116,10 @@ We use docker for cross-compiling Windows library using Mingw-w64.
112116

113117
Generate JNI code before compiling library for Windows
114118

119+
Create repository image:
120+
121+
sh create-image-repo.sh
122+
115123
Create image for building library:
116124

117125
sh create-image-mingw64.sh

build-linux.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
#/bin/sh
22
export BUILD_DIR=`pwd`/build
33

4-
cd ffmpeg
5-
6-
git checkout ce36e74e75751c721185fbebaa4ee8714b44c5a5
7-
8-
cd ..
9-
10-
Patch.linux ffmpeg/Patch.linux
11-
patch -p0 < ffmpeg/Patch.linux
4+
patch -p0 < Patch.linux
125

136
cd ffmpeg
147

158
make -f Makefile.lib.linux ffmpeg
16-
179
make -f Makefile.jni.linux all

build-macos.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@ export BUILD_DIR=`pwd`/build
33

44
rm -fR ffmpeg
55

6-
git clone https://github.com/nextbreakpoint/FFmpeg.git ffmpeg
6+
sh checkout.sh
77

88
cp Makefile.lib.macos ffmpeg/Makefile.lib.macos
99
cp Makefile.jni.macos ffmpeg/Makefile.jni.macos
1010

11-
cp Patch.macos ffmpeg/Patch.macos
12-
13-
cd ffmpeg
14-
15-
git checkout ce36e74e75751c721185fbebaa4ee8714b44c5a5
16-
17-
cd ..
18-
19-
patch -p0 < ffmpeg/Patch.macos
11+
patch -p0 < Patch.macos
2012

2113
cd ffmpeg
2214

2315
make -f Makefile.lib.macos ffmpeg
24-
2516
make -f Makefile.jni.macos all

build-mingw64.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
#/bin/sh
22
export BUILD_DIR=`pwd`/build
33

4-
cd ffmpeg
5-
6-
git checkout ce36e74e75751c721185fbebaa4ee8714b44c5a5
7-
8-
cd ..
9-
10-
patch -p0 < ffmpeg/Patch.mingw64
4+
patch -p0 < Patch.mingw64
115

126
cd ffmpeg
137

148
make -f Makefile.lib.mingw64 ffmpeg
15-
169
make -f Makefile.jni.mingw64 all

checkout.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#/bin/sh
2+
3+
git clone https://github.com/nextbreakpoint/FFmpeg.git ffmpeg
4+
5+
cd ffmpeg && git checkout ce36e74e75751c721185fbebaa4ee8714b44c5a5

0 commit comments

Comments
 (0)