Skip to content

Commit 1701722

Browse files
author
Andrea Medeghini
committed
Restored checkout from git repo
1 parent d4e0f8d commit 1701722

4 files changed

Lines changed: 5 additions & 13 deletions

File tree

Dockerfile.linux

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ FROM ffmpeg4java:latest
22

33
RUN apt-get update && apt-get -y install make gcc g++
44

5-
#RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
5+
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
66

77
COPY Makefile.lib.linux ffmpeg/Makefile.lib.linux
88
COPY Makefile.jni.linux ffmpeg/Makefile.jni.linux
99

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

12-
COPY ffmpeg /ffmpeg
13-
1412
RUN chmod 700 build-linux.sh
1513

1614
CMD ["sh", "-c", "/build-linux.sh"]

Dockerfile.mingw64

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ffmpeg4java:latest
22

33
RUN apt-get update && apt-get -y install make mingw-w64
44

5-
#RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
5+
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
66

77
COPY Makefile.lib.mingw64 ffmpeg/Makefile.lib.mingw64
88
COPY Makefile.jni.mingw64 ffmpeg/Makefile.jni.mingw64
@@ -12,8 +12,6 @@ RUN patch -p0 < ffmpeg/mingw64.patch
1212

1313
COPY build-mingw64.sh build-mingw64.sh
1414

15-
COPY ffmpeg /ffmpeg
16-
1715
RUN chmod 700 build-mingw64.sh
1816

1917
CMD ["sh", "-c", "/build-mingw64.sh"]

Makefile.jni.linux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ JAVA_HOME=/usr/lib/jvm/java-8-oracle
55
OUTPUT_DIR=$(BUILD_DIR)/com.nextbreakpoint.ffmpeg4java/src/main/resources/linux
66

77
all:
8-
mkdir -p $(OUTPUT_DIR) && gcc --verbose -o $(OUTPUT_DIR)/libffmpeg4java.so -I. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -Wl,-soname,libffmpeg4java.so -shared -fPIC -Wall -m$(LIB_TYPE) -Llibavutil -Llibavformat -Llibavfilter -Llibavcodec -Llibavdevice -Llibswscale -Llibswresample -lavutil -lavformat -lavfilter -lavcodec -lavdevice -lswscale -lswresample -lstdc++ -lm -lz $(BUILD_DIR)/ffmpeg4java_wrap.c
8+
mkdir -p $(OUTPUT_DIR) && gcc --verbose -o $(OUTPUT_DIR)/libffmpeg4java.so -I. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -Wl,-soname,libffmpeg4java.so -shared -fPIC -Wall -m$(LIB_TYPE) -Llibavutil -Llibavformat -Llibavfilter -Llibavcodec -Llibavdevice -Llibswscale -Llibswresample $(BUILD_DIR)/ffmpeg4java_wrap.c -lavutil -lavformat -lavfilter -lavcodec -lavdevice -lswscale -lswresample -lstdc++ -lm -lz

build-macos.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#/bin/sh
22
export BUILD_DIR=`pwd`/build
33

4-
#rm -fR ffmpeg
4+
rm -fR ffmpeg
55

6-
#git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
6+
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
77

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

1010
cp Makefile.jni.macos ffmpeg/Makefile.jni.macos
1111

12-
#cp macos.patch ffmpeg/macos.patch
13-
14-
#patch -p0 < ffmpeg/macos.patch
15-
1612
cd ffmpeg
1713

1814
make -f Makefile.lib.macos ffmpeg

0 commit comments

Comments
 (0)