Skip to content

Commit 490d273

Browse files
author
Andrea Medeghini
committed
Initial import
1 parent 59d5e97 commit 490d273

33 files changed

Lines changed: 8767 additions & 1 deletion

Dockerfile.base

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt-get update && apt-get -y install sudo apt-utils git
4+
5+
RUN apt-get update && apt-get -y install software-properties-common python-software-properties libgtk-3-dev libswt-gtk-3-java xvfb net-tools swig
6+
7+
RUN add-apt-repository -y ppa:webupd8team/java
8+
9+
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
10+
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
11+
12+
RUN apt-get update && apt-get install -y oracle-java8-installer oracle-java8-set-default
13+

Dockerfile.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ffmpeg4java:latest
2+
3+
COPY ffmpeg4java.i ffmpeg4java.i
4+
5+
COPY Makefile.java Makefile.java
6+
7+
COPY build-java.sh build-java.sh
8+
9+
RUN chmod 700 build-java.sh
10+
11+
CMD ["sh", "-c", "/build-java.sh"]

Dockerfile.linux

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ffmpeg4java:latest
2+
3+
RUN apt-get update && apt-get -y install cvs make gcc g++
4+
5+
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
6+
7+
COPY Makefile.lib.linux ffmpeg/Makefile.lib.linux
8+
COPY Makefile.jni.linux ffmpeg/Makefile.jni.linux
9+
10+
COPY build-linux.sh build-linux.sh
11+
12+
RUN chmod 700 build-linux.sh
13+
14+
CMD ["sh", "-c", "/build-linux.sh"]

Dockerfile.mingw64

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ffmpeg4java:latest
2+
3+
RUN apt-get update && apt-get -y install cvs make mingw-w64
4+
5+
RUN git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
6+
7+
COPY Makefile.lib.mingw64 ffmpeg/Makefile.lib.mingw64
8+
COPY Makefile.jni.mingw64 ffmpeg/Makefile.jni.mingw64
9+
10+
COPY mingw64.patch ffmpeg/mingw64.patch
11+
RUN patch -p0 < ffmpeg/mingw64.patch
12+
13+
COPY build-mingw64.sh build-mingw64.sh
14+
15+
RUN chmod 700 build-mingw64.sh
16+
17+
CMD ["sh", "-c", "/build-mingw64.sh"]

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2016, Andrea Medeghini
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of ffmpeg4java nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+

Makefile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
BUILD_DIR?=Build
2+
OUTPUT_DIR=$(BUILD_DIR)/com.nextbreakpoint.ffmpeg4java
3+
4+
all:
5+
mkdir -p $(OUTPUT_DIR)/src/main/java/com/nextbreakpoint/ffmpeg4java && swig -v -c++ -java -o $(BUILD_DIR)/ffmpeg4java_wrap.cxx -outdir $(OUTPUT_DIR)/src/main/java/com/nextbreakpoint/ffmpeg4java -package com.nextbreakpoint.ffmpeg4java ffmpeg4java.i

Makefile.jni.linux

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BUILD_DIR?=Build
2+
LIB_TYPE=64
3+
LIB_ARCH=x86_$(LIB_TYPE)
4+
JAVA_HOME=/usr/lib/jvm/java-8-oracle
5+
OUTPUT_DIR=$(BUILD_DIR)/com.nextbreakpoint.ffmpeg4java/src/main/resources/linux
6+
7+
all:
8+
mkdir -p $(OUTPUT_DIR) && g++ --verbose -o $(OUTPUT_DIR)/libffmpeg4java.so -L. -ISource -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -Wl,-soname,libffmpeg4java.so -shared -fPIC -Wall -m$(LIB_TYPE) -lstdc++ -lm -lffmpeg $(BUILD_DIR)/ffmpeg4java_wrap.cxx

Makefile.jni.macos

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BUILD_DIR?=Build
2+
LIB_TYPE=64
3+
LIB_ARCH=x86_$(LIB_TYPE)
4+
JAVA_HOME=`/usr/libexec/java_home`
5+
OUTPUT_DIR=$(BUILD_DIR)/com.nextbreakpoint.ffmpeg4java/src/main/resources/macos
6+
7+
all:
8+
mkdir -p $(OUTPUT_DIR) && g++ --verbose -o $(OUTPUT_DIR)/libffmpeg4java.jnilib -ISource -L. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin -shared -fPIC -Wall -m$(LIB_TYPE) -lffmpeg -lm $(BUILD_DIR)/ffmpeg4java_wrap.cxx
9+

Makefile.jni.mingw64

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BUILD_DIR?=Build
2+
LIB_TYPE=64
3+
LIB_ARCH=x86_$(LIB_TYPE)
4+
JAVA_HOME=/usr/lib/jvm/java-8-oracle
5+
OUTPUT_DIR=$(BUILD_DIR)/com.nextbreakpoint.ffmpeg4java/src/main/resources/win32
6+
7+
all:
8+
mkdir -p $(OUTPUT_DIR) && x86_64-w64-mingw32-g++ --verbose -o $(OUTPUT_DIR)/ffmpeg4java.dll -L. -ISource -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -Wl,--out-implib=libffmpeg4java.dll.a -Wl,-add-stdcall-alias -shared -fPIC -Wall -m$(LIB_TYPE) $(BUILD_DIR)/ffmpeg4java_wrap.cxx -lffmpeg -lm -lws2_32

Makefile.lib.linux

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DISTDIR ?= Dist
2+
3+
clean:
4+
5+

0 commit comments

Comments
 (0)