Skip to content

Commit

Permalink
Remove OpenColorIO-Configs submodule and download it separately instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Sep 15, 2015
1 parent 4f6d1bc commit c6c7eba
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 11 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
[submodule "Tests/google-mock"]
path = Tests/google-mock
url = https://github.com/MrKepzie/google-mock
[submodule "Gui/Resources/OpenColorIO-Configs"]
path = Gui/Resources/OpenColorIO-Configs
url = https://github.com/MrKepzie/OpenColorIO-Configs.git
[submodule "libs/SequenceParsing"]
path = libs/SequenceParsing
url = https://github.com/MrKepzie/SequenceParsing
Expand Down
2 changes: 1 addition & 1 deletion App/App.pro
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ SOURCES += \

INSTALLS += target

Resources.files = $$PWD/../Gui/Resources/OpenColorIO-Configs
Resources.files = $$PWD/../OpenColorIO-Configs
macx {
Resources.files += $$PWD/../Gui/Resources/Images/natronProjectIcon_osx.icns
Resources.path = Contents/Resources
Expand Down
1 change: 0 additions & 1 deletion Gui/Resources/OpenColorIO-Configs
Submodule OpenColorIO-Configs deleted from a6e1d9
6 changes: 6 additions & 0 deletions INSTALL_FREEBSD.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ LIBS is the path to the libs
EOF
----- end -----

###Download OpenColorIO-Configs

In the past, OCIO configs were a submodule, though due to the size of the repository, we have chosen instead
to make a tarball release and let you download it [here](https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz).
Place it at the root of Natron repository.

### Build

The <srcPath> must be absolute and <buildPath> must not be a subdir of <srcPath>
Expand Down
6 changes: 6 additions & 0 deletions INSTALL_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ On Ubuntu 12.04 LTS the package can be added with the following ppa:

We're done here for libraries.

###Download OpenColorIO-Configs

In the past, OCIO configs were a submodule, though due to the size of the repository, we have chosen instead
to make a tarball release and let you download it [here](https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz).
Place it at the root of Natron repository.

###Add the config.pri file

You have to define the locations of some required libraries.
Expand Down
6 changes: 6 additions & 0 deletions INSTALL_OSX.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ this in your .bash_profile):

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/opt/cairo/lib/pkgconfig

###Download OpenColorIO-Configs

In the past, OCIO configs were a submodule, though due to the size of the repository, we have chosen instead
to make a tarball release and let you download it [here](https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz).
Place it at the root of Natron repository.

## Add the config.pri file

You have to define the locations of the required libraries.
Expand Down
5 changes: 5 additions & 0 deletions INSTALL_WINDOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ Then this page has a complete answer on how to compile the dependencies:
http://stackoverflow.com/questions/85622/how-to-compile-cairo-for-visual-c-2008-express-edition
This will work successfully.

###Download OpenColorIO-Configs

In the past, OCIO configs were a submodule, though due to the size of the repository, we have chosen instead
to make a tarball release and let you download it [here](https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz).
Place it at the root of Natron repository.


###Add the config.pri file
Expand Down
2 changes: 2 additions & 0 deletions tools/MacOSX/build-natron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ shiboken {
}
EOF

#Copy OpenColorIO-Config in Natron root as the .pro expects them there to copy it to the application bundle
cp -r $TMP/OpenColorIO-Configs . || exit 1

# Add CONFIG+=snapshot to indicate the build is a snapshot
if [ "$BRANCH" == "workshop" ]; then
Expand Down
8 changes: 8 additions & 0 deletions tools/MacOSX/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ LOGDIR="$CWD/logs"
rm -rf $LOGDIR
mkdir -p $LOGDIR || exit 1

#If OpenColorIO-Configs do not exist, download them
if [ ! -d "$TMP/OpenColorIO-Configs" ]; then
wget $GIT_OCIO_CONFIG_TAR -O $TMP/OpenColorIO-Configs.tar.gz || exit 1
tar xvf $TMP/OpenColorIO-Configs.tar.gz || exit 1
rm $TMP/OpenColorIO-Configs.tar.gz || exit 1
mv $TMP/OpenColorIO-Configs* $TMP/OpenColorIO-Configs || exit 1
fi


PLUGINDIR="$CWD/build/Natron/App/Natron.app/Contents/Plugins"
NATRONLOG="$LOGDIR/Natron-$TAG.log"
Expand Down
2 changes: 2 additions & 0 deletions tools/MacOSX/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ GIT_MISC=https://github.com/devernay/openfx-misc.git
GIT_OPENCV=https://github.com/devernay/openfx-opencv.git
GIT_ARENA=https://github.com/olear/openfx-arena.git

GIT_OCIO_CONFIG_TAR=https://github.com/MrKepzie/OpenColorIO-Configs/archive/Natron-v2.0.tar.gz

TMP=$CWD/tmp

PKGOS=OSX
Expand Down
1 change: 1 addition & 0 deletions tools/Windows/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ PACKAGES=$NATRON_PKG,$CORELIBS_PKG,$PROFILES_PKG,$IOPLUG_PKG,$MISCPLUG_PKG,$AREN


# 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


Expand Down
11 changes: 8 additions & 3 deletions tools/Windows/include/scripts/build-natron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,15 @@ if [ -f CrashReporter/release/NatronCrashReporter.exe ]; then
fi


#Remove all git related stuff before installing color profiles
(cd ../Gui/Resources/OpenColorIO-Configs ; find . -type d -name .git -exec rm -rf {} \;)
#If OpenColorIO-Configs do not exist, download them
if [ ! -d "$SRC_PATH/OpenColorIO-Configs" ]; then
wget $GIT_OCIO_CONFIG_TAR -O $SRC_PATH/OpenColorIO-Configs.tar.gz || exit 1
tar xvf $TMP_PATH/OpenColorIO-Configs.tar.gz || exit 1
rm $SRC_PATH/OpenColorIO-Configs.tar.gz || exit 1
mv $SRC_PATH/OpenColorIO-Configs* $SRC_PATH/OpenColorIO-Configs || exit 1
fi

cp -a ../Gui/Resources/OpenColorIO-Configs $INSTALL_PATH/share/ || exit 1
cp -a $TMP_PATH/OpenColorIO-Configs $INSTALL_PATH/share/ || exit 1
mkdir -p $INSTALL_PATH/docs/natron || exit 1
cp ../LICENSE.txt ../README* ../BUGS* ../CONTRI* ../Documentation/* $INSTALL_PATH/docs/natron/
mkdir -p $INSTALL_PATH/share/stylesheets || exit 1
Expand Down
1 change: 1 addition & 0 deletions tools/linux/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ PACKAGES=$NATRON_PKG,$CORELIBS_PKG,$PROFILES_PKG,$IOPLUG_PKG,$MISCPLUG_PKG,$AREN


# 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

# bump number on bugfixes
Expand Down
12 changes: 9 additions & 3 deletions tools/linux/include/scripts/build-natron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,15 @@ fi
# fi
#fi

#Remove all git related stuff before installing color profiles
(cd ../Gui/Resources/OpenColorIO-Configs ; find . -type d -name .git -exec rm -rf {} \;)
cp -a ../Gui/Resources/OpenColorIO-Configs $INSTALL_PATH/share/ || exit 1
#If OpenColorIO-Configs do not exist, download them
if [ ! -d "$SRC_PATH/OpenColorIO-Configs" ]; then
wget $GIT_OCIO_CONFIG_TAR -O $SRC_PATH/OpenColorIO-Configs.tar.gz || exit 1
tar xvf $SRC_PATH/OpenColorIO-Configs.tar.gz || exit 1
rm $SRC_PATH/OpenColorIO-Configs.tar.gz || exit 1
mv $SRC_PATH/OpenColorIO-Configs* $SRC_PATH/OpenColorIO-Configs || exit 1
fi

cp -a $SRC_PATH/OpenColorIO-Configs $INSTALL_PATH/share/ || exit 1
mkdir -p $INSTALL_PATH/docs/natron || exit 1
cp ../LICENSE.txt ../README* ../BUGS* ../CONTRI* ../Documentation/* $INSTALL_PATH/docs/natron/
mkdir -p $INSTALL_PATH/share/stylesheets || exit 1
Expand Down

0 comments on commit c6c7eba

Please sign in to comment.