Skip to content

Commit ec2bae0

Browse files
author
Andrea Medeghini
committed
Refactoring
1 parent 0e6c421 commit ec2bae0

11 files changed

Lines changed: 29 additions & 16 deletions

FreeImage Public License - Version 1.0.txt renamed to COPYING FPL v1.0.txt

File renamed without changes.

Dockerfile.java

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

33
COPY freeimage4java.i freeimage4java.i
44

Dockerfile.linux

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

8-
COPY Patch.linux FreeImage/Patch.linux
9-
RUN patch -p0 < FreeImage/Patch.linux
8+
COPY Patch.linux Patch.linux
109

1110
COPY build-linux.sh build-linux.sh
1211

Dockerfile.mingw64

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

8-
COPY Patch.mingw64 FreeImage/Patch.mingw64
9-
RUN patch -p0 < FreeImage/Patch.mingw64
8+
COPY Patch.mingw64 Patch.mingw64
109

1110
COPY build-mingw64.sh build-mingw64.sh
1211

Dockerfile.repo

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

3-
RUN git clone https://github.com/nextbreakpoint/FreeImage.git FreeImage
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#/bin/sh
22
export BUILD_DIR=`pwd`/build
33

4+
patch -p0 < Patch.linux
5+
46
cd FreeImage
57

68
make -f Makefile.lib.linux FreeImage
7-
89
make -f Makefile.jni.linux all

build-macos.sh

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

44
rm -fR FreeImage
55

6-
#cvs -z3 -d:pserver:anonymous@freeimage.cvs.sourceforge.net:/cvsroot/freeimage co -P FreeImage
7-
8-
git clone https://github.com/nextbreakpoint/FreeImage.git FreeImage
6+
sh checkout.sh
97

108
cp Makefile.lib.macos FreeImage/Makefile.lib.macos
119
cp Makefile.jni.macos FreeImage/Makefile.jni.macos
1210

13-
cp Patch.macos FreeImage/Patch.macos
14-
patch -p0 < FreeImage/Patch.macos
11+
patch -p0 < Patch.macos
1512

1613
cd FreeImage
1714

1815
make -f Makefile.lib.macos FreeImage
19-
2016
make -f Makefile.jni.macos all

build-mingw64.sh

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

4+
patch -p0 < Patch.mingw64
5+
46
cd FreeImage
57

68
make -f Makefile.lib.mingw64 FreeImage
7-
89
make -f Makefile.jni.mingw64 all

checkout.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#/bin/sh
2+
3+
#cvs -z3 -d:pserver:anonymous@freeimage.cvs.sourceforge.net:/cvsroot/freeimage co -P FreeImage
4+
5+
git clone https://github.com/nextbreakpoint/FreeImage.git FreeImage
6+
7+
cd FreeImage && git checkout 02761c9e7da266c9a0045790d502449f745e576d

0 commit comments

Comments
 (0)