forked from MrKepzie/Natron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.sh
169 lines (136 loc) · 4.46 KB
/
common.sh
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#!/bin/sh
# Natron Common Build Options
# Versions
#
if [ -z "$CWD" ]; then
CWD=`pwd`
fi
#The local.sh file must exist, please see the README.
if [ -f $CWD/local.sh ]; then
source $CWD/local.sh || exit 1
else
REPO_DEST=localhost
REPO_URL=http://localhost
fi
#THE FOLLOWING CAN BE MODIFIED TO CONFIGURE RELEASE BUILDS
#----------------------------------------------------------
NATRON_GIT_TAG=tags/2.0.1
IOPLUG_GIT_TAG=tags/Natron-2.0.1
MISCPLUG_GIT_TAG=tags/Natron-2.0.1
ARENAPLUG_GIT_TAG=tags/Natron-2.0.1
CVPLUG_GIT_TAG=tags/Natron-2.0.1
#----------------------------------------------------------
#Name of the packages in the installer
#If you change this, don't forget to change the xml file associated in include/xml
NATRON_PKG=fr.inria.natron
IOPLUG_PKG=fr.inria.openfx.io
MISCPLUG_PKG=fr.inria.openfx.misc
ARENAPLUG_PKG=fr.inria.openfx.extra
CVPLUG_PKG=fr.inria.openfx.opencv
CORELIBS_PKG=fr.inria.natron.libs
PROFILES_PKG=fr.inria.natron.color
PACKAGES=$NATRON_PKG,$CORELIBS_PKG,$PROFILES_PKG,$IOPLUG_PKG,$MISCPLUG_PKG,$ARENAPLUG_PKG,$CVPLUG_PKG
# bump number when OpenColorIO-Configs changes
GIT_OCIO_CONFIG_TAR=https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz
COLOR_PROFILES_VERSION=2.0.0
# SDK
#
MASTER_BRANCH=master
SDK_VERSION=2.0
MINGW_PACKAGES_PATH=$CWD/MINGW-packages
MINGW_PREFIX=mingw-w64-
PKG_PREFIX32=${MINGW_PREFIX}i686-
PKG_PREFIX64=${MINGW_PREFIX}x86_64-
INSTALL32_PATH=/mingw32
INSTALL64_PATH=/mingw64
# bump timestamp on SDK changes, important!
CORELIBS_VERSION=20160318
# Common values
#
TMP_DIR=/tmp
TMP_PATH=$CWD/tmp
SRC_PATH=$CWD/src
INC_PATH=$CWD/include
# Keep existing tag, else make a new one
if [ -z "$TAG" ]; then
TAG=`date +%Y%m%d%H%M`
fi
OS=`uname -o`
REPO_DIR_PREFIX=$CWD/build_
#Dist repo is expected to be layout as such:
#downloads.xxx.yyy:
# Windows/
# Linux/
# releases/
# snapshots/
# 32bit/
# 64bit/
# files/ (where installers should be
# packages/ (where the updates for the maintenance tool should be)
# Third-party sources
#
THIRD_PARTY_SRC_URL=$REPO_URL/Third_Party_Sources
THIRD_PARTY_BIN_URL=$REPO_URL/Third_Party_Binaries
GIT_OPENCV=https://github.com/devernay/openfx-opencv.git
GIT_ARENA=https://github.com/olear/openfx-arena.git
#Installer is a fork of qtifw to fix a few bugs
GIT_INSTALLER=https://github.com/olear/qtifw.git
GIT_NATRON=https://github.com/MrKepzie/Natron.git
GIT_IO=https://github.com/MrKepzie/openfx-io.git
GIT_MISC=https://github.com/devernay/openfx-misc.git
GIT_UNIT=https://github.com/MrKepzie/Natron-Tests
QT4_TAR=qt-everywhere-opensource-src-4.8.7.tar.gz
#QT5_TAR=qt-everywhere-opensource-src-5.4.1.tar.gz
CV_TAR=opencv-2.4.11.zip
EIGEN_TAR=eigen-eigen-bdd17ee3b1b3.tar.gz
YASM_TAR=yasm-1.3.0.tar.gz
CMAKE_TAR=cmake-3.1.2.tar.gz
PY3_TAR=Python-3.4.3.tar.xz
PY2_TAR=Python-2.7.10.tar.xz
JPG_TAR=jpegsrc.v9a.tar.gz
OJPG_TAR=openjpeg-1.5.2.tar.gz
PNG_TAR=libpng-1.2.53.tar.gz
TIF_TAR=tiff-4.0.4.tar.gz
EXR_TAR=openexr-2.2.0.tar.gz
GLEW_TAR=glew-1.12.0.tgz
BOOST_TAR=boost_1_55_0.tar.gz
CAIRO_TAR=cairo-1.14.2.tar.xz
OCIO_TAR=OpenColorIO-1.0.9.tar.gz
OIIO_TAR=oiio-Release-1.6.11.tar.gz
PYSIDE_TAR=pyside-qt4.8+1.2.2.tar.bz2
SHIBOK_TAR=shiboken-1.2.2.tar.bz2
LIBXML_TAR=libxml2-2.9.2.tar.gz
LIBXSL_TAR=libxslt-1.1.28.tar.gz
SEE_TAR=SeExpr-rel-1.0.1.tar.gz
LIBRAW_TAR=LibRaw-0.16.0.tar.gz
PIX_TAR=pixman-0.32.6.tar.gz
LCMS_TAR=lcms2-2.6.tar.gz
MAGICK_TAR=ImageMagick-6.9.3-5.tar.xz
GIF_TAR=giflib-5.1.1.tar.gz
#SSL_TAR=openssl-1.0.0r.tar.gz
JASP_TAR=jasper-1.900.1.zip
INSTALLER_BIN_TAR=natron-windows-installer.zip
LLVM_TAR=llvm-3.7.1.src.tar.xz # 3.4 don't have RTTI, higher (3.8) not supported
MESA_TAR=mesa-11.2.0-rc3.tar.xz # lower had build issues
GLU_TAR=glu-9.0.0.tar.bz2
FFMPEG_MXE_BIN_64_GPL_TAR=ffmpeg-2.8.3-windows-x86_64-shared-GPLv2.tar.xz
FFMPEG_MXE_BIN_32_GPL_TAR=ffmpeg-2.8.3-windows-i686-shared-GPLv2.tar.xz
FFMPEG_MXE_BIN_64_LGPL_TAR=ffmpeg-2.8.3-windows-x86_64-shared-LGPL.tar.xz
FFMPEG_MXE_BIN_32_LGPL_TAR=ffmpeg-2.8.3-windows-i686-shared-LGPL.tar.xz
NATRON_API_DOC=https://media.readthedocs.org/pdf/natron/master/natron.pdf # TODO generate own
# Threads
#
# Set build threads to 4 if not exists
DEFAULT_MKJOBS=4
if [ -z "$MKJOBS" ]; then
MKJOBS=$DEFAULT_MKJOBS
fi
echo "===> MKJOBS set to $MKJOBS"
# License
#
#
if [ "$NATRON_LICENSE" != "GPL" ] && [ "$NATRON_LICENSE" != "COMMERCIAL" ]; then
echo "Please select a License with NATRON_LICENSE=(GPL,COMMERCIAL)"
exit 1
fi
echo "===> NATRON_LICENSE set to $NATRON_LICENSE"