diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8fe4fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.project diff --git a/docker-builder-data/build/.gitignore b/docker-builder-data/build/.gitignore new file mode 100644 index 0000000..1f87b92 --- /dev/null +++ b/docker-builder-data/build/.gitignore @@ -0,0 +1 @@ +/packet/ diff --git a/docker-builder-data/build/script/common/manager b/docker-builder-data/build/script/common/manager deleted file mode 100755 index 7150de4..0000000 --- a/docker-builder-data/build/script/common/manager +++ /dev/null @@ -1,284 +0,0 @@ -#!/bin/bash - -# root - -ROOT_DIR=`realpath "$0"` -ROOT_DIR=`dirname "$ROOT_DIR"` -ROOT_DIR=`dirname "$ROOT_DIR"` -ROOT_DIR=`dirname "$ROOT_DIR"` - -# dirs - -SCRIPT_DIR=$ROOT_DIR/script -COMMON_SCRIPT_DIR=$SCRIPT_DIR/common -PACKET_SCRIPT_DIR=$SCRIPT_DIR/packet -PACKET_DIR=$ROOT_DIR/packet -ENV_DIR=$ROOT_DIR/env -ENVFLAGS_DIR=$ROOT_DIR/envflags - -# vars - -INITIAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH -INITIAL_PATH=$PATH -INITIAL_LDFLAGS=$LDFLAGS -INITIAL_CPPFLAGS=$CPPFLAGS - - -clean_packet_directory() { - if [ ! -z "$DRY_RUN" ]; then - return 0 - fi - rm -f -r "$PACKET_DIR/$1/$2" || true - rm -f "$PACKET_DIR/$1/$2.done" || true -} - -check_packet_function() { - if [ ! -f "$PACKET_DIR/$1/$2.done" ]; then - return 1 - fi -} - -prepare_build() { - if ! cp -r $2/* "$1/"; then - return 1 - fi -} - -call_packet_function() { - local NAME=$1 - local FUNC=$2 - local PREV_FUNC=$3 - local NEXT_FUNC=$4 - local PREPARE_FUNC=$5 - local FINALIZE_FUNC=$6 - - local FUNC_NAME=pk$FUNC - local CURRENT_PACKET_DIR=$PACKET_DIR/$NAME - local DONE_FILE=$CURRENT_PACKET_DIR/$FUNC.done - local FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$FUNC - local PREV_FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$PREV_FUNC - local NEXT_FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$NEXT_FUNC - - echo "$FUNC $NAME" - if [ ! -z "$DRY_RUN" ]; then - return 0 - fi - - rm -f "$DONE_FILE" || true - - mkdir -p $FUNC_CURRENT_PACKET_DIR - cd $FUNC_CURRENT_PACKET_DIR - source "$PACKET_SCRIPT_DIR/$NAME.sh" - - if [ ! -z "$PREPARE_FUNC" ]; then - if ! "$PREPARE_FUNC" "$FUNC_CURRENT_PACKET_DIR" "$PREV_FUNC_CURRENT_PACKET_DIR" "$NEXT_FUNC_CURRENT_PACKET_DIR"; then - return 1 - fi - fi - - if ! "$FUNC_NAME" "$FUNC_CURRENT_PACKET_DIR" "$PREV_FUNC_CURRENT_PACKET_DIR" "$NEXT_FUNC_CURRENT_PACKET_DIR"; then - return 1 - fi - - if [ ! -z "$FINALIZE_FUNC" ]; then - if ! "$FINALIZE_FUNC" "$FUNC_CURRENT_PACKET_DIR" "$PREV_FUNC_CURRENT_PACKET_DIR" "$NEXT_FUNC_CURRENT_PACKET_DIR"; then - return 1 - fi - fi - - echo 1 > "$DONE_FILE" -} - -clean_download() { - clean_packet_directory $1 download -} - -clean_unpack() { - clean_packet_directory $1 download -} - -clean_build() { - clean_packet_directory $1 build -} - -clean_install() { - clean_packet_directory $1 install -} - -clean() { - clean_download $1 - clean_unpack $1 - clean_build $1 - clean_install $1 -} - -download() { - if ! (check_packet_function $1 download || call_packet_function $1 download "" unpack); then - return 1 - fi -} - -unpack() { - if ! (check_packet_function $1 unpack || (download $1 && call_packet_function $1 unpack download build)); then - return 1 - fi -} - -build() { - if check_packet_function $1 build; then - return 0 - fi - - if ! unpack $1; then - return 1 - fi - - set_environment_deps $1 - if [ ! "$?" -eq "0" ]; then - return 1 - fi - - if ! call_packet_function $1 build unpack install prepare_build; then - return 1 - fi -} - -install() { - if ! (install_deps $1 && (check_packet_function $1 install || (build $1 && call_packet_function $1 install build))); then - return 1 - fi -} - -download_with_deps() { - source $PACKET_SCRIPT_DIR/$1.sh - local CURRENT_DEPS=$DEPS - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP"]; then - if ! download $DEP; then - return 1 - fi - fi - done - if ! download $1; then - return 1 - fi -} - -unpack_with_deps() { - source $PACKET_SCRIPT_DIR/$1.sh - local CURRENT_DEPS=$DEPS - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP"]; then - if ! unpack $DEP; then - return 1 - fi - fi - done - if ! unpack $1; then - return 1 - fi -} - -install_deps() { - source $PACKET_SCRIPT_DIR/$1.sh - local CURRENT_DEPS=$DEPS - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP"]; then - if ! install $DEP; then - return 1 - fi - fi - done -} - -clear_environment() { - if [ ! -z "$DRY_RUN" ]; then - return 0 - fi - rm -r -f "$ENVFLAGS_DIR" - rm -r -f "$ENV_DIR" -} - -add_environment_deps() { - if ! install_deps $1; then - return 1 - fi - - export LD_LIBRARY_PATH="$ENV_DIR/lib:$INITIAL_LD_LIBRARY_PATH" - export PATH="$ENV_DIR/bin:$INITIAL_PATH" - export LDFLAGS="-L$ENV_DIR/lib $INITIAL_LDFLAGS" - export CPPFLAGS="-I$ENV_DIR/include $INITIAL_CPPFLAGS -fpermissive" - - source $PACKET_SCRIPT_DIR/$1.sh - local CURRENT_DEPS=$DEPS - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP"]; then - if ! add_environment $DEP; then - return 1 - fi - fi - done -} - -add_environment() { - local NAME=$1 - local DONE_FILE=$ENVFLAGS_DIR/$NAME.done - - if [ -f "$DONE_FILE" ]; then - return 0 - fi - - if ! install $NAME; then - return 1 - fi - - add_environment_deps $NAME - if [ ! "$?" -eq "0" ]; then - return 1 - fi - - if [ ! -z "$DRY_RUN" ]; then - return 0 - fi - - mkdir -p $ENV_DIR - if ! cp -r "$PACKET_DIR/$NAME/install/*" "$WORK_ENV_DIR/"; then - return 1 - fi - - mkdir -p "$ENVFLAGS_DIR" - echo 1 > "$DONE_FILE" -} - -set_environment_deps() { - clear_environment - add_environment_deps $1 - if [ ! "$?" -eq "0" ]; then - return 1 - fi - - if [ "$2" = "shell" ]; then - cd $PACKET_DIR/$1/build - /bin/bash -i - fi -} - -set_environment() { - clear_environment - add_environment $1 - if [ ! "$?" -eq "0" ]; then - return 1 - fi - - if [ "$2" = "shell" ]; then - cd $PACKET_DIR/$1/build - /bin/bash -i - fi -} - -dry_run() { - DRY_RUN=1 - "$@" -} - -"$@" diff --git a/docker-builder-data/build/script/common/manager.sh b/docker-builder-data/build/script/common/manager.sh new file mode 100755 index 0000000..2ac621d --- /dev/null +++ b/docker-builder-data/build/script/common/manager.sh @@ -0,0 +1,497 @@ +#!/bin/bash + +# options + +if [ -z "$PLATFORM" ]; then + PLATFORM="linux-x64" +fi +export PLATFORM + +if [ -z "$THREADS" ]; then + THREADS=8 +fi +export THREADS + + +# root + +ROOT_DIR=`realpath "$0"` +ROOT_DIR=`dirname "$ROOT_DIR"` +ROOT_DIR=`dirname "$ROOT_DIR"` +ROOT_DIR=`dirname "$ROOT_DIR"` +export ROOT_DIR + +# dirs + +export SCRIPT_DIR=$ROOT_DIR/script +export COMMON_SCRIPT_DIR=$SCRIPT_DIR/common +export INCLUDE_SCRIPT_DIR=$SCRIPT_DIR/include +export PACKET_SCRIPT_DIR=$SCRIPT_DIR/packet +export PACKET_DIR=$ROOT_DIR/packet/$PLATFORM + +# vars + +INITIAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH +INITIAL_PATH=$PATH +INITIAL_LDFLAGS=$LDFLAGS +INITIAL_CFLAGS=$CFLAGS +INITIAL_CPPFLAGS=$CPPFLAGS +INITIAL_PKG_CONFIG_PATH=$PKG_CONFIG_PATH + +################################### +# +# Fairy Tale +# +# Once upon time in faraway... +# +# Function dependency: +# +# 1. download +# | +# 2. unpack +# | +# | env^ +# | | +# 3. | envdeps +# | | | +# 4. build | +# | | +# 5. install | +# | | | +# 6. | env +# | | +# | envdeps* +# | +# 7. install_release +# | +# | env_release^ +# | | +# 8. | envdeps_release +# | | +# 9. env_release +# | +# envdeps_release* +# +################################### + + +copy() { + if [ -d "$1" ]; then + if ! mkdir -p $2; then + return 1 + fi + if [ "$(ls -A $1)" ]; then + if ! cp -rlf $1/* "$2/"; then + return 1 + fi + fi + elif [ -f "$1" ]; then + if ! (mkdir -p `dirname $2` && cp -l "$1" "$2"); then + return 1 + fi + else + return 1 + fi +} + +message() { + echo " ------ $1" +} + +set_done() { + touch "$PACKET_DIR/$1/$2.done" +} + +set_undone_silent() { + rm -f "$PACKET_DIR/$1/$2.*.done" + rm -f "$PACKET_DIR/$1/$2.done" +} + +set_undone() { + message "$1 set_undone $2" + set_undone_silent $1 $2 +} + +clean_packet_directory_silent() { + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + set_undone_silent $1 $2 + rm -f -r "$PACKET_DIR/$1/$2" +} + +clean_packet_directory() { + message "$1 clean $2" + clean_packet_directory_silent $1 $2 +} + +check_packet_function() { + if [ ! -f "$PACKET_DIR/$1/$2.done" ]; then + return 1 + fi +} + +prepare_build() { + if ! copy "$UNPACK_PACKET_DIR" "$BUILD_PACKET_DIR"; then + return 1 + fi +} + +set_environment_vars() { + export NAME=$1 + + export CURRENT_PACKET_DIR=$PACKET_DIR/$NAME + export FILES_PACKET_DIR=$PACKET_SCRIPT_DIR/$NAME.files + export DOWNLOAD_PACKET_DIR=$CURRENT_PACKET_DIR/download + export UNPACK_PACKET_DIR=$CURRENT_PACKET_DIR/unpack + export ENVDEPS_PACKET_DIR=$CURRENT_PACKET_DIR/envdeps + export BUILD_PACKET_DIR=$CURRENT_PACKET_DIR/build + export INSTALL_PACKET_DIR=$CURRENT_PACKET_DIR/install + export INSTALL_RELEASE_PACKET_DIR=$CURRENT_PACKET_DIR/install_release + export ENV_PACKET_DIR=$CURRENT_PACKET_DIR/env + export ENVDEPS_RELEASE_PACKET_DIR=$CURRENT_PACKET_DIR/envdeps_release + export ENV_RELEASE_PACKET_DIR=$CURRENT_PACKET_DIR/env_release + + export LD_LIBRARY_PATH="$ENV_PACKET_DIR/lib:$ENV_PACKET_DIR/lib64:$ENVDEPS_PACKET_DIR/lib:$ENVDEPS_PACKET_DIR/lib64:$INITIAL_LD_LIBRARY_PATH" + export PATH="$ENVDEPS_PACKET_DIR/bin:$INITIAL_PATH" + export LDFLAGS="-L$ENVDEPS_PACKET_DIR/lib $INITIAL_LDFLAGS" + export CFLAGS="-I$ENVDEPS_PACKET_DIR/include $INITIAL_CFLAGS" + export CPPFLAGS="-I$ENVDEPS_PACKET_DIR/include $INITIAL_CPPFLAGS" + export PKG_CONFIG_PATH="$ENVDEPS_PACKET_DIR/lib/pkgconfig:$INITIAL_PKG_CONFIG_PATH" +} + +call_packet_function() { + local NAME=$1 + local FUNC=$2 + local PREPARE_FUNC=$3 + local FINALIZE_FUNC=$4 + + set_environment_vars $NAME + + local FUNC_NAME=pk$FUNC + local FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$FUNC + + message "$NAME $FUNC" + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + + set_undone_silent $NAME $FUNC + + mkdir -p $FUNC_CURRENT_PACKET_DIR + cd $FUNC_CURRENT_PACKET_DIR + + source "$PACKET_SCRIPT_DIR/$NAME.sh" + [ ! $? -eq 0 ] && return 1 + + if [ ! -z "$PREPARE_FUNC" ]; then + if ! "$PREPARE_FUNC"; then + return 1 + fi + fi + + if ! "$FUNC_NAME"; then + return 1 + fi + + if [ ! -z "$FINALIZE_FUNC" ]; then + if ! "$FINALIZE_FUNC"; then + return 1 + fi + fi + + set_done $NAME $FUNC +} + +foreach_deps() { + local NAME=$1 + local FUNC=$2 + local RECURSIVE=$3 + + source $PACKET_SCRIPT_DIR/$NAME.sh + [ ! $? -eq 0 ] && return 1 + + local CURRENT_DEPS=$DEPS + for DEP in $CURRENT_DEPS; do + if [ ! -z "$DEP" ]; then + local DEP_LOCAL=$DEP + if [ "$RECURSIVE" = "recursive" ]; then + if ! foreach_deps "$DEP_LOCAL" "$FUNC" "$RECURSIVE"; then + return 1 + fi + fi + if ! "$FUNC" "$DEP_LOCAL" "$NAME"; then + return 1 + fi + fi + done +} + +add_envdeps() { + if ! copy "$PACKET_DIR/$1/env" "$PACKET_DIR/$2/envdeps"; then + return 1 + fi +} + +add_envdeps_release() { + if ! copy "$PACKET_DIR/$1/env_release" "$PACKET_DIR/$2/envdeps_release"; then + return 1 + fi +} + +download() { + if ! (check_packet_function $1 download || call_packet_function $1 download); then + return 1 + fi +} + +unpack() { + if ! (check_packet_function $1 unpack || (download $1 && call_packet_function $1 unpack)); then + return 1 + fi +} + +envdeps() { + if check_packet_function $1 envdeps; then + return 0 + fi + + local NAME=$1 + + if ! foreach_deps $NAME env; then + return 1 + fi + + message "$NAME envdeps" + + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + + clean_packet_directory_silent $NAME envdeps + mkdir -p "$PACKET_DIR/$NAME/envdeps" + if ! foreach_deps $NAME add_envdeps; then + return 1 + fi + set_done $NAME envdeps +} + +build() { + if ! (check_packet_function $1 build || (envdeps $1 && unpack $1 && call_packet_function $1 build prepare_build)); then + return 1 + fi +} + +install() { + if ! (check_packet_function $1 install || (build $1 && call_packet_function $1 install)); then + return 1 + fi +} + +env() { + if check_packet_function $1 env; then + return 0 + fi + + local NAME=$1 + + if ! (install $1 && envdeps $1); then + return 1 + fi + + message "$NAME env" + + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + + clean_packet_directory_silent $NAME env + mkdir -p "$PACKET_DIR/$NAME/env" + if ! (copy "$PACKET_DIR/$NAME/envdeps" "$PACKET_DIR/$NAME/env" \ + && copy "$PACKET_DIR/$NAME/install" "$PACKET_DIR/$NAME/env"); then + return 1 + fi + set_done $NAME env +} + +install_release() { + if ! (check_packet_function $1 install_release || (install $1 && call_packet_function $1 install_release)); then + return 1 + fi +} + +envdeps_release() { + if check_packet_function $1 envdeps_release; then + return 0 + fi + + local NAME=$1 + + if ! foreach_deps $NAME env_release; then + return 1 + fi + + message "$NAME envdeps_release" + + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + + clean_packet_directory_silent $NAME envdeps_release + mkdir -p "$PACKET_DIR/$NAME/envdeps_release" + if ! foreach_deps $NAME add_envdeps_release; then + return 1 + fi + set_done $NAME envdeps_release +} + +env_release() { + if check_packet_function $1 env_release; then + return 0 + fi + + local NAME=$1 + + if ! (install_release $1 && envdeps_release $1); then + return 1 + fi + + message "$NAME env_release" + + if [ ! -z "$DRY_RUN" ]; then + return 0 + fi + + clean_packet_directory_silent $NAME env_release + mkdir -p "$PACKET_DIR/$NAME/env_release" + if ! (copy "$PACKET_DIR/$NAME/envdeps_release" "$PACKET_DIR/$NAME/env_release" \ + && copy "$PACKET_DIR/$NAME/install_release" "$PACKET_DIR/$NAME/env_release"); then + return 1 + fi + set_done $NAME env_release +} + + +############# + +clean_download() { + clean_packet_directory $1 download +} + +clean_unpack() { + clean_packet_directory $1 download +} + +clean_envdeps() { + clean_packet_directory $1 envdeps +} + +clean_build() { + clean_packet_directory $1 build +} + +clean_install() { + clean_packet_directory $1 install +} + +clean_env() { + clean_packet_directory $1 env +} + +clean_install_release() { + clean_packet_directory $1 install_release +} + +clean_envdeps_release() { + clean_packet_directory $1 envdeps_release +} + +clean_env_release() { + clean_packet_directory $1 env_release +} + +clean() { + clean_download $1 + clean_unpack $1 + clean_envdeps $1 + clean_build $1 + clean_install $1 + clean_env $1 + clean_install_release $1 + clean_envdeps_release $1 + clean_env_release $1 +} + +############# + +set_undone_download() { + set_undone $1 download +} + +set_undone_unpack() { + set_undone $1 download +} + +set_undone_envdeps() { + set_undone $1 envdeps +} + +set_undone_build() { + set_undone $1 build +} + +set_undone_install() { + set_undone $1 install +} + +set_undone_env() { + set_undone $1 env +} + +set_undone_install_release() { + set_undone $1 install_release +} + +set_undone_envdeps_release() { + set_undone $1 envdeps_release +} + +set_undone_env_release() { + set_undone $1 env_release +} + +clean() { + set_undone_download $1 + set_undone_unpack $1 + set_undone_envdeps $1 + set_undone_build $1 + set_undone_install $1 + set_undone_env $1 + set_undone_install_release $1 + set_undone_envdeps_release $1 + set_undone_env_release $1 +} + +############# + +with_deps() { + if ! foreach_deps "$2" "$1" "recursive"; then + return 1 + fi + if ! "$1" "$2"; then + return 1 + fi +} + +shell() { + set_environment_vars $1 + cd $PACKET_DIR/$1 + /bin/bash -i +} + +dry_run() { + DRY_RUN=1 + "$@" +} + +"$@" diff --git a/docker-builder-data/build/script/common/test b/docker-builder-data/build/script/common/test deleted file mode 100755 index 307fd52..0000000 --- a/docker-builder-data/build/script/common/test +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -myfunc() { - echo "This is myfunc with arg $1" -} - -FUNCNAME="myfunc" - -"$FUNCNAME" fuflon - -DEPS="asdf qwer zxcv tyii fgjg" -for DEP in $DEPS; do - myfunc "$DEP" -done \ No newline at end of file diff --git a/docker-builder-data/build/script/include/inc-pkall-default.sh b/docker-builder-data/build/script/include/inc-pkall-default.sh new file mode 100644 index 0000000..00326be --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkall-default.sh @@ -0,0 +1,7 @@ + +# PK_URL +# PK_ARCHIVE +# PK_DIRNAME + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkallinstall-default.sh diff --git a/docker-builder-data/build/script/include/inc-pkall-git.sh b/docker-builder-data/build/script/include/inc-pkall-git.sh new file mode 100644 index 0000000..44961df --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkall-git.sh @@ -0,0 +1,6 @@ + +# PK_URL +# PK_DIRNAME + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkallinstall-default.sh diff --git a/docker-builder-data/build/script/include/inc-pkallinstall-default.sh b/docker-builder-data/build/script/include/inc-pkallinstall-default.sh new file mode 100644 index 0000000..4eb65d2 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkallinstall-default.sh @@ -0,0 +1,6 @@ + +# PK_DIRNAME + +source $INCLUDE_SCRIPT_DIR/inc-pkbuild-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh diff --git a/docker-builder-data/build/script/include/inc-pkallunpack-default.sh b/docker-builder-data/build/script/include/inc-pkallunpack-default.sh new file mode 100644 index 0000000..f291a12 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkallunpack-default.sh @@ -0,0 +1,6 @@ + +# PK_URL +# PK_ARCHIVE + +source $INCLUDE_SCRIPT_DIR/inc-pkdownload-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkunpack-default.sh diff --git a/docker-builder-data/build/script/include/inc-pkallunpack-git.sh b/docker-builder-data/build/script/include/inc-pkallunpack-git.sh new file mode 100644 index 0000000..379685b --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkallunpack-git.sh @@ -0,0 +1,6 @@ + +# PK_URL +# PK_DIRNAME + +source $INCLUDE_SCRIPT_DIR/inc-pkdownload-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkunpack-git.sh diff --git a/docker-builder-data/build/script/include/inc-pkbuild-default.sh b/docker-builder-data/build/script/include/inc-pkbuild-default.sh new file mode 100644 index 0000000..9feea23 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkbuild-default.sh @@ -0,0 +1,17 @@ + +# PK_DIRNAME + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.cunfigure; then + if ! ./configure --prefix=$INSTALL_PACKET_DIR; then + return 1 + fi + set_done $NAME build.cunfigure + fi + + if ! make -j${THREADS}; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/include/inc-pkdownload-default.sh b/docker-builder-data/build/script/include/inc-pkdownload-default.sh new file mode 100644 index 0000000..6e27f4e --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkdownload-default.sh @@ -0,0 +1,9 @@ + +# PK_URL +# PK_ARCHIVE + +pkdownload() { + if ! wget -c "$PK_URL" -O $PK_ARCHIVE; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/include/inc-pkdownload-git.sh b/docker-builder-data/build/script/include/inc-pkdownload-git.sh new file mode 100644 index 0000000..271e6f3 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkdownload-git.sh @@ -0,0 +1,16 @@ + +# PK_URL +# PK_DIRNAME + +pkdownload() { + if [ -d "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME/.git" ]; then + cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" + if ! git pull; then + return 1 + fi + else + if ! git clone "$PK_URL"; then + return 1 + fi + fi +} diff --git a/docker-builder-data/build/script/include/inc-pkinstall-default.sh b/docker-builder-data/build/script/include/inc-pkinstall-default.sh new file mode 100644 index 0000000..5c16f7f --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkinstall-default.sh @@ -0,0 +1,9 @@ + +# PK_DIRNAME + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! make install; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/include/inc-pkinstall_release-default.sh b/docker-builder-data/build/script/include/inc-pkinstall_release-default.sh new file mode 100644 index 0000000..7f28a28 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkinstall_release-default.sh @@ -0,0 +1,7 @@ + +pkinstall_release() { + if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then + return 1 + fi + rm -r -f "$INSTALL_RELEASE_PACKET_DIR/include" +} diff --git a/docker-builder-data/build/script/include/inc-pkunpack-default.sh b/docker-builder-data/build/script/include/inc-pkunpack-default.sh new file mode 100644 index 0000000..799aaa2 --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkunpack-default.sh @@ -0,0 +1,18 @@ + +# PK_ARCHIVE + +pkunpack() { + if [ ${PK_ARCHIVE: -7} == ".tar.gz" ]; then + if ! tar -xzf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then + return 1 + fi + elif [ ${PK_ARCHIVE: -7} == ".tgz" ]; then + if ! tar -xzf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then + return 1 + fi + else + if ! tar -xf "$DOWNLOAD_PACKET_DIR/$PK_ARCHIVE"; then + return 1 + fi + fi +} \ No newline at end of file diff --git a/docker-builder-data/build/script/include/inc-pkunpack-git.sh b/docker-builder-data/build/script/include/inc-pkunpack-git.sh new file mode 100644 index 0000000..ca0701d --- /dev/null +++ b/docker-builder-data/build/script/include/inc-pkunpack-git.sh @@ -0,0 +1,9 @@ + +# PK_DIRNAME + +pkunpack() { + if ! (copy "$DOWNLOAD_PACKET_DIR" "$UNPACK_PACKET_DIR" \ + && rm -f -r "$UNPACK_PACKET_DIR/$PK_DIRNAME/.git"); then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/blas-3.6.0.sh b/docker-builder-data/build/script/packet/blas-3.6.0.sh new file mode 100644 index 0000000..12fbbea --- /dev/null +++ b/docker-builder-data/build/script/packet/blas-3.6.0.sh @@ -0,0 +1,22 @@ +DEPS="" + +PK_DIRNAME="BLAS-3.6.0" +PK_ARCHIVE="blas-3.6.0.tgz" +PK_URL="http://www.netlib.org/blas/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! make; then + return 1 + fi +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/lib" + if ! cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME/blas_LINUX.a" "$INSTALL_PACKET_DIR/lib/libblas.a"; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/boost-1.61.0.sh b/docker-builder-data/build/script/packet/boost-1.61.0.sh new file mode 100644 index 0000000..2b4e751 --- /dev/null +++ b/docker-builder-data/build/script/packet/boost-1.61.0.sh @@ -0,0 +1,19 @@ +DEPS="" + +PK_DIRNAME="boost_1_61_0" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://sourceforge.net/projects/boost/files/boost/1.61.0/$PK_ARCHIVE/download" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + return 0 +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/include/" + if ! cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME/boost" "$INSTALL_PACKET_DIR/include/"; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/cmake-3.6.2.sh b/docker-builder-data/build/script/packet/cmake-3.6.2.sh new file mode 100644 index 0000000..8517d12 --- /dev/null +++ b/docker-builder-data/build/script/packet/cmake-3.6.2.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="cmake-3.6.2" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://cmake.org/files/v3.6/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/glew-2.0.0.sh b/docker-builder-data/build/script/packet/glew-2.0.0.sh old mode 100755 new mode 100644 index 1c2ae3a..a2aec40 --- a/docker-builder-data/build/script/packet/glew-2.0.0.sh +++ b/docker-builder-data/build/script/packet/glew-2.0.0.sh @@ -1,29 +1,23 @@ DEPS="" PK_DIRNAME="glew-2.0.0" +PK_ARCHIVE="$PK_DIRNAME.tgz" +PK_URL="https://sourceforge.net/projects/glew/files/glew/2.0.0/$PK_ARCHIVE/download" -pkdownload() { - if ! wget "https://sourceforge.net/projects/glew/files/glew/2.0.0/$PK_DIRNAME.tgz/download"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xzf "$2/$PK_DIRNAME.tgz"; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make -j${THREADS}; then return 1 fi } pkinstall() { - cd $2 - if ! make install; then + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make install; then return 1 fi } diff --git a/docker-builder-data/build/script/packet/glib-2.50.sh b/docker-builder-data/build/script/packet/glib-2.50.sh old mode 100755 new mode 100644 index 68c60b5..894a267 --- a/docker-builder-data/build/script/packet/glib-2.50.sh +++ b/docker-builder-data/build/script/packet/glib-2.50.sh @@ -1,29 +1,7 @@ DEPS="" PK_DIRNAME="glib-2.50.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/glib/2.50/$PK_ARCHIVE" -pkdownload() { - if ! wget "https://download.gnome.org/sources/glib/2.50/$PK_DIRNAME.tar.xz"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xf "$2/$PK_DIRNAME.tar.xz"; then - return 1 - fi -} - -pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then - return 1 - fi -} - -pkinstall() { - cd $2 - if ! make install; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/jpeg-9b.sh b/docker-builder-data/build/script/packet/jpeg-9b.sh old mode 100755 new mode 100644 index f8fc805..f0c35f0 --- a/docker-builder-data/build/script/packet/jpeg-9b.sh +++ b/docker-builder-data/build/script/packet/jpeg-9b.sh @@ -1,29 +1,7 @@ DEPS="" -PK_DIRNAME="jpegsrc.v9b" +PK_DIRNAME="jpeg-9b" +PK_ARCHIVE="jpegsrc.v9b.tar.gz" +PK_URL="http://ijg.org/files/$PK_ARCHIVE" -pkdownload() { - if ! wget "http://ijg.org/files/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xzf "$2/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} - -pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then - return 1 - fi -} - -pkinstall() { - cd $2 - if ! make install; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/lz4-master.sh b/docker-builder-data/build/script/packet/lz4-master.sh new file mode 100644 index 0000000..996d95c --- /dev/null +++ b/docker-builder-data/build/script/packet/lz4-master.sh @@ -0,0 +1,21 @@ +DEPS="" + +PK_DIRNAME="lz4" +PK_URL="https://github.com/Cyan4973/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! PREFIX=${INSTALL_PACKET_DIR} make -j${THREADS}; then + return 1 + fi +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! PREFIX=${INSTALL_PACKET_DIR} make install; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/lz4.sh b/docker-builder-data/build/script/packet/lz4.sh deleted file mode 100755 index 7495f3a..0000000 --- a/docker-builder-data/build/script/packet/lz4.sh +++ /dev/null @@ -1,37 +0,0 @@ -DEPS="" - -PK_DIRNAME="lz4" - -pkdownload() { - if [ -d "lz4/.git" ]; then - if ! git clone https://github.com/Cyan4973/$PK_DIRNAME.git; then - return 1 - fi - else - cd "$PK_DIRNAME" - if ! git pull; then - return 1 - fi - fi -} - -pkunpack() { - cd "$2/$PK_DIRNAME" - if ! git checkout-index "--prefix=$1/$PK_DIRNAME/" -f -a; then - return 1 - fi -} - -pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then - return 1 - fi -} - -pkinstall() { - cd "$2" - if ! make install; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/openblas-master.sh b/docker-builder-data/build/script/packet/openblas-master.sh new file mode 100644 index 0000000..83fe63f --- /dev/null +++ b/docker-builder-data/build/script/packet/openblas-master.sh @@ -0,0 +1,21 @@ +DEPS="" + +PK_DIRNAME="OpenBLAS" +PK_URL="https://github.com/xianyi/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! PREFIX=${INSTALL_PACKET_DIR} make -j${THREADS}; then + return 1 + fi +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! PREFIX=${INSTALL_PACKET_DIR} make install; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/opentoonz-master.files/FindTIFF.cmake b/docker-builder-data/build/script/packet/opentoonz-master.files/FindTIFF.cmake new file mode 100644 index 0000000..1f601b0 --- /dev/null +++ b/docker-builder-data/build/script/packet/opentoonz-master.files/FindTIFF.cmake @@ -0,0 +1,39 @@ +# looks for libtiff(4.0.3 modified) +find_path( + TIFF_INCLUDE_DIR + NAMES + tiffio.h + HINTS + ${SDKROOT} + PATH_SUFFIXES + tiff-4.0.3/libtiff/ +) + +find_library( + TIFF_LIBRARY + NAMES + libtiff.so + HINTS + ${SDKROOT} + PATH_SUFFIXES + tiff-4.0.3/libtiff/.libs + NO_DEFAULT_PATH +) + +message("***** libtiff Header path:" ${TIFF_INCLUDE_DIR}) +message("***** libtiff Library path:" ${TIFF_LIBRARY}) + +set(TIFF_NAMES ${TIFF_NAMES} TIFF) + +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF + DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR) + +if(TIFF_FOUND) + set(TIFF_LIBRARIES ${TIFF_LIBRARY}) +endif() + +mark_as_advanced( + TIFF_LIBRARY + TIFF_INCLUDE_DIR +) diff --git a/docker-builder-data/build/script/packet/opentoonz-master.files/Makefile.in b/docker-builder-data/build/script/packet/opentoonz-master.files/Makefile.in new file mode 100644 index 0000000..11440ab --- /dev/null +++ b/docker-builder-data/build/script/packet/opentoonz-master.files/Makefile.in @@ -0,0 +1,953 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Tag Image File Format (TIFF) Software +# +# Copyright (C) 2004, Andrey Kiselev +# +# Permission to use, copy, modify, distribute, and sell this software and +# its documentation for any purpose is hereby granted without fee, provided +# that (i) the above copyright notices and this permission notice appear in +# all copies of the software and related documentation, and (ii) the names of +# Sam Leffler and Silicon Graphics may not be used in any advertising or +# publicity relating to the software without the specific, prior written +# permission of Sam Leffler and Silicon Graphics. +# +# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, +# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY +# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. +# +# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR +# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, +# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF +# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE +# OF THIS SOFTWARE. + +# Process this file with automake to produce Makefile.in. + + + +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +@HAVE_CXX_TRUE@am__append_1 = tiffio.hxx +@WIN32_IO_TRUE@am__append_2 = tif_unix.c +@WIN32_IO_TRUE@am__append_3 = tif_win32.c +@WIN32_IO_FALSE@am__append_4 = tif_win32.c +@WIN32_IO_FALSE@am__append_5 = tif_unix.c +@HAVE_CXX_TRUE@am__append_6 = libtiffxx.la +@HAVE_RPATH_TRUE@am__append_7 = $(LIBDIR) +@HAVE_LD_VERSION_SCRIPT_TRUE@am__append_8 = -Wl,--version-script=$(srcdir)/libtiff.map +@HAVE_RPATH_TRUE@am__append_9 = $(LIBDIR) +@HAVE_LD_VERSION_SCRIPT_TRUE@am__append_10 = -Wl,--version-script=$(srcdir)/libtiffxx.map +noinst_PROGRAMS = mkg3states$(EXEEXT) +subdir = libtiff +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/tif_config.h.in $(srcdir)/tiffconf.h.in \ + $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp \ + $(am__libtiffinclude_HEADERS_DIST) $(noinst_HEADERS) +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = tif_config.h tiffconf.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" \ + "$(DESTDIR)$(libtiffincludedir)" \ + "$(DESTDIR)$(libtiffincludedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +libtiff_la_DEPENDENCIES = $(LIBPORT) +am__libtiff_la_SOURCES_DIST = tif_aux.c tif_close.c tif_codec.c \ + tif_color.c tif_compress.c tif_dir.c tif_dirinfo.c \ + tif_dirread.c tif_dirwrite.c tif_dumpmode.c tif_error.c \ + tif_extension.c tif_fax3.c tif_fax3sm.c tif_flush.c \ + tif_getimage.c tif_getimage_64.c tif_jbig.c tif_jpeg.c \ + tif_jpeg_12.c tif_luv.c tif_lzma.c tif_lzw.c tif_next.c \ + tif_ojpeg.c tif_open.c tif_packbits.c tif_pixarlog.c \ + tif_predict.c tif_print.c tif_read.c tif_strip.c tif_swab.c \ + tif_thunder.c tif_tile.c tif_version.c tif_warning.c \ + tif_write.c tif_zip.c tif_win32.c tif_unix.c +@WIN32_IO_TRUE@am__objects_1 = tif_win32.lo +@WIN32_IO_FALSE@am__objects_2 = tif_unix.lo +am_libtiff_la_OBJECTS = tif_aux.lo tif_close.lo tif_codec.lo \ + tif_color.lo tif_compress.lo tif_dir.lo tif_dirinfo.lo \ + tif_dirread.lo tif_dirwrite.lo tif_dumpmode.lo tif_error.lo \ + tif_extension.lo tif_fax3.lo tif_fax3sm.lo tif_flush.lo \ + tif_getimage.lo tif_getimage_64.lo tif_jbig.lo tif_jpeg.lo \ + tif_jpeg_12.lo tif_luv.lo tif_lzma.lo tif_lzw.lo tif_next.lo \ + tif_ojpeg.lo tif_open.lo tif_packbits.lo tif_pixarlog.lo \ + tif_predict.lo tif_print.lo tif_read.lo tif_strip.lo \ + tif_swab.lo tif_thunder.lo tif_tile.lo tif_version.lo \ + tif_warning.lo tif_write.lo tif_zip.lo $(am__objects_1) \ + $(am__objects_2) +libtiff_la_OBJECTS = $(am_libtiff_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +libtiff_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(libtiff_la_LDFLAGS) $(LDFLAGS) -o $@ +am_libtiffxx_la_OBJECTS = tif_stream.lo +libtiffxx_la_OBJECTS = $(am_libtiffxx_la_OBJECTS) +libtiffxx_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(libtiffxx_la_LDFLAGS) $(LDFLAGS) -o $@ +@HAVE_CXX_TRUE@am_libtiffxx_la_rpath = -rpath $(libdir) +PROGRAMS = $(noinst_PROGRAMS) +am_mkg3states_OBJECTS = mkg3states.$(OBJEXT) +mkg3states_OBJECTS = $(am_mkg3states_OBJECTS) +mkg3states_DEPENDENCIES = $(LIBPORT) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = +SOURCES = $(libtiff_la_SOURCES) $(libtiffxx_la_SOURCES) \ + $(mkg3states_SOURCES) +DIST_SOURCES = $(am__libtiff_la_SOURCES_DIST) $(libtiffxx_la_SOURCES) \ + $(mkg3states_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__libtiffinclude_HEADERS_DIST = tiff.h tiffio.h tiffvers.h \ + tiffio.hxx +HEADERS = $(libtiffinclude_HEADERS) $(nodist_libtiffinclude_HEADERS) \ + $(noinst_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)tif_config.h.in tiffconf.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GLUT_CFLAGS = @GLUT_CFLAGS@ +GLUT_LIBS = @GLUT_LIBS@ +GLU_CFLAGS = @GLU_CFLAGS@ +GLU_LIBS = @GLU_LIBS@ +GL_CFLAGS = @GL_CFLAGS@ +GL_LIBS = @GL_LIBS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBDIR = @LIBDIR@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTIFF_ALPHA_VERSION = @LIBTIFF_ALPHA_VERSION@ +LIBTIFF_DOCDIR = @LIBTIFF_DOCDIR@ +LIBTIFF_MAJOR_VERSION = @LIBTIFF_MAJOR_VERSION@ +LIBTIFF_MICRO_VERSION = @LIBTIFF_MICRO_VERSION@ +LIBTIFF_MINOR_VERSION = @LIBTIFF_MINOR_VERSION@ +LIBTIFF_RELEASE_DATE = @LIBTIFF_RELEASE_DATE@ +LIBTIFF_VERSION = @LIBTIFF_VERSION@ +LIBTIFF_VERSION_INFO = @LIBTIFF_VERSION_INFO@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PTHREAD_CC = @PTHREAD_CC@ +PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +XMKMF = @XMKMF@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +ax_pthread_config = @ax_pthread_config@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +tiff_libs_private = @tiff_libs_private@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +LIBPORT = $(top_builddir)/port/libport.la +LIBTIFF = $(top_builddir)/libtiff/libtiff.la +libtiffincludedir = $(includedir) +EXTRA_DIST = Makefile.vc SConstruct tif_config.h-vms tif_config.vc.h \ + tif_config.wince.h tiffconf.vc.h tiffconf.wince.h libtiff.def \ + libtiff.map libtiffxx.map $(am__append_2) $(am__append_4) +libtiffinclude_HEADERS = tiff.h tiffio.h tiffvers.h $(am__append_1) +noinst_HEADERS = \ + t4.h \ + tif_dir.h \ + tif_predict.h \ + tiffiop.h \ + uvcode.h + +nodist_libtiffinclude_HEADERS = \ + tiffconf.h + +libtiff_la_SOURCES = tif_aux.c tif_close.c tif_codec.c tif_color.c \ + tif_compress.c tif_dir.c tif_dirinfo.c tif_dirread.c \ + tif_dirwrite.c tif_dumpmode.c tif_error.c tif_extension.c \ + tif_fax3.c tif_fax3sm.c tif_flush.c tif_getimage.c \ + tif_getimage_64.c tif_jbig.c tif_jpeg.c tif_jpeg_12.c \ + tif_luv.c tif_lzma.c tif_lzw.c tif_next.c tif_ojpeg.c \ + tif_open.c tif_packbits.c tif_pixarlog.c tif_predict.c \ + tif_print.c tif_read.c tif_strip.c tif_swab.c tif_thunder.c \ + tif_tile.c tif_version.c tif_warning.c tif_write.c tif_zip.c \ + $(am__append_3) $(am__append_5) +libtiffxx_la_SOURCES = \ + tif_stream.cxx + +lib_LTLIBRARIES = libtiff.la $(am__append_6) +libtiff_la_LDFLAGS = -no-undefined -version-info \ + $(LIBTIFF_VERSION_INFO) $(am__append_7) $(am__append_8) +libtiff_la_LIBADD = $(LIBPORT) +libtiffxx_la_LDFLAGS = -no-undefined -version-info \ + $(LIBTIFF_VERSION_INFO) $(am__append_9) $(am__append_10) +libtiffxx_la_LIBADD = $(LIBTIFF) $(LIBPORT) +libtiffxx_la_DEPENDENCIES = libtiff.la +mkg3states_SOURCES = mkg3states.c tif_fax3.h +mkg3states_LDADD = $(LIBPORT) +all: tif_config.h tiffconf.h + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .c .cxx .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign libtiff/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign libtiff/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +tif_config.h: stamp-h1 + @test -f $@ || rm -f stamp-h1 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/tif_config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status libtiff/tif_config.h +$(srcdir)/tif_config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +tiffconf.h: stamp-h2 + @test -f $@ || rm -f stamp-h2 + @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h2 + +stamp-h2: $(srcdir)/tiffconf.h.in $(top_builddir)/config.status + @rm -f stamp-h2 + cd $(top_builddir) && $(SHELL) ./config.status libtiff/tiffconf.h + +distclean-hdr: + -rm -f tif_config.h stamp-h1 tiffconf.h stamp-h2 + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +libtiff.la: $(libtiff_la_OBJECTS) $(libtiff_la_DEPENDENCIES) $(EXTRA_libtiff_la_DEPENDENCIES) + $(AM_V_CCLD)$(libtiff_la_LINK) -rpath $(libdir) $(libtiff_la_OBJECTS) $(libtiff_la_LIBADD) $(LIBS) + +libtiffxx.la: $(libtiffxx_la_OBJECTS) $(libtiffxx_la_DEPENDENCIES) $(EXTRA_libtiffxx_la_DEPENDENCIES) + $(AM_V_CXXLD)$(libtiffxx_la_LINK) $(am_libtiffxx_la_rpath) $(libtiffxx_la_OBJECTS) $(libtiffxx_la_LIBADD) $(LIBS) + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +mkg3states$(EXEEXT): $(mkg3states_OBJECTS) $(mkg3states_DEPENDENCIES) $(EXTRA_mkg3states_DEPENDENCIES) + @rm -f mkg3states$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(mkg3states_OBJECTS) $(mkg3states_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkg3states.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_aux.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_close.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_codec.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_color.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_compress.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_dir.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_dirinfo.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_dirread.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_dirwrite.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_dumpmode.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_error.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_extension.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_fax3.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_fax3sm.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_flush.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_getimage.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_getimage_64.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_jbig.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_jpeg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_jpeg_12.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_luv.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_lzma.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_lzw.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_next.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_ojpeg.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_open.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_packbits.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_pixarlog.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_predict.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_print.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_read.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_stream.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_strip.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_swab.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_thunder.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_tile.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_unix.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_version.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_warning.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_win32.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_write.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tif_zip.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +.cxx.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cxx.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cxx.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-libtiffincludeHEADERS: $(libtiffinclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libtiffinclude_HEADERS)'; test -n "$(libtiffincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libtiffincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libtiffincludedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libtiffincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libtiffincludedir)" || exit $$?; \ + done + +uninstall-libtiffincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libtiffinclude_HEADERS)'; test -n "$(libtiffincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libtiffincludedir)'; $(am__uninstall_files_from_dir) +install-nodist_libtiffincludeHEADERS: $(nodist_libtiffinclude_HEADERS) + @$(NORMAL_INSTALL) + @list='$(nodist_libtiffinclude_HEADERS)'; test -n "$(libtiffincludedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libtiffincludedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libtiffincludedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libtiffincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libtiffincludedir)" || exit $$?; \ + done + +uninstall-nodist_libtiffincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(nodist_libtiffinclude_HEADERS)'; test -n "$(libtiffincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libtiffincludedir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) tif_config.h \ + tiffconf.h +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libtiffincludedir)" "$(DESTDIR)$(libtiffincludedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + clean-noinstPROGRAMS mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-hdr distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-libtiffincludeHEADERS \ + install-nodist_libtiffincludeHEADERS + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libLTLIBRARIES uninstall-libtiffincludeHEADERS \ + uninstall-nodist_libtiffincludeHEADERS + +.MAKE: all install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-hdr distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-libtiffincludeHEADERS \ + install-man install-nodist_libtiffincludeHEADERS install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES \ + uninstall-libtiffincludeHEADERS \ + uninstall-nodist_libtiffincludeHEADERS + + +faxtable: mkg3states + (rm -f tif_fax3sm.c && ./mkg3states -b -c const tif_fax3sm.c) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/docker-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh b/docker-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh new file mode 100755 index 0000000..f550a4e --- /dev/null +++ b/docker-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +SCRIPT_FILE=`realpath "$0"` +SCRIPT_DIR=`dirname "$SCRIPT_FILE"` +BASE_DIR=`dirname "$SCRIPT_DIR"` + +if [ ! -d "$HOME/.config/OpenToonz" ]; then + mkdir -p $HOME/.config/OpenToonz + cp -r $BASE_DIR/share/openttonz/stuff $HOME/.config/OpenToonz/ + +cat << EOF > $HOME/.config/OpenToonz/SystemVar.ini +[General] +OPENTOONZROOT="$HOME/.config/OpenToonz/stuff" +OpenToonzPROFILES="$HOME/.config/OpenToonz/stuff/profiles" +TOONZCACHEROOT="$HOME/.config/OpenToonz/stuff/cache" +TOONZCONFIG="$HOME/.config/OpenToonz/stuff/config" +TOONZFXPRESETS="$HOME/.config/OpenToonz/stuff/projects/fxs" +TOONZLIBRARY="$HOME/.config/OpenToonz/stuff/projects/library" +TOONZPROFILES="$HOME/.config/OpenToonz/stuff/profiles" +TOONZPROJECTS="$HOME/.config/OpenToonz/stuff/projects" +TOONZROOT="$HOME/.config/OpenToonz/stuff" +TOONZSTUDIOPALETTE="$HOME/.config/OpenToonz/stuff/projects/studiopalette" +EOF + +fi + +export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib64:$LD_LIBRARY_PATH" + +OLDDIR=$(cd `dirname "$0"`; pwd) +cd "$BASE_DIR/bin" +./opentoonz +cd "$OLDDIR" diff --git a/docker-builder-data/build/script/packet/opentoonz-master.sh b/docker-builder-data/build/script/packet/opentoonz-master.sh new file mode 100644 index 0000000..abe730b --- /dev/null +++ b/docker-builder-data/build/script/packet/opentoonz-master.sh @@ -0,0 +1,56 @@ +DEPS="jpeg-9b png-1.6.25 lz4-master glew-2.0.0 usb-1.0.20 sdl-2.0.4 superlu-4.3 cmake-3.6.2 openblas-master boost-1.61.0 qt-5.7" + +PK_DIRNAME="opentoonz" +PK_URL="https://github.com/opentoonz/$PK_DIRNAME.git" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + if ! (cp "$FILES_PACKET_DIR/Makefile.in" "$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/" \ + && cp "$FILES_PACKET_DIR/FindTIFF.cmake" "$PK_DIRNAME/toonz/cmake/"); then + return 1 + fi + + if ! check_packet_function $NAME build.libtiff; then + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3" + if ! check_packet_function $NAME build.libtiff.configure; then + if ! ./configure; then + return 1 + fi + set_done $NAME build.libtiff.configure + fi + + if ! make -j${THREADS}; then + return 1 + fi + set_done $NAME build.libtiff + fi + + if ! cp "$ENVDEPS_PACKET_DIR/lib/libsuperlu_4.3.a" "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/libsuperlu_4.1.a"; then + return 1 + fi + + mkdir -p "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" + if ! check_packet_function $NAME build.configure; then + if ! cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PACKET_DIR ../sources; then + return 1 + fi + set_done $NAME build.configure + fi + + if ! make; then + return 1 + fi +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" + if ! make install; then + return 1 + fi + if ! cp -f "$FILES_PACKET_DIR/launch-opentoonz.sh" "$INSTALL_PACKET_DIR/bin"; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/png-1.6.25.sh b/docker-builder-data/build/script/packet/png-1.6.25.sh old mode 100755 new mode 100644 index a705074..1d708e7 --- a/docker-builder-data/build/script/packet/png-1.6.25.sh +++ b/docker-builder-data/build/script/packet/png-1.6.25.sh @@ -1,29 +1,7 @@ DEPS="" PK_DIRNAME="libpng-1.6.25" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/$PK_ARCHIVE" -pkdownload() { - if ! wget "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.25.tar.xz"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xf "$2/$PK_DIRNAME.tar.xz"; then - return 1 - fi -} - -pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then - return 1 - fi -} - -pkinstall() { - cd $2 - if ! make install; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/qt-5.7.sh b/docker-builder-data/build/script/packet/qt-5.7.sh old mode 100755 new mode 100644 index 2b055aa..d4bdd19 --- a/docker-builder-data/build/script/packet/qt-5.7.sh +++ b/docker-builder-data/build/script/packet/qt-5.7.sh @@ -1,29 +1,43 @@ -DEPS="" +DEPS="xcb-1.8.1" PK_DIRNAME="qt-everywhere-opensource-src-5.7.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://download.qt.io/official_releases/qt/5.7/5.7.0/single/$PK_ARCHIVE" -pkdownload() { - if ! wget "http://download.qt.io/official_releases/qt/5.7/5.7.0/single/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xzf "$2/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh pkbuild() { - cd "$1/$PK_DIRNAME" - if ! (./configure -prefix "$3" -opensource -confirm-license -qt-xcb -no-compile-examples -nomake examples && make); then + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.cunfigure; then + if ! ./configure -prefix "$INSTALL_PACKET_DIR" -opensource -confirm-license -no-compile-examples -nomake examples; then + return 1 + fi + set_done $NAME build.cunfigure + fi + + if ! make; then return 1 fi } pkinstall() { - cd "$2/$PK_DIRNAME" + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" if ! make install; then return 1 fi + + if ! cp -f "/lib/x86_64-linux-gnu/libudev.so.0" "$INSTALL_PACKET_DIR/lib/libudev.so.0"; then + return 1 + fi + +cat << EOF > "$INSTALL_PACKET_DIR/bin/qt.conf" +[Paths] +Prefix=.. +EOF + + if [ ! $? -eq 0 ]; then + return 1 + fi } diff --git a/docker-builder-data/build/script/packet/sdl-2.0.4.sh b/docker-builder-data/build/script/packet/sdl-2.0.4.sh new file mode 100644 index 0000000..45e1b4c --- /dev/null +++ b/docker-builder-data/build/script/packet/sdl-2.0.4.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="SDL2-2.0.4" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/superlu-4.3.files/make.inc b/docker-builder-data/build/script/packet/superlu-4.3.files/make.inc new file mode 100644 index 0000000..91f048f --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-4.3.files/make.inc @@ -0,0 +1,65 @@ +############################################################################ +# +# Program: SuperLU +# +# Module: make.inc +# +# Purpose: Top-level Definitions +# +# Creation date: October 2, 1995 +# +# Modified: February 4, 1997 Version 1.0 +# November 15, 1997 Version 1.1 +# September 1, 1999 Version 2.0 +# +############################################################################ +# +# The machine (platform) identifier to append to the library names +# +PLAT = _linux + +# +# The name of the libraries to be created/linked to +# +SuperLUroot = $(HOME)/SuperLU_4.3 +SUPERLULIB = $(SuperLUroot)/lib/libsuperlu_4.3.a + +#BLASLIB = $(SuperLUroot)/lib/libblas.a + +## ATLAS BLAS causes single-precision to fail +BLASDEF = -DUSE_VENDOR_BLAS +BLASLIB = $(LDFLAGS) -lblas + +## This BLAS causes single-precision to fail the test in SuperLU +#BLASDEF = -DUSE_VENDOR_BLAS +#BLASLIB = -L/usr/lib -lblas + +TMGLIB = libtmglib.a +LIBS = $(SUPERLULIB) $(BLASLIB) + +# +# The archiver and the flag(s) to use when building archive (library) +# If your system has no ranlib, set RANLIB = echo. +# +ARCH = ar +ARCHFLAGS = cr +RANLIB = ranlib + +CC = gcc +CFLAGS = -O3 -fPIC +NOOPTS = -fPIC +FORTRAN = g77 +FFLAGS = -O2 -fPIC +LOADER = $(CC) +LOADOPTS = + +# +# C preprocessor defs for compilation for the Fortran interface +# (-DNoChange, -DAdd_, -DAdd__, or -DUpCase) +# +CDEFS = -DAdd_ +# +# The directory in which Matlab is installed +# +MATLAB = /usr/sww/matlab + diff --git a/docker-builder-data/build/script/packet/superlu-4.3.files/mc64ad.c b/docker-builder-data/build/script/packet/superlu-4.3.files/mc64ad.c new file mode 100644 index 0000000..b24ad13 --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-4.3.files/mc64ad.c @@ -0,0 +1,16 @@ +#include +#include + +void mc64id_(int *a) +{ + fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n"); + abort(); +} + +void mc64ad_(int *a, int *b, int *c, int d[], int e[], double f[], + int *g, int h[], int *i, int j[], int *k, double l[], + int m[], int n[]) +{ + fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n"); + abort(); +} diff --git a/docker-builder-data/build/script/packet/superlu-4.3.sh b/docker-builder-data/build/script/packet/superlu-4.3.sh new file mode 100644 index 0000000..a5f6e09 --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-4.3.sh @@ -0,0 +1,27 @@ +DEPS="blas-3.6.0" + +PK_DIRNAME="SuperLU_4.3" +PK_ARCHIVE="superlu_4.3.tar.gz" +PK_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! (cp -f "$FILES_PACKET_DIR/mc64ad.c" "$BUILD_PACKET_DIR/$PK_DIRNAME/SRC/" \ + && cp -f "$FILES_PACKET_DIR/make.inc" "$BUILD_PACKET_DIR/$PK_DIRNAME/"); then + return 1 + fi + + if ( ! HOME=$BUILD_PACKET_DIR make); then + return 1 + fi +} + +pkinstall() { + if ! cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME/lib" "$INSTALL_PACKET_DIR"; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/tiff-4.0.6.sh b/docker-builder-data/build/script/packet/tiff-4.0.6.sh old mode 100755 new mode 100644 index d8892d8..f28633a --- a/docker-builder-data/build/script/packet/tiff-4.0.6.sh +++ b/docker-builder-data/build/script/packet/tiff-4.0.6.sh @@ -1,29 +1,7 @@ DEPS="" PK_DIRNAME="tiff-4.0.6" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://download.osgeo.org/libtiff/$PK_ARCHIVE" -pkdownload() { - if ! wget "http://download.osgeo.org/libtiff/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} - -pkunpack() { - if ! tar -xzf "$2/$PK_DIRNAME.tar.gz"; then - return 1 - fi -} - -pkbuild() { - cd "$1/$PK_DIRNAME" - if ! ./configure "-prefix=$3" && make; then - return 1 - fi -} - -pkinstall() { - cd $2 - if ! make install; then - return 1 - fi -} +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/usb-1.0.20.sh b/docker-builder-data/build/script/packet/usb-1.0.20.sh new file mode 100644 index 0000000..08a38c4 --- /dev/null +++ b/docker-builder-data/build/script/packet/usb-1.0.20.sh @@ -0,0 +1,24 @@ +DEPS="" + +PK_DIRNAME="libusb-1.0.20" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.20/$PK_ARCHIVE/download" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.cunfigure; then + if ! ./configure --prefix=$INSTALL_PACKET_DIR; then + return 1 + fi + set_done $NAME build.cunfigure + fi + + if ! make; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/xcb-1.8.1.sh b/docker-builder-data/build/script/packet/xcb-1.8.1.sh new file mode 100644 index 0000000..a6df13b --- /dev/null +++ b/docker-builder-data/build/script/packet/xcb-1.8.1.sh @@ -0,0 +1,7 @@ +DEPS="xcbproto-1.8" + +PK_DIRNAME="libxcb-1.8.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://xcb.freedesktop.org/dist/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/xcbproto-1.8.sh b/docker-builder-data/build/script/packet/xcbproto-1.8.sh new file mode 100644 index 0000000..eb82d73 --- /dev/null +++ b/docker-builder-data/build/script/packet/xcbproto-1.8.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="xcb-proto-1.8" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://xcb.freedesktop.org/dist/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder/Dockerfile b/docker-builder/Dockerfile index 779be4a..95d282b 100644 --- a/docker-builder/Dockerfile +++ b/docker-builder/Dockerfile @@ -11,10 +11,15 @@ RUN apt-get -yq install \ g++ \ make -# Install base libs +# Install tools RUN apt-get -yq install \ sudo \ multiarch-support \ + realpath \ + pkg-config + +# Install base libs +RUN apt-get -yq install \ libpng12-dev \ libfreetype6-dev \ libxml2-dev \ @@ -63,6 +68,7 @@ RUN apt-get -yq install \ libxcb-keysyms1-dev \ libxcb-image0-dev \ libxcb-glx0-dev \ + libxcb-xfixes0-dev \ libfontconfig1-dev \ libfreetype6-dev \ libxi-dev \ @@ -74,12 +80,14 @@ RUN apt-get -yq install \ libglib2.0-dev \ libglu1-mesa-dev -# additional tools RUN apt-get -yq install \ - realpath \ - libxcb-xfixes0-dev \ - bash + liblzma-dev \ + liblzo2-dev \ + freeglut3-dev + +RUN apt-get -yq install gfortran +RUN apt-get -yq install ratfor +RUN apt-get -yq install csh +RUN apt-get -yq install libxcb-xinerama0-dev +RUN apt-get -yq install xsltproc -# Launcher -ADD conf/launch.sh / -CMD /bin/bash -c /launch.sh diff --git a/docker-builder/build.sh b/docker-builder/build.sh index 01888dc..c108b43 100755 --- a/docker-builder/build.sh +++ b/docker-builder/build.sh @@ -1,4 +1,6 @@ #!/bin/bash -docker build -t my/builder . +SCRIPT_FILE=`realpath "$0"` +SCRIPT_DIR=`dirname "$SCRIPT_FILE"` +docker build -t my/builder "$SCRIPT_DIR" diff --git a/docker-builder/conf/launch.sh b/docker-builder/conf/launch.sh deleted file mode 100755 index a4cb043..0000000 --- a/docker-builder/conf/launch.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# Set permissions to external files -#chown -R root:root /build - -# Work -/bin/bash -i diff --git a/docker-builder/exec.sh b/docker-builder/exec.sh deleted file mode 100755 index 1782756..0000000 --- a/docker-builder/exec.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -docker exec builder "$@" - diff --git a/docker-builder/manager.sh b/docker-builder/manager.sh deleted file mode 100755 index d1a10d4..0000000 --- a/docker-builder/manager.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -docker exec -i builder /build/script/common/manager "$@" - diff --git a/docker-builder/restore_owner.sh b/docker-builder/restore_owner.sh deleted file mode 100755 index 6836f8f..0000000 --- a/docker-builder/restore_owner.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -SCRIPT_FILE=`realpath "$0"` -SCRIPT_DIR=`dirname "$SCRIPT_FILE"` -BASE_DIR=`dirname "$SCRIPT_DIR"` -DATA_DIR="$BASE_DIR/docker-builder-data" - -sudo chown -R `id -un`:`id -gn` $DATA_DIR diff --git a/docker-builder/run.sh b/docker-builder/run.sh index b254c9d..55bdabf 100755 --- a/docker-builder/run.sh +++ b/docker-builder/run.sh @@ -7,10 +7,12 @@ DATA_DIR="$BASE_DIR/docker-builder-data" BUILD_DIR=$DATA_DIR/build -$SCRIPT_DIR/stop.sh +docker stop "builder" || true +docker rm "builder" || true -docker run -itd \ +docker run -it \ --name "builder" \ -v "$BUILD_DIR:/build" \ - my/builder + my/builder \ + /build/script/common/manager.sh "$@" diff --git a/docker-builder/stop.sh b/docker-builder/stop.sh deleted file mode 100755 index 61861be..0000000 --- a/docker-builder/stop.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -docker stop "builder" || true -docker rm "builder" || true diff --git a/readme b/readme new file mode 100644 index 0000000..7d08619 --- /dev/null +++ b/readme @@ -0,0 +1,18 @@ +Build docker: + + cd docker-builder + ./build.sh # sudo? + +Example usage: + + ./run-native with_deps unpack MEGAPROGRAM-1.0.0 + cd docker-builder + ./run env_release MEGAPROGRAM-1.0.0 # sudo? + + +ready environment will placed into: + + docker-builder-data/build/packet/linux-x64/MEGAPROGRAM-1.0.0/env_release + +"dry_run" option for paranoics: + ./run-native dry_run with_deps unpack MEGAPROGRAM-1.0.0 diff --git a/restore_owner.sh b/restore_owner.sh new file mode 100755 index 0000000..36b1f77 --- /dev/null +++ b/restore_owner.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +SCRIPT_FILE=`realpath "$0"` +BASE_DIR=`dirname "$SCRIPT_FILE"` +DATA_DIR="$BASE_DIR/docker-builder-data" + +sudo chown -R `id -un`:`id -gn` $DATA_DIR diff --git a/run-native.sh b/run-native.sh new file mode 100755 index 0000000..09ef3f3 --- /dev/null +++ b/run-native.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +SCRIPT_FILE=`realpath "$0"` +BASE_DIR=`dirname "$SCRIPT_FILE"` +DATA_DIR="$BASE_DIR/docker-builder-data" + +BUILD_DIR=$DATA_DIR/build + +$BUILD_DIR/script/common/manager.sh "$@"