diff --git a/build-opentoonz-testing.sh b/build-opentoonz-testing.sh index 5b3f86b..d8b5cc4 100755 --- a/build-opentoonz-testing.sh +++ b/build-opentoonz-testing.sh @@ -3,7 +3,7 @@ set -e BASE_DIR=$(cd `dirname "$0"`; pwd) -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build PUBLISH_DIR=$BASE_DIR/publish CONFIG_FILE="$BASE_DIR/config.sh" @@ -17,7 +17,7 @@ if [ -f $CONFIG_FILE ]; then source $CONFIG_FILE fi -SCRIPT="$BASE_DIR/docker/run.sh" +SCRIPT="$BASE_DIR/env/run.sh" run_appimage() { export PLATFORM="$1" diff --git a/build-opentoonz.sh b/build-opentoonz.sh index f430931..e260a6d 100755 --- a/build-opentoonz.sh +++ b/build-opentoonz.sh @@ -3,7 +3,7 @@ set -e BASE_DIR=$(cd `dirname "$0"`; pwd) -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build PUBLISH_DIR=$BASE_DIR/publish CONFIG_FILE="$BASE_DIR/config.sh" @@ -16,7 +16,7 @@ if [ -f $CONFIG_FILE ]; then source $CONFIG_FILE fi -SCRIPT="$BASE_DIR/docker/run.sh" +SCRIPT="$BASE_DIR/env/run.sh" run_appimage() { export PLATFORM="$1" diff --git a/build-papagayong.sh b/build-papagayong.sh index 7232640..873c0d8 100755 --- a/build-papagayong.sh +++ b/build-papagayong.sh @@ -3,7 +3,7 @@ set -e BASE_DIR=$(cd `dirname "$0"`; pwd) -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build PUBLISH_DIR=$BASE_DIR/publish CONFIG_FILE="$BASE_DIR/config.sh" @@ -16,7 +16,7 @@ if [ -f $CONFIG_FILE ]; then source $CONFIG_FILE fi -SCRIPT="$BASE_DIR/docker/run.sh" +SCRIPT="$BASE_DIR/env/run.sh" run_appimage() { export PLATFORM="$1" diff --git a/build-synfigstudio-debug.sh b/build-synfigstudio-debug.sh index a515230..a666184 100755 --- a/build-synfigstudio-debug.sh +++ b/build-synfigstudio-debug.sh @@ -3,7 +3,7 @@ set -e BASE_DIR=$(cd `dirname "$0"`; pwd) -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build PUBLISH_DIR=$BASE_DIR/publish CONFIG_FILE="$BASE_DIR/config.sh" @@ -17,7 +17,7 @@ if [ -f $CONFIG_FILE ]; then source $CONFIG_FILE fi -SCRIPT="$BASE_DIR/docker/run.sh" +SCRIPT="$BASE_DIR/env/run.sh" run_appimage() { export PLATFORM="$1" diff --git a/build-synfigstudio.sh b/build-synfigstudio.sh index 2ef6fae..9c27b70 100755 --- a/build-synfigstudio.sh +++ b/build-synfigstudio.sh @@ -3,7 +3,7 @@ set -e BASE_DIR=$(cd `dirname "$0"`; pwd) -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build PUBLISH_DIR=$BASE_DIR/publish CONFIG_FILE="$BASE_DIR/config.sh" @@ -17,7 +17,7 @@ if [ -f $CONFIG_FILE ]; then source $CONFIG_FILE fi -SCRIPT="$BASE_DIR/docker/run.sh" +SCRIPT="$BASE_DIR/env/run.sh" run_appimage() { export PLATFORM="$1" diff --git a/chrooter/build-initial-system.sh b/chrooter/build-initial-system.sh index ac97ff1..59090e0 100755 --- a/chrooter/build-initial-system.sh +++ b/chrooter/build-initial-system.sh @@ -6,7 +6,6 @@ arch=i386 suite=wheezy chroot_dir="/var/chroot/$suite" apt_mirror="ftp://ftp.debian.org/debian/" -docker_image="my/debian-$arch:$suite" export DEBIAN_FRONTEND=noninteractive debootstrap --arch $arch $suite $chroot_dir $apt_mirror @@ -23,5 +22,9 @@ chroot $chroot_dir apt-get autoclean chroot $chroot_dir apt-get clean chroot $chroot_dir apt-get autoremove -tar cfz debian-$suite-$arch.tar.gz -C $chroot_dir . +olddir=`pwd` +pushd $chroot_dir +zip "$olddir/debian-$suite-$arch.zip" -qyr0 . || true # zip cannot process some files from /dev +popd + rm -rf $chroot_dir diff --git a/chrooter/build.sh b/chrooter/build.sh index ff7c574..84f327e 100755 --- a/chrooter/build.sh +++ b/chrooter/build.sh @@ -14,4 +14,4 @@ fi export PACKET_BUILD_DIR mkdir -p $PACKET_BUILD_DIR -docker build -t my/builder $DOCKER_BUILD_OPTIONS "$SCRIPT_DIR" +chrooter build -t my/builder $CHROOTER_BUILD_OPTIONS "$SCRIPT_DIR" diff --git a/chrooter/chrooter.sh b/chrooter/chrooter.sh index 8638649..d530de1 100755 --- a/chrooter/chrooter.sh +++ b/chrooter/chrooter.sh @@ -18,11 +18,11 @@ fi image_mount_add() { echo "Mount: $1 -> $2" - sudo mkdir -p "$IMAGE_MOUNT_DIR$2" - sudo mount --bind "$1" "$IMAGE_MOUNT_DIR$2" - echo "umount \"$IMAGE_MOUNT_DIR$2\" \\" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" - echo "|| (echo \"next try after 10 seconds\" && sleep 10 && umount -f \"$IMAGE_MOUNT_DIR$2\") \\" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" - echo "|| (echo \"final try after 10 seconds\" && sleep 10 && umount -f \"$IMAGE_MOUNT_DIR$2\")" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" + sudo mkdir -p "$IMAGE_MOUNT_DIR/root$2" + sudo mount --bind "$1" "$IMAGE_MOUNT_DIR/root$2" + echo "umount \"$IMAGE_MOUNT_DIR/root$2\" \\" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" + echo "|| (echo \"next try after 10 seconds\" && sleep 10 && umount -f \"$IMAGE_MOUNT_DIR/root$2\") \\" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" + echo "|| (echo \"final try after 10 seconds\" && sleep 10 && umount -f \"$IMAGE_MOUNT_DIR/root$2\")" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" } image_mount() { @@ -38,20 +38,23 @@ image_mount() { fi local IMAGE_NAME="$(echo $1 | tr "/:" "_")" - local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.tgz" + local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.zip" - echo "Unpack image: $1" + echo "Prepare image: $1" IMAGE_MOUNT_DIR="/$PREFIX/$INSTANCE_NAME" - mkdir -p "$IMAGE_MOUNT_DIR" - cd "$IMAGE_MOUNT_DIR" - sudo tar -xzf $IMAGE_FILE - cd "$OLDDIR" + mkdir -p "$IMAGE_MOUNT_DIR/zip" + mkdir -p "$IMAGE_MOUNT_DIR/work" + mkdir -p "$IMAGE_MOUNT_DIR/root" echo "Add -.chroot.sh file" - sudo mv "/$PREFIX/$INSTANCE_NAME.chroot.sh" "$IMAGE_MOUNT_DIR" - sudo chmod a+x "$IMAGE_MOUNT_DIR/$INSTANCE_NAME.chroot.sh" - - set -- "${@:2}" + sudo mv "/$PREFIX/$INSTANCE_NAME.chroot.sh" "$IMAGE_MOUNT_DIR/work/" + sudo chmod a+x "$IMAGE_MOUNT_DIR/work/$INSTANCE_NAME.chroot.sh" + + echo "Mount root" + sudo fuse-zip -o ro "$IMAGE_FILE" "$IMAGE_MOUNT_DIR/zip" + sudo mount -wt aufs -o br=$IMAGE_MOUNT_DIR/work:$IMAGE_MOUNT_DIR/zip -o udba=none /dev/null $IMAGE_MOUNT_DIR/root/ + + set -- "${@:2}" echo "Mount subs: $@" echo "#!/bin/sh" > "/$PREFIX/$INSTANCE_NAME.umount.sh" echo "" >> "/$PREFIX/$INSTANCE_NAME.umount.sh" @@ -69,7 +72,8 @@ image_mount() { done echo "Add /etc/resolv.conf" - sudo mkdir -p $IMAGE_MOUNT_DIR/etc && cp /etc/resolv.conf $IMAGE_MOUNT_DIR/etc + sudo cp /etc/resolv.conf $IMAGE_MOUNT_DIR/root/ + sudo mkdir -p $IMAGE_MOUNT_DIR/root/etc && sudo cp /etc/resolv.conf $IMAGE_MOUNT_DIR/root/etc/ } image_unmount() { @@ -85,22 +89,26 @@ image_unmount() { sudo rm -f "/$PREFIX/$INSTANCE_NAME.umount.sh" echo "Remove -.chroot.sh file" - sudo rm -f "$IMAGE_MOUNT_DIR/$INSTANCE_NAME.chroot.sh" - + sudo rm -f "$IMAGE_MOUNT_DIR/root/$INSTANCE_NAME.chroot.sh" + if [ ! -z $1 ]; then echo "Save image: $1" local IMAGE_NAME="$(echo $1 | tr "/:" "_")" - local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.tgz" + local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.zip" local IMAGE_DIR=`dirname "$IMAGE_FILE"` mkdir -p "$IMAGE_DIR" - cd "$IMAGE_MOUNT_DIR" - sudo tar -czf $IMAGE_FILE . + cd "$IMAGE_MOUNT_DIR/root" + sudo rm "$IMAGE_FILE" + sudo zip "$IMAGE_FILE" -qyr0 . cd "$OLDDIR" fi - - echo "Remove unpacked image" + + sudo umount "$IMAGE_MOUNT_DIR/root" || (sleep 10 && umount -f "$IMAGE_MOUNT_DIR/root") + sudo fusermount -u "$IMAGE_MOUNT_DIR/zip" + + echo "Remove mount dirs" sudo rm -rf --one-file-system "$IMAGE_MOUNT_DIR" IMAGE_MOUNT_DIR= } @@ -113,7 +121,7 @@ image_command() { return 1 fi - if ! env -i /usr/bin/sudo -i chroot "$IMAGE_MOUNT_DIR" "/$INSTANCE_NAME.chroot.sh" $@; then + if ! env -i /usr/bin/sudo -i chroot "$IMAGE_MOUNT_DIR/root" "/$INSTANCE_NAME.chroot.sh" $@; then COMMAND_ERROR=1 echo "Command returned with error" fi @@ -122,8 +130,8 @@ image_command() { image_copy() { echo "Copy into image: $1 $2" - if ! cp "$1" "$IMAGE_MOUNT_DIR/$2"; then - echo "Cannot copy \"$1\" -> \"$IMAGE_MOUNT_DIR/$2\"" + if ! cp "$1" "$IMAGE_MOUNT_DIR/root/$2"; then + echo "Cannot copy \"$1\" -> \"$IMAGE_MOUNT_DIR/root/$2\"" return 1 fi } @@ -155,7 +163,7 @@ import() { local IMAGE_NAME="$(echo $2 | tr "/:" "_")" - local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.tgz" + local IMAGE_FILE="$BASE_DIR/image/$IMAGE_NAME.zip" local IMAGE_DIR=`dirname "$IMAGE_FILE"` mkdir -p "$IMAGE_DIR" cat "/dev/stdin" > $IMAGE_FILE @@ -212,13 +220,13 @@ build() { return 1 fi - local DOCKERFILE="$WORK_DIR/Dockerfile" - if [ ! -f "$DOCKERFILE" ]; then - echo "Dockerfile not found at: $DOCKERFILE" + local BUILDFILE="$WORK_DIR/Buildfile" + if [ ! -f "$BUILDFILE" ]; then + echo "Buildfile not found at: $BUILDFILE" return 1 fi - echo "Read $DOCKERFILE" + echo "Read $BUILDFILE" FULLROW= while read ROW; do FULLROW="$FULLROW$ROW" @@ -242,7 +250,7 @@ build() { IMAGE_NAME="" break fi - done < "$DOCKERFILE" + done < "$BUILDFILE" image_unmount "$IMAGE_NAME" } diff --git a/config.sh.blank b/config.sh.blank index 1f883c0..a18e1b9 100644 --- a/config.sh.blank +++ b/config.sh.blank @@ -1,9 +1,9 @@ # PACKET_BUILD_DIR=/data/builder # PROXY=http://1.2.3.4:1234 -# DOCKER_BUILD_OPTIONS="--build-arg=http_proxy=$PROXY --build-arg=https_proxy=$PROXY" -# DOCKER_RUN_OPTIONS="-e http_proxy=$PROXY -e https_proxy=$PROXY" +# CHROOTER_BUILD_OPTIONS="--build-arg=http_proxy=$PROXY --build-arg=https_proxy=$PROXY" +# CHROOTER_RUN_OPTIONS="-e http_proxy=$PROXY -e https_proxy=$PROXY" -# docker() { +# chrooter() { # export CHROOTER_PREFIX="/mnt" # $BASE_DIR/chrooter/chrooter.sh $@ # } diff --git a/docker-builder-data/build/.gitignore b/docker-builder-data/build/.gitignore deleted file mode 100644 index 1f87b92..0000000 --- a/docker-builder-data/build/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/packet/ diff --git a/docker-builder-data/build/script/common/helpers.sh b/docker-builder-data/build/script/common/helpers.sh deleted file mode 100644 index 2665a20..0000000 --- a/docker-builder-data/build/script/common/helpers.sh +++ /dev/null @@ -1,262 +0,0 @@ -# helpers - -allvars() { - for LOCAL_ALLVARS_VAR_PREFIX in _ {a..z} {A..Z}; do - eval echo -n $\{\!$LOCAL_ALLVARS_VAR_PREFIX*} | sed "s|LOCAL_ALLVARS_VAR_PREFIX||g" - echo -n " " - done -} - -vars_clear() { - # local PREFIX=$1 - [ ! -z "$1" ] || return 1 - for VAR in $(allvars); do - if [[ "$VAR" = $1* ]]; then - unset $VAR - fi - done -} - -vars_copy() { - # local PREFIX_FROM=$1 - # local PREFIX_TO=$2 - # local EXPORT=$3 - [ "$1" == "$2" ] && return 0 - for VAR in $(allvars); do - if [[ "$VAR" = $1* ]]; then - if [ "$3" = "export" ]; then - eval export ${2}${VAR#$1}='${!VAR}' - else - eval ${2}${VAR#$1}='${!VAR}' - fi - fi - done -} - -vars_rename() { - # local PREFIX_FROM=$1 - # local PREFIX_TO=$2 - [ ! -z "$1" ] || return 1 - vars_copy "$1" "$2" - vars_clear "$1" -} - -vars_backup() { - # local PREFIX=$1 - [ ! -z "$1" ] || return 1 - vars_copy "" "$1" -} - -vars_restore() { - # local PREFIX=$1 - # local EXPORT=$2 - [ ! -z "$1" ] || return 1 - vars_copy "$1" "" "$2" -} - -copy() { - local SRC=$1 - local DEST=$2 - if [ -d "$SRC" ]; then - if ! mkdir -p $DEST; then - return 1 - fi - if [ "$(ls -A $1)" ]; then - if ! cp --remove-destination -rlP $SRC/* "$DEST/"; then - return 1 - fi - fi - elif [ -f "$SRC" ]; then - if ! (mkdir -p `dirname $DEST` && cp --remove-destination -l "$SRC" "$DEST"); then - return 1 - fi - else - return 1 - fi -} - -foreachfile() { - local DIR="$1" - local COMMAND="$2" - if [ -z "$DIR" ] || [ ! -e "$DIR" ]; then - return 1 - fi - - if [ -d "$DIR" ]; then - for FILE in "$DIR/".*; do - if [ "$FILE" != "$DIR/." ] && [ "$FILE" != "$DIR/.." ]; then - if ! "$COMMAND" "$FILE" ${@:3}; then - return 1 - fi - fi - done - for FILE in "$DIR/"*; do - if [ "$FILE" != "$DIR" ] && [ "$FILE" != "$DIR/" ]; then - if ! "$COMMAND" "$FILE" ${@:3}; then - return 1 - fi - fi - done - fi -} - -remove_recursive() { - local DIR="$1" - local NEEDLE="$2" - - if [ -d "$DIR" ]; then - rm -f "$DIR/"$NEEDLE - if ! foreachfile "$DIR" "${FUNCNAME[0]}" "$NEEDLE"; then - return 1 - fi - fi -} - -foreachfile() { - local FILE=$1 - local COMMAND=$2 - if [ ! -e "$FILE" ]; then - return 1 - fi - if [ -d "$FILE" ]; then - ls -1 "$FILE" | while read SUBFILE; do - if ! $COMMAND "$FILE/$SUBFILE" ${@:3}; then - return 1 - fi - done - fi -} - -sha512dir() { - local DIR="$1" - local INFO="$2" - - local BASE=$(basename "$DIR") - - [[ "$BASE" != ".git" ]] || return 0 - [[ "$BASE" != *.po ]] || return 0 - - if [ "$INFO" = "info" ]; then - basename "$DIR" || return 1 - stat -c%F:%a:%s "$DIR" || return 1 - fi - - if [ -d "$DIR" ]; then - (foreachfile "$DIR" "${FUNCNAME[0]}" info | sha512sum -b | cut -c1-128) || return 1 - elif [ -L "$DIR" ]; then - (readlink "$DIR" | sha512sum -b | cut -c1-128) || return 1 - else - (sha512sum -b "$DIR" | cut -c1-128) || return 1 - fi -} - -copy_system_lib() { - local SRC_NAME=$1 - local DST_PATH=$2 - cp --remove-destination /lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/local/lib/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/local/lib64/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/local/lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - cp --remove-destination /usr/local/lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null - if ! (ls "$DST_PATH/$SRC_NAME"* &> /dev/null); then - echo "$SRC_NAME not found in system libraries" - return 1 - fi -} - -copy_system_gcc_libs() { - local DST_PATH=$1 - copy_system_lib libgcc "$DST_PATH" || return 1 - copy_system_lib libquadmath "$DST_PATH" || return 1 - copy_system_lib libgfortran "$DST_PATH" || return 1 - copy_system_lib libssp "$DST_PATH" || return 1 - copy_system_lib libstdc++ "$DST_PATH" || return 1 -} - -add_common_licenses() { - local FILE="$1" - local TARGET="$2" - - local LIC_PATH="/usr/share/common-licenses" - [ -d "$LIC_PATH" ] || return 0 - [[ ! "$FILE" = "$LIC_PATH/"* ]] || return 0 - ls -d1 "$LIC_PATH/"* | while read SUB_FILE; do - if grep -q "$SUB_FILE" "$FILE"; then - add_license "$SUB_FILE" "$SUB_FILE" "$TARGET" - fi - done -} - -add_license() { - local FILE="$1" - local FILE_IN_TITLE="$2" - local TARGET="$3" - if [ ! -z "$FILE_IN_TITLE" ]; then - echo "" >> "$TARGET" || return 1 - echo "-------------------------------------" >> "$TARGET" || return 1 - echo " File: $FILE_IN_TITLE" >> "$TARGET" || return 1 - echo "-------------------------------------" >> "$TARGET" || return 1 - echo "" >> "$TARGET" || return 1 - else - echo "" >> "$TARGET" || return 1 - echo "-------------------------------------" >> "$TARGET" || return 1 - echo "" >> "$TARGET" || return 1 - fi - cat "$FILE" >> "$TARGET" || return 1 - add_common_licenses "$FILE" "$TARGET" || return 1 -} - -copy_system_license() { - local SRC_NAMES=$1 - local DST_PATH=$2 - local SRC_NAME= - - for SRC_NAME in $SRC_NAMES; do - rm -f "$DST_PATH/license-$SRC_NAME" - done - for SRC_NAME in $SRC_NAMES; do - local TARGET="$DST_PATH/license-$SRC_NAME" - for SUFFIX in "" {0..9} "-"; do - local SUB_NAME="$SRC_NAME$SUFFIX" - if [ ! -z "$SUFFIX" ]; then - SUB_NAME="$SUB_NAME*" - fi - - for MASK in "/usr/share/doc/$SUB_NAME/copyright" \ - "/usr/share/licenses/$SUB_NAME" \ - "/usr/share/licenses/$SUB_NAME/*" \ - "/usr/share/doc/$SUB_NAME/*" \ - "/usr/local/share/doc/$SUB_NAME/copyright" - do - local FOUND= - ls -d1 $MASK 2>/dev/null | while read FILE; do - if [ -f "$FILE" ] && [[ "$FILE" != *.bz2 ]]; then - FOUND=1 - if ! add_license "$FILE" "$FILE" "$TARGET"; then - echo "Cannot add license file: $FILE -> $TARGET"; - return 1 - fi - fi - done - if [ ! -z "$FOUND" ]; then - break - fi - done - - if [ -z "$SUFFIX" ] && [ -f "$TARGET" ]; then - return 0 - fi - done - - if [ -f "$TARGET" ]; then - return 0 - fi - done - - echo "Cannot found any license for one of system packages: $SRC_NAMES (for $DST_PATH)" - return 1 -} - diff --git a/docker-builder-data/build/script/common/manager.sh b/docker-builder-data/build/script/common/manager.sh deleted file mode 100755 index b4342ca..0000000 --- a/docker-builder-data/build/script/common/manager.sh +++ /dev/null @@ -1,1114 +0,0 @@ -#!/bin/bash - -############################################### -# -# Input environment variables -# -# PLATFORM - target platform (linux or windows) -# ARCH - bits (32 or 64) -# NATIVE_PLATFORM - folder name for store compiled utilities for build-time (debian, fedora, etc) -# NATIVE_ARCH - ^^^ bits (32 or 64) -# THREADS - amount of simultaneous threads for build process -# PACKET_BUILD_DIR - output directory (optional) -# -############################################### - -# check options - -if [ -z "$NATIVE_PLATFORM" ]; then - NATIVE_PLATFORM="default" -fi - -if [ -z "$NATIVE_ARCH" ]; then - NATIVE_ARCH=`uname -m` - if [ "$NATIVE_ARCH" = "x86_64" ]; then - NATIVE_ARCH="64" - elif [ "$NATIVE_ARCH" = "i686" ]; then - NATIVE_ARCH="32" - fi -fi - -if [ -z "$TARGET_PLATFORM" ]; then - TARGET_PLATFORM="$NATIVE_PLATFORM" -fi - -if [ -z "$ARCH" ]; then - ARCH="$NATIVE_ARCH" -fi - -if [ -z "$THREADS" ]; then - THREADS=8 -fi - -export NATIVE_PLATFORM -export NATIVE_ARCH -export PLATFORM -export ARCH -export THREADS - -# root - -ROOT_DIR=$(cd `dirname "$0"`; pwd) -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 -if [ -z "$PACKET_BUILD_DIR" ]; then - export PACKET_BUILD_DIR=$ROOT_DIR/packet -fi -export PACKET_DIR=$PACKET_BUILD_DIR/$PLATFORM-$ARCH -export NATIVE_PACKET_DIR=$PACKET_BUILD_DIR/$NATIVE_PLATFORM-$NATIVE_ARCH-native - -# toolchain - -export TOOLCHAIN_SCRIPT_DIR=$SCRIPT_DIR/toolchain -export NATIVE_TOOLCHAIN_SCRIPT="$TOOLCHAIN_SCRIPT_DIR/none.sh" -export TOOLCHAIN_SCRIPT="$TOOLCHAIN_SCRIPT_DIR/$PLATFORM-$ARCH.sh" -if [ ! -f "$TOOLCHAIN_SCRIPT" ]; then - TOOLCHAIN_SCRIPT=$NATIVE_TOOLCHAIN_SCRIPT -fi - -# work vars - -IS_NATIVE= -DRY_RUN= -FORCE= -CLEAN_BEFORE_DO= -NO_CHECK_DEPS= -declare -A COMPLETION_STATUS - -############################################### -# -# Fairy Tale -# -# Once upon time in faraway... -# -# Function dependency: -# -# 1. download -# | -# 2. unpack -# | -# | env^ -# | | -# 3. | envdeps -# | | | | -# env^^ | | | | -# | | | | | -# | env_native^ | | | | -# | | | | | | -# 4. envdeps_native | | | | -# | | | | | | | -# 5. | | build | | -# | | | | | | -# 7. | --install | (you see the direct connection 'build' with 'license', trust me) -# | | || | | -# 8. | | || env -# | | || | | -# | | || | envdeps* -# | | || | -# | | || envdeps_native** -# | | || -# 9. env_native | || -# | | || -# envdeps_native* | || -# | || -# 10. | license -# | | -# | | env_release^ -# | | | -# 11. | | envdeps_release -# | | | | -# 12. install_release | -# | | -# 13. env_release -# | -# envdeps_release* -# -############################################### - -FUNC_DEPS_download="" -FUNC_DEPS_unpack="download" -FUNC_DEPS_envdeps="-env" -FUNC_DEPS_envdeps_native="--env -env_native" -FUNC_DEPS_build="envdeps envdeps_native unpack" -FUNC_DEPS_install="envdeps envdeps_native build" -FUNC_DEPS_env="envdeps install" -FUNC_DEPS_env_native="envdeps_native" -FUNC_DEPS_license="build install" -FUNC_DEPS_envdeps_release="-env_release" -FUNC_DEPS_install_release="envdeps_release install license" -FUNC_DEPS_env_release="envdeps_release install_release" - - -# helpers - -source "$COMMON_SCRIPT_DIR/helpers.sh" - -# initial system vars - -unset VARS_TO_RESTORE -vars_clear "TC_" -vars_clear "INITIAL_" -vars_backup "INITIAL_" - -# internal functions - -message() { - local MESSAGE=$1 - echo " ------ $MESSAGE" -} - -try_do_nothing() { - if [ -z "$DRY_RUN" ]; then - return 1 - fi - set_done $1 $2 -} - -set_done() { - local PACKET=$1 - local FUNC=$2 - local COMPLETION_KEY="$PLATFORM:$ARCH:$PACKET:$FUNC" - if [ -z "$DRY_RUN" ]; then - touch "$PACKET_DIR/$PACKET/$FUNC.done" - fi - COMPLETION_STATUS[$COMPLETION_KEY]=complete -} - -set_undone_silent() { - local PACKET=$1 - local FUNC=$2 - local COMPLETION_KEY="$PLATFORM:$ARCH:$PACKET:$FUNC" - if [ -z "$DRY_RUN" ]; then - rm -f $PACKET_DIR/$PACKET/$FUNC.*.done - rm -f "$PACKET_DIR/$PACKET/$FUNC.done" - fi - COMPLETION_STATUS[$COMPLETION_KEY]=incomplete -} - -set_undone() { - local PACKET=$1 - local FUNC=$2 - message "$PACKET set_undone $FUNC" - set_undone_silent $PACKET $FUNC -} - -clean_packet_directory_silent() { - local PACKET=$1 - local FUNC=$2 - set_undone_silent $PACKET $FUNC - try_do_nothing $PACKET $FUNC && return 0 - rm -rf "$PACKET_DIR/$PACKET/$FUNC" -} - -clean_packet_directory() { - local PACKET=$1 - local FUNC=$2 - message "$PACKET clean $FUNC" - clean_packet_directory_silent $PACKET $FUNC -} - -check_packet_function() { - local PACKET=$1 - local FUNC=$2 - if [ ! -z "$FORCE" ]; then - return 1 - fi - if [ ! -f "$PACKET_DIR/$PACKET/$FUNC.done" ]; then - return 1 - fi -} - -prepare_build() { - if ! copy "$UNPACK_PACKET_DIR" "$BUILD_PACKET_DIR"; then - return 1 - fi -} - -prepare_install() { - if ls $BUILD_PACKET_DIR/version-* 1> /dev/null 2>&1; then - cp --remove-destination $BUILD_PACKET_DIR/version-* "$INSTALL_PACKET_DIR/" || true - fi -} - -prepare_license() { - rm -f "$LICENSE_PACKET_DIR/"* -} - -prepare_install_release() { - if ls $INSTALL_PACKET_DIR/version-* 1> /dev/null 2>&1; then - cp --remove-destination $INSTALL_PACKET_DIR/version-* "$INSTALL_RELEASE_PACKET_DIR/" || true - fi - mkdir -p "$INSTALL_RELEASE_PACKET_DIR/license" || return 1 - copy "$LICENSE_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR/license" || return 1 -} - -set_environment_vars() { - # restore env - for VAR in $VARS_TO_RESTORE; do - VAR_FROM="INITIAL_$VAR" - if [ -z ${!VAR_FROM+x} ]; then - unset $VAR - else - eval export $VAR='${!VAR_FROM}' - fi - done - - # set toolchain env - VARS_TO_RESTORE= - for VAR in $(allvars); do - if [[ "$VAR" = TC_* ]]; then - VARS_TO_RESTORE="$VARS_TO_RESTORE ${VAR#TC_}" - fi - done - vars_restore "TC_" "export" - - # set env - 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 ENVDEPS_NATIVE_PACKET_DIR="$CURRENT_PACKET_DIR/envdeps_native" - export BUILD_PACKET_DIR="$CURRENT_PACKET_DIR/build" - export LICENSE_PACKET_DIR="$CURRENT_PACKET_DIR/license" - 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 ENV_NATIVE_PACKET_DIR="$CURRENT_PACKET_DIR/env_native" - export ENVDEPS_RELEASE_PACKET_DIR="$CURRENT_PACKET_DIR/envdeps_release" - export ENV_RELEASE_PACKET_DIR="$CURRENT_PACKET_DIR/env_release" - - export PATH="\ -$ENVDEPS_NATIVE_PACKET_DIR/bin:\ -$ENV_NATIVE_PACKET_DIR/bin:\ -$ENVDEPS_PACKET_DIR/bin:\ -$ENV_PACKET_DIR/bin:\ -$TC_PATH" - - export LD_LIBRARY_PATH="\ -$ENVDEPS_NATIVE_PACKET_DIR/lib:\ -$ENVDEPS_NATIVE_PACKET_DIR/lib64\ -$ENV_NATIVE_PACKET_DIR/lib:\ -$ENV_NATIVE_PACKET_DIR/lib64:\ -$ENVDEPS_PACKET_DIR/lib:\ -$ENVDEPS_PACKET_DIR/lib64:\ -$ENV_PACKET_DIR/lib:\ -$ENV_PACKET_DIR/lib64:\ -$TC_LD_LIBRARY_PATH" - - export LDFLAGS="-L$ENVDEPS_PACKET_DIR/lib -L$ENVDEPS_PACKET_DIR/lib64 $TC_LDFLAGS" - export CFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CFLAGS" - export CPPFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CPPFLAGS" - export CXXFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CXXFLAGS" - export PKG_CONFIG_PATH="$ENVDEPS_PACKET_DIR/lib/pkgconfig:$ENVDEPS_PACKET_DIR/lib64/pkgconfig:$ENVDEPS_PACKET_DIR/share/pkgconfig:$TC_PKG_CONFIG_PATH" - export PKG_CONFIG_LIBDIR="$ENVDEPS_PACKET_DIR/lib:$ENVDEPS_PACKET_DIR/lib64:$TC_PKG_CONFIG_LIBDIR" - export PKG_CONFIG_SYSROOT_DIR="/" - export XDG_DATA_DIRS="$ENVDEPS_PACKET_DIR/share:$TC_XDG_DATA_DIRS" - export ACLOCAL_PATH="$ENVDEPS_PACKET_DIR/share/aclocal:$TC_ACLOCAL_PATH" - export CMAKE_INCLUDE_PATH="$ENVDEPS_PACKET_DIR/include:$TC_CMAKE_INCLUDE_PATH" - export CMAKE_LIBRARY_PATH="$ENVDEPS_PACKET_DIR/lib:$ENVDEPS_PACKET_DIR/lib64:$TC_CMAKE_LIBRARY_PATH" -} - -call_packet_function() { - local NAME=$1 - local FUNC=$2 - local PREPARE_FUNC=$3 - local FINALIZE_FUNC=$4 - local COMPARE_RESULTS=$5 - - set_environment_vars $NAME - - local FUNC_NAME=pk$FUNC - local FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$FUNC - - message "$NAME $FUNC" - try_do_nothing $NAME $FUNC && return 0 - echo "${DRY_RUN_DONE[@]}" - - local PREV_HASH= - if [ "$COMPARE_RESULTS" = "compare_results" ]; then - if check_packet_function $NAME $FUNC; then - PREV_HASH=`sha512dir "$FUNC_CURRENT_PACKET_DIR"` - [ ! $? -eq 0 ] && return 1 - echo "sha512: $PREV_HASH" - fi - else - set_undone_silent $NAME $FUNC - fi - - mkdir -p $FUNC_CURRENT_PACKET_DIR - cd $FUNC_CURRENT_PACKET_DIR - - source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh - [ ! $? -eq 0 ] && return 1 - 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 - - if [ ! -z "$PREV_HASH" ]; then - local HASH=`sha512dir "$FUNC_CURRENT_PACKET_DIR"` - [ ! $? -eq 0 ] && return 1 - echo "sha512: $HASH" - if [ "$HASH" = "$PREV_HASH" ]; then - message "$NAME $FUNC - not changed" - return 0 - else - message "$NAME $FUNC - changed" - fi - fi - - set_done $NAME $FUNC -} - -foreach_deps() { - local NAME=$1 - local FUNC=$2 - local RECURSIVE=$3 - local NATIVE=$4 - local WAS_NATIVE=$IS_NATIVE - - source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh - [ ! $? -eq 0 ] && return 1 - source "$PACKET_SCRIPT_DIR/$NAME.sh" - [ ! $? -eq 0 ] && return 1 - if [ ! -z "$WAS_NATIVE" ]; then - DEPS="$DEPS $DEPS_NATIVE" - DEPS_NATIVE= - fi - - local CURRENT_DEPS=$DEPS - local CURRENT_DEPS_NATIVE=$DEPS_NATIVE - local PROCESS_SELF="" - if [ "$NATIVE" = "native" ]; then - CURRENT_DEPS=$DEPS_NATIVE - if [ ! -z "$TC_HOST" ]; then - PROCESS_SELF="process_self" - fi - fi - - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; 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 - - if [ "$RECURSIVE" = "recursive" ]; then - for DEP in $CURRENT_DEPS_NATIVE; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o ! -z "$TC_HOST" ]; then - local DEP_LOCAL=$DEP - if ! native foreach_deps "$DEP_LOCAL" "$FUNC" "$RECURSIVE"; then - return 1 - fi - if ! native "$FUNC" "$DEP_LOCAL" "$NAME"; then - return 1 - fi - fi - done - fi -} - -set_toolchain() { - if [ "$1" = "native" ]; then - IS_NATIVE=1 - if [ ! "$2" = "silent" ]; then - echo " --- set toolchain $NATIVE_PLATFORM-$NATIVE_ARCH (native)" - fi - source $NATIVE_TOOLCHAIN_SCRIPT - else - IS_NATIVE= - if [ ! "$2" = "silent" ]; then - echo " --- set toolchain $PLATFORM-$ARCH (target)" - fi - source $NATIVE_TOOLCHAIN_SCRIPT - source $TOOLCHAIN_SCRIPT - fi -} - -is_complete() { - local NAME=$1 - local FUNC=$2 - - local WAS_NATIVE=$IS_NATIVE - local WAS_PLATFORM=$PLATFORM - local WAS_ARCH=$ARCH - local WAS_PACKET_DIR=$PACKET_DIR - local PROCESS_SELF="" - if [ ! -z "$TC_HOST" ]; then - PROCESS_SELF="process_self" - fi - - local SUBFUNCS_VAR_NAME=FUNC_DEPS_$FUNC - local SUBFUNCS=${!SUBFUNCS_VAR_NAME} - local COMPLETION_KEY="$PLATFORM:$ARCH:$NAME:$FUNC" - if [ ! -z ${COMPLETION_STATUS[$COMPLETION_KEY]} ]; then - if [ "${COMPLETION_STATUS[$COMPLETION_KEY]}" = "complete" ]; then - return 0 - else - return 1 - fi - fi - - COMPLETION_STATUS[$COMPLETION_KEY]=incomplete - - if ! check_packet_function $1 $2; then - return 1 - fi - if [ ! -z "$NO_CHECK_DEPS" ]; then - COMPLETION_STATUS[$COMPLETION_KEY]=complete - return 0 - fi - - source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh - [ ! $? -eq 0 ] && return 1 - source "$PACKET_SCRIPT_DIR/$NAME.sh" - [ ! $? -eq 0 ] && return 1 - if [ ! -z "$WAS_NATIVE" ]; then - DEPS="$DEPS $DEPS_NATIVE" - DEPS_NATIVE= - fi - - local FAIL= - local CURRENT_DEPS="$DEPS" - local CURRENT_DEPS_NATIVE="$DEPS_NATIVE" - for SUBFUNC in $SUBFUNCS; do - local SUBFUNC_LOCAL=$SUBFUNC - if [ "${SUBFUNC_LOCAL:0:2}" = "--" ]; then - if [ ! -z "$CURRENT_DEPS_NATIVE" ]; then - SUBFUNC_LOCAL=${SUBFUNC_LOCAL:2} - if [ -z "$WAS_NATIVE" ]; then - set_toolchain "native" "silent" - PLATFORM=$NATIVE_PLATFORM - ARCH=$NATIVE_ARCH - PACKET_DIR=$NATIVE_PACKET_DIR - fi - for DEP in $CURRENT_DEPS_NATIVE; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; then - local DEP_LOCAL=$DEP - if ! is_complete $DEP_LOCAL $SUBFUNC_LOCAL; then - FAIL=1 - break - fi - if [ "$WAS_PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$DEP_LOCAL/$SUBFUNC_LOCAL.done" ]; then - FAIL=1 - break - fi - fi - done - if [ -z "$WAS_NATIVE" ]; then - PLATFORM=$WAS_PLATFORM - ARCH=$WAS_ARCH - PACKET_DIR=$WAS_PACKET_DIR - set_toolchain "" "silent" - fi - if [ ! -z "$FAIL" ]; then - return 1 - fi - fi - elif [ "${SUBFUNC_LOCAL:0:1}" = "-" ]; then - SUBFUNC_LOCAL=${SUBFUNC_LOCAL:1} - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" ]; then - local DEP_LOCAL=$DEP - if ! is_complete $DEP_LOCAL $SUBFUNC_LOCAL; then - return 1 - fi - if [ "$PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$DEP_LOCAL/$SUBFUNC_LOCAL.done" ]; then - return 1 - fi - fi - done - else - if ! is_complete $NAME $SUBFUNC_LOCAL; then - return 1 - fi - if [ "$PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$NAME/$SUBFUNC_LOCAL.done" ]; then - return 1 - fi - fi - done - - COMPLETION_STATUS[$COMPLETION_KEY]=complete -} - -prepare() { - local NAME=$1 - local FUNC=$2 - - local WAS_NATIVE=$IS_NATIVE - local WAS_PLATFORM=$PLATFORM - local WAS_ARCH=$ARCH - local WAS_PACKET_DIR=$PACKET_DIR - local PROCESS_SELF="" - if [ ! -z "$TC_HOST" ]; then - PROCESS_SELF="process_self" - fi - - local SUBFUNCS_VAR_NAME=FUNC_DEPS_$FUNC - local SUBFUNCS=${!SUBFUNCS_VAR_NAME} - - source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh - [ ! $? -eq 0 ] && return 1 - source "$PACKET_SCRIPT_DIR/$NAME.sh" - [ ! $? -eq 0 ] && return 1 - if [ ! -z "$WAS_NATIVE" ]; then - DEPS="$DEPS $DEPS_NATIVE" - DEPS_NATIVE= - fi - local FAIL= - local CURRENT_DEPS="$DEPS" - local CURRENT_DEPS_NATIVE="$DEPS_NATIVE" - for SUBFUNC in $SUBFUNCS; do - local SUBFUNC_LOCAL=$SUBFUNC - if [ "${SUBFUNC_LOCAL:0:2}" = "--" ]; then - if [ ! -z "$CURRENT_DEPS_NATIVE" ]; then - SUBFUNC_LOCAL=${SUBFUNC_LOCAL:2} - if [ -z "$WAS_NATIVE" ]; then - set_toolchain "native" - PLATFORM=$NATIVE_PLATFORM - ARCH=$NATIVE_ARCH - PACKET_DIR=$NATIVE_PACKET_DIR - fi - for DEP in $CURRENT_DEPS_NATIVE; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; then - if ! $SUBFUNC_LOCAL $DEP; then - FAIL=1 - break - fi - fi - done - if [ -z "$WAS_NATIVE" ]; then - PLATFORM=$WAS_PLATFORM - ARCH=$WAS_ARCH - PACKET_DIR="$WAS_PACKET_DIR" - set_toolchain - fi - if [ ! -z "$FAIL" ]; then - return 1 - fi - fi - elif [ "${SUBFUNC_LOCAL:0:1}" = "-" ]; then - SUBFUNC_LOCAL=${SUBFUNC_LOCAL:1} - for DEP in $CURRENT_DEPS; do - if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" ]; then - if ! $SUBFUNC_LOCAL $DEP; then - return 1 - fi - fi - done - elif ! $SUBFUNC_LOCAL $NAME; then - return 1 - fi - done - - if [ ! -z "$CLEAN_BEFORE_DO" ]; then - if ! clean_packet_directory $NAME $FUNC; then - return 1 - fi - fi -} - -add_envdeps() { - if ! copy "$PACKET_DIR/$1/env" "$PACKET_DIR/$2/envdeps"; then - return 1 - fi -} - -add_envdeps_native() { - if ! copy "$PACKET_DIR/$1/env_native" "$PACKET_DIR/$2/envdeps_native"; then - return 1 - fi -} - -add_envdeps_native_cross() { - if ! copy "$NATIVE_PACKET_DIR/$1/env" "$PACKET_DIR/$2/envdeps_native"; then - return 1 - fi -} - -add_envdeps_release() { - if ! copy "$PACKET_DIR/$1/env_release" "$PACKET_DIR/$2/envdeps_release"; then - return 1 - fi -} - -# functions - -update() { - local NAME=$1 - prepare $NAME download || return 1 - call_packet_function $NAME download "" "" compare_results || return 1 -} - -download() { - local NAME=$1 - is_complete $NAME download && return 0 - prepare $NAME download || return 1 - call_packet_function $NAME download || return 1 -} - -unpack() { - local NAME=$1 - is_complete $NAME unpack && return 0 - prepare $NAME unpack || return 1 - call_packet_function $NAME unpack || return 1 -} - -envdeps() { - local NAME=$1 - is_complete $NAME envdeps && return 0 - prepare $NAME envdeps || return 1 - - message "$NAME envdeps" - try_do_nothing $NAME envdeps && return 0 - - 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 -} - -envdeps_native() { - local NAME=$1 - is_complete $NAME envdeps_native && return 0 - prepare $NAME envdeps_native || return 1 - - message "$NAME envdeps_native" - try_do_nothing $NAME envdeps_native && return 0 - - clean_packet_directory_silent $NAME envdeps_native - mkdir -p "$PACKET_DIR/$NAME/envdeps_native" - if ! foreach_deps $NAME add_envdeps_native; then - return 1 - fi - if ! foreach_deps $NAME add_envdeps_native_cross "" "native"; then - return 1 - fi - set_done $NAME envdeps_native -} - -build() { - local NAME=$1 - is_complete $NAME build && return 0 - prepare $NAME build || return 1 - call_packet_function $NAME build prepare_build || return 1 -} - -install() { - local NAME=$1 - is_complete $NAME install && return 0 - prepare $NAME install || return 1 - call_packet_function $NAME install prepare_install || return 1 -} - -env() { - local NAME=$1 - is_complete $NAME env && return 0 - prepare $NAME env || return 1 - - message "$NAME env" - try_do_nothing $NAME env && return 0 - - clean_packet_directory_silent $NAME env - mkdir -p "$PACKET_DIR/$NAME/env" - copy "$PACKET_DIR/$NAME/envdeps" "$PACKET_DIR/$NAME/env" || return 1 - copy "$PACKET_DIR/$NAME/install" "$PACKET_DIR/$NAME/env" || return 1 - - set_done $NAME env -} - -env_native() { - local NAME=$1 - is_complete $NAME env_native && return 0 - prepare $NAME env_native || return 1 - - message "$NAME env_native" - try_do_nothing $NAME env_native && return 0 - - clean_packet_directory_silent $NAME env_native - mkdir -p "$PACKET_DIR/$NAME/env_native" - if ! copy "$PACKET_DIR/$NAME/envdeps_native" "$PACKET_DIR/$NAME/env_native"; then - return 1 - fi - set_done $NAME env_native -} - -license() { - local NAME=$1 - is_complete $NAME license && return 0 - prepare $NAME license || return 1 - call_packet_function $NAME license prepare_license || return 1 -} - -envdeps_release() { - local NAME=$1 - is_complete $NAME envdeps_release && return 0 - prepare $NAME envdeps_release || return 1 - - message "$NAME envdeps_release" - try_do_nothing $NAME envdeps_release && return 0 - - 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 -} - -install_release() { - local NAME=$1 - is_complete $NAME install_release && return 0 - prepare $NAME install_release || return 1 - call_packet_function $NAME install_release prepare_install_release || return 1 -} - -env_release() { - local NAME=$1 - is_complete $NAME env_release && return 0 - prepare $NAME env_release || return 1 - - message "$NAME env_release" - try_do_nothing $NAME env_release && return 0 - - clean_packet_directory_silent $NAME env_release - mkdir -p "$PACKET_DIR/$NAME/env_release" - copy "$PACKET_DIR/$NAME/envdeps_release" "$PACKET_DIR/$NAME/env_release" || return 1 - copy "$PACKET_DIR/$NAME/install_release" "$PACKET_DIR/$NAME/env_release" || return 1 - - set_done $NAME env_release -} - - -############# - -clean_download() { - clean_packet_directory $1 download -} - -clean_unpack() { - clean_packet_directory $1 unpack -} - -clean_envdeps() { - clean_packet_directory $1 envdeps -} - -clean_envdeps_native() { - clean_packet_directory $1 envdeps_native -} - -clean_build() { - clean_packet_directory $1 build -} - -clean_install() { - clean_packet_directory $1 install -} - -clean_env() { - clean_packet_directory $1 env -} - -clean_env_native() { - clean_packet_directory $1 env_native -} - -clean_license() { - clean_packet_directory $1 license -} - -clean_envdeps_release() { - clean_packet_directory $1 envdeps_release -} - -clean_install_release() { - clean_packet_directory $1 install_release -} - -clean_env_release() { - clean_packet_directory $1 env_release -} - -clean_all_env() { - clean_envdeps $1 - clean_envdeps_native $1 - clean_install $1 - clean_env $1 - clean_env_native $1 - clean_license $1 - clean_envdeps_release $1 - clean_install_release $1 - clean_env_release $1 -} - -clean_all_install() { - clean_build $1 - clean_all_env $1 -} - -clean_all_unpack() { - clean_download $1 - clean_unpack $1 -} - -clean() { - message "$1 clean all" - try_do_nothing $NAME clean_all && return 0 - rm -rf "$PACKET_DIR/$1" -} - -############# - -set_undone_download() { - set_undone $1 download -} - -set_undone_unpack() { - set_undone $1 download -} - -set_undone_envdeps() { - set_undone $1 envdeps -} - -set_undone_envdeps_native() { - set_undone $1 envdeps_native -} - -set_undone_build() { - set_undone $1 build -} - -set_undone_install() { - set_undone $1 install -} - -set_undone_env() { - set_undone $1 env -} - -set_undone_env_native() { - set_undone $1 env_native -} - -set_undone_license() { - set_undone $1 license -} - -set_undone_envdeps_release() { - set_undone $1 envdeps_release -} - -set_undone_install_release() { - set_undone $1 install_release -} - -set_undone_env_release() { - set_undone $1 env_release -} - -set_undone_all_env() { - set_undone_envdeps $1 - set_undone_envdeps_native $1 - set_undone_install $1 - set_undone_env $1 - set_undone_env_native $1 - set_undone_license $1 - set_undone_envdeps_release $1 - set_undone_install_release $1 - set_undone_env_release $1 -} - -set_undone_all_install() { - set_undone_build $1 - set_undone_all_env $1 -} - -set_undone_all_unpack() { - set_undone_download $1 - set_undone_unpack $1 -} - -set_undone_all() { - set_undone_all_unpack $1 - set_undone_all_install $1 -} - -############# - -with_deps() { - if ! foreach_deps "$2" "$1" "recursive"; then - return 1 - fi - if ! foreach_deps "$2" "$1" "recursive" "native"; then - return 1 - fi - if ! "$1" "$2"; then - return 1 - fi -} - -shell() { - echo "Set environment for $1" - set_environment_vars $1 - cd $PACKET_DIR/$1 - if [ -z "${*:2}" ]; then - /bin/bash -i - else - "${@:2}" - fi -} - -dry_run() { - DRY_RUN=1 - "$@" -} - -no_check_deps() { - NO_CHECK_DEPS=1 - "$@" -} - -force() { - FORCE=1 - "$@" -} - -clean_before_do() { - CLEAN_BEFORE_DO=1 - "$@" -} - -native() { - local ARGS="$@" - local LOCAL_ERROR=0 - if [ ! -z "$IS_NATIVE" ]; then - $ARGS - else - local WAS_PLATFORM=$PLATFORM - local WAS_ARCH=$ARCH - local WAS_PACKET_DIR=$PACKET_DIR - - set_toolchain "native" - PLATFORM=$NATIVE_PLATFORM - ARCH=$NATIVE_ARCH - PACKET_DIR=$NATIVE_PACKET_DIR - if [ ! -z "$NAME" ]; then - set_environment_vars $NAME - fi - - $ARGS - LOCAL_ERROR=$? - - PLATFORM=$WAS_PLATFORM - ARCH=$WAS_ARCH - PACKET_DIR=$WAS_PACKET_DIR - set_toolchain - if [ ! -z "$NAME" ]; then - set_environment_vars $NAME - fi - fi - return $LOCAL_ERROR -} - -native_at_place() { - local LOCAL_ERROR=0 - if [ ! -z "$IS_NATIVE" ]; then - "$@" - else - local WAS_PLATFORM=$PLATFORM - local WAS_ARCH=$ARCH - - set_toolchain "native" - PLATFORM=$NATIVE_PLATFORM - ARCH=$NATIVE_ARCH - if [ ! -z "$NAME" ]; then - set_environment_vars $NAME - fi - - "$@" - LOCAL_ERROR=$? - - PLATFORM=$WAS_PLATFORM - ARCH=$WAS_ARCH - set_toolchain - if [ ! -z "$NAME" ]; then - set_environment_vars $NAME - fi - fi - return $LOCAL_ERROR -} - -foreach_packet() { - local COMMAND=$1 - local FILE= - ls -1 "$PACKET_SCRIPT_DIR" | grep -e \\.sh$ | while read FILE; do - if ! $COMMAND "${FILE:0:-3}" ${@:2}; then - return 1 - fi - done -} - -chain() { - local ARG - local CNT=1 - for ARG in "$@"; do - if [ "${@:CNT:1}" = "chain" ]; then - break; - fi - CNT=$((CNT+1)) - done - if ! "${@:0:CNT}"; then return 1; fi - if ! "${@:CNT}"; then return 1; fi -} - -with_envvar() { - local LOCAL_ENVVAR_NAME="$1" - local LOCAL_ENVVAR_VALUE="$2" - local LOCAL_ENVVAR_PREV="${!LOCAL_ENVVAR_NAME}" - eval export $LOCAL_ENVVAR_NAME="$LOCAL_ENVVAR_VALUE" - if ! "${@:3}"; then - eval export $1="$LOCAL_ENVVAR_PREV" - return 1 - fi - eval export $1="$LOCAL_ENVVAR_PREV" -} - -set_toolchain -"$@" - diff --git a/docker-builder-data/build/script/include/inc-pkall-default.sh b/docker-builder-data/build/script/include/inc-pkall-default.sh deleted file mode 100644 index 218c5b4..0000000 --- a/docker-builder-data/build/script/include/inc-pkall-default.sh +++ /dev/null @@ -1,13 +0,0 @@ - -# PK_URL -# PK_VERSION -# PK_ARCHIVE -# PK_DIRNAME -# PK_CONFIGURE_OPTIONS -# PK_CFLAGS -# PK_CPPFLAGS -# PK_LDFLAGS -# PK_CONFIGURE_OPTIONS_DEFAULT - -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 deleted file mode 100644 index d94eb2c..0000000 --- a/docker-builder-data/build/script/include/inc-pkall-git.sh +++ /dev/null @@ -1,12 +0,0 @@ - -# PK_URL -# PK_VERSION -# PK_DIRNAME -# PK_CONFIGURE_OPTIONS -# PK_CFLAGS -# PK_CPPFLAGS -# PK_CONFIGURE_OPTIONS_DEFAULT -# PK_GIT_CHECKOUT - -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-pkall-none.sh b/docker-builder-data/build/script/include/inc-pkall-none.sh deleted file mode 100644 index 7c77131..0000000 --- a/docker-builder-data/build/script/include/inc-pkall-none.sh +++ /dev/null @@ -1,82 +0,0 @@ -DEPS= -DEPS_NATIVE= - -vars_clear "PK_" - -PK_URL= -PK_VERSION= -PK_ARCHIVE= -PK_DIRNAME= -PK_CONFIGURE_OPTIONS= -PK_CFLAGS= -PK_CPPFLAGS= -PK_LDFLAGS= -PK_GIT_CHECKOUT= -PK_LICENSE_FILES= - -PK_CONFIGURE_OPTIONS_DEFAULT= - -if [ ! -z "$HOST" ]; then - PK_CONFIGURE_OPTIONS_DEFAULT=" \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - --host=$HOST " -fi - -PK_CONFIGURE_OPTIONS_DEFAULT=" \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - --prefix=$INSTALL_PACKET_DIR \ - --disable-static \ - --enable-shared " - - -pkhelper_patch() { - local FILE_PATH="$1" - local FILE_NAME="$2" - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/$FILE_PATH/$FILE_NAME" "$FILE_PATH/" || return 1 - patch "$FILE_PATH/$FILE_NAME" "$FILES_PACKET_DIR/$FILE_NAME.patch" || return 1 -} - - -pkdownload() { - return 0 -} - -pkunpack() { - return 0 -} - -pkbuild() { - return 0 -} - -pklicense() { - return 0 -} - -pkinstall() { - return 0 -} - -pkinstall_release() { - return 0 -} - -pkhook_version() { - echo "$NAME" | cut -d'-' -f 2- -} - -pkhook_prebuild() { - return 0 -} - -pkhook_postlicense() { - return 0 -} - -pkhook_postinstall() { - return 0 -} - -pkhook_postinstall_release() { - return 0 -} diff --git a/docker-builder-data/build/script/include/inc-pkallinstall-default.sh b/docker-builder-data/build/script/include/inc-pkallinstall-default.sh deleted file mode 100644 index 44bdb1f..0000000 --- a/docker-builder-data/build/script/include/inc-pkallinstall-default.sh +++ /dev/null @@ -1,7 +0,0 @@ - -# PK_DIRNAME - -source $INCLUDE_SCRIPT_DIR/inc-pkbuild-default.sh -source $INCLUDE_SCRIPT_DIR/inc-pklicense-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 deleted file mode 100644 index 2d55f80..0000000 --- a/docker-builder-data/build/script/include/inc-pkallunpack-default.sh +++ /dev/null @@ -1,7 +0,0 @@ - -# PK_URL -# PK_VERSION -# 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 deleted file mode 100644 index 6f53c1b..0000000 --- a/docker-builder-data/build/script/include/inc-pkallunpack-git.sh +++ /dev/null @@ -1,8 +0,0 @@ - -# PK_URL -# PK_VERSION -# PK_DIRNAME -# PK_GIT_CHECKOUT - -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 deleted file mode 100644 index 8f88c2f..0000000 --- a/docker-builder-data/build/script/include/inc-pkbuild-default.sh +++ /dev/null @@ -1,29 +0,0 @@ - -# PK_DIRNAME -# PK_CONFIGURE_OPTIONS -# PK_CONFIGURE_OPTIONS_DEFAULT -# PK_CFLAGS -# PK_CPPFLAGS -# PK_LDFLAGS - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - if ! pkhook_prebuild; then - return 1 - fi - - if ! check_packet_function $NAME build.configure; then - CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \ - ./configure \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.configure - fi - - if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \ - 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 deleted file mode 100644 index 1b38bc3..0000000 --- a/docker-builder-data/build/script/include/inc-pkdownload-default.sh +++ /dev/null @@ -1,9 +0,0 @@ - -# PK_URL -# PK_ARCHIVE - -pkdownload() { - wget -c "$PK_URL" -O "$PK_ARCHIVE" \ - || curl -L "$PK_URL" -o "$PK_ARCHIVE" \ - || return 1 -} diff --git a/docker-builder-data/build/script/include/inc-pkdownload-git.sh b/docker-builder-data/build/script/include/inc-pkdownload-git.sh deleted file mode 100644 index 8f00edb..0000000 --- a/docker-builder-data/build/script/include/inc-pkdownload-git.sh +++ /dev/null @@ -1,26 +0,0 @@ - -# PK_URL -# PK_DIRNAME -# PK_GIT_CHECKOUT - -pkdownload() { - if [ -d "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME/.git" ]; then - cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 - git fetch || return 1 - if [ "$PK_GIT_CHECKOUT" = "" ]; then - git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) || return 1 - else - git reset --hard "$PK_GIT_CHECKOUT" || return 1 - fi - git submodule init || true - git submodule update || true - else - git clone "$PK_URL" || return 1 - cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 - if [ ! "$PK_GIT_CHECKOUT" = "" ]; then - git reset --hard "$PK_GIT_CHECKOUT" || return 1 - fi - git submodule init || true - git submodule update || true - 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 deleted file mode 100644 index 567ab46..0000000 --- a/docker-builder-data/build/script/include/inc-pkinstall-default.sh +++ /dev/null @@ -1,14 +0,0 @@ - -# PK_DIRNAME - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - if ! make install; then - return 1 - fi - - cd "$INSTALL_PACKET_DIR" - if ! pkhook_postinstall; 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 deleted file mode 100644 index 01cd993..0000000 --- a/docker-builder-data/build/script/include/inc-pkinstall_release-default.sh +++ /dev/null @@ -1,17 +0,0 @@ - -pkinstall_release() { - copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR" || return 1 - - rm -rf "$INSTALL_RELEASE_PACKET_DIR/include" - remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a - remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib64" *.a - rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/aclocal" - rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/devhelp" - rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/doc" - rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/gtk-doc" - rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/man" - - if ! pkhook_postinstall_release; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/include/inc-pklicense-default.sh b/docker-builder-data/build/script/include/inc-pklicense-default.sh deleted file mode 100644 index 8689e04..0000000 --- a/docker-builder-data/build/script/include/inc-pklicense-default.sh +++ /dev/null @@ -1,47 +0,0 @@ - -# PK_DIRNAME -# PK_LICENSE_FILES - -pklicense() { - local TARGET="$LICENSE_PACKET_DIR/license-$NAME" - rm -f "$TARGET" - - local FILES=" \ - AUTHORS \ - AUTHORS.txt \ - COPYING \ - COPYING.txt \ - LICENSE \ - LICENSE.txt \ - License.txt \ - COPYRIGHT \ - Copyright \ - Copyright.txt \ - CREDITS \ - CREDITS.txt " - if [ ! -z "$PK_LICENSE_FILES" ]; then - FILES="$PK_LICENSE_FILES" - fi - - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - local FILE= - for FILE in $FILES; do - if [ -f "$FILE" ]; then - add_license "$FILE" "$FILE" "$TARGET" || (echo "Cannot copy license file: $FILE"; return 1) - elif [ -f "$FILES_PACKET_DIR/$FILE" ]; then - add_license "$FILES_PACKET_DIR/$FILE" "" "$TARGET" || (echo "Cannot copy license file: $FILE"; return 1) - elif [ ! -z "$PK_LICENSE_FILES" ]; then - echo "Cannot copy license file: $FILE" - return 1 - fi - done - - if [ ! -f "$TARGET" ]; then - echo "Cannot copy any license"; - return 1 - fi - - if ! pkhook_postlicense; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/include/inc-pkunpack-default.sh b/docker-builder-data/build/script/include/inc-pkunpack-default.sh deleted file mode 100644 index cfcf91e..0000000 --- a/docker-builder-data/build/script/include/inc-pkunpack-default.sh +++ /dev/null @@ -1,27 +0,0 @@ - -# PK_VERSION -# 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 - - if [ -z "$PK_VERSION" ]; then - PK_VERSION="$(pkhook_version)" - [ $? -eq 0 ] || return 1 - fi - echo "$PK_VERSION" > "$UNPACK_PACKET_DIR/version-$NAME" - [ $? -eq 0 ] || return 1 - return 0 -} \ 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 deleted file mode 100644 index a04cecc..0000000 --- a/docker-builder-data/build/script/include/inc-pkunpack-git.sh +++ /dev/null @@ -1,21 +0,0 @@ - -# PK_VERSION -# PK_DIRNAME - -pkunpack() { - if ! (copy "$DOWNLOAD_PACKET_DIR" "$UNPACK_PACKET_DIR" \ - && rm -f -r "$UNPACK_PACKET_DIR/$PK_DIRNAME/.git"); then - return 1 - fi - - if [ -z "$PK_VERSION" ]; then - PK_VERSION="$(pkhook_version)" - [ $? -eq 0 ] || return 1 - fi - cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" - local COMMIT=`git rev-parse HEAD` - [ $? -eq 0 ] || return 1 - echo "$PK_VERSION-$COMMIT" > "$UNPACK_PACKET_DIR/version-$NAME" - [ $? -eq 0 ] || return 1 - return 0 -} diff --git a/docker-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh b/docker-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh deleted file mode 100644 index cf0e5df..0000000 --- a/docker-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh +++ /dev/null @@ -1,10 +0,0 @@ -DEPS="rsvg-2.40.16 gtk-3.22.12" - -PK_DIRNAME="adwaita-icon-theme-3.24.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/adwaita-icon-theme/3.24/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--disable-gtk2-engine" -PK_LICENSE_FILES="AUTHORS COPYING COPYING_CCBYSA3 COPYING_LGPL" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/appimagekit-master.sh b/docker-builder-data/build/script/packet/appimagekit-master.sh deleted file mode 100644 index b920db5..0000000 --- a/docker-builder-data/build/script/packet/appimagekit-master.sh +++ /dev/null @@ -1,33 +0,0 @@ -DEPS="png-1.6.26" -DEPS_NATIVE="cmake-3.6.2" - -PK_DIRNAME="AppImageKit" -PK_URL="https://github.com/probonopd/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="d5102de21952217e2f9d0d2119442f843e0fa4dd" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - - if ! check_packet_function $NAME build.configure; then - if ! cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PACKET_DIR .; then - return 1 - fi - set_done $NAME build.configure - fi - - if ! make -j${THREADS}; then - return 1 - fi -} - -pkinstall() { - mkdir -p "$INSTALL_PACKET_DIR/bin" - if ! (cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppImageAssistant" "$INSTALL_PACKET_DIR/bin/" \ - && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppRun" "$INSTALL_PACKET_DIR/bin/" \ - && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/desktopintegration" "$INSTALL_PACKET_DIR/bin/" \ - && chmod a+x "$INSTALL_PACKET_DIR/bin/desktopintegration"); then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/atk-2.22.0.sh b/docker-builder-data/build/script/packet/atk-2.22.0.sh deleted file mode 100644 index 9cb5097..0000000 --- a/docker-builder-data/build/script/packet/atk-2.22.0.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="glib-2.50.0" -#DEPS_NATIVE="gobjectintrospection-1.50.0" - -PK_DIRNAME="atk-2.22.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/atk/2.22/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/atkmm-2.24.2.sh b/docker-builder-data/build/script/packet/atkmm-2.24.2.sh deleted file mode 100644 index c9b225f..0000000 --- a/docker-builder-data/build/script/packet/atkmm-2.24.2.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="atk-2.22.0 glibmm-2.50.0" - -PK_DIRNAME="atkmm-2.24.2" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/atkmm/2.24/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/atspi2-2.22.0.sh b/docker-builder-data/build/script/packet/atspi2-2.22.0.sh deleted file mode 100644 index 62aeabf..0000000 --- a/docker-builder-data/build/script/packet/atspi2-2.22.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="glib-2.50.0" - -PK_DIRNAME="at-spi2-core-2.22.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/at-spi2-core/2.22/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/atspi2atk-2.22.0.sh b/docker-builder-data/build/script/packet/atspi2atk-2.22.0.sh deleted file mode 100644 index 5b6048e..0000000 --- a/docker-builder-data/build/script/packet/atspi2atk-2.22.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="atk-2.22.0 atspi2-2.22.0" - -PK_DIRNAME="at-spi2-atk-2.22.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/at-spi2-atk/2.22/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/automake-1.15.sh b/docker-builder-data/build/script/packet/automake-1.15.sh deleted file mode 100644 index 79fb484..0000000 --- a/docker-builder-data/build/script/packet/automake-1.15.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="automake-1.15" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://ftp.gnu.org/gnu/automake/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/berkeleydb-5.3.28.sh b/docker-builder-data/build/script/packet/berkeleydb-5.3.28.sh deleted file mode 100644 index c6013e2..0000000 --- a/docker-builder-data/build/script/packet/berkeleydb-5.3.28.sh +++ /dev/null @@ -1,24 +0,0 @@ -DEPS="" - -PK_DIRNAME="db-5.3.28/build_unix" -PK_ARCHIVE="db-5.3.28.tar.gz" -PK_URL="http://download.oracle.com/berkeley-db/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if ! check_packet_function $NAME build.cunfigure; then - CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - ../dist/configure \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.cunfigure - fi - - if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - make -j${THREADS}; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/blas-3.7.0.files/COPYING b/docker-builder-data/build/script/packet/blas-3.7.0.files/COPYING deleted file mode 100644 index 5ea056c..0000000 --- a/docker-builder-data/build/script/packet/blas-3.7.0.files/COPYING +++ /dev/null @@ -1,9 +0,0 @@ -The reference BLAS is a freely-available software package. It is available from netlib via anonymous ftp and the World Wide Web. Thus, it can be included in commercial software packages (and has been). We only ask that proper credit be given to the authors. - -Like all software, it is copyrighted. It is not trademarked, but we do ask the following: - - If you modify the source for these routines we ask that you change the name of the routine and comment the changes made to the original. - - We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support. - -http://www.netlib.org/blas diff --git a/docker-builder-data/build/script/packet/blas-3.7.0.sh b/docker-builder-data/build/script/packet/blas-3.7.0.sh deleted file mode 100644 index 28aaea7..0000000 --- a/docker-builder-data/build/script/packet/blas-3.7.0.sh +++ /dev/null @@ -1,33 +0,0 @@ -DEPS="" - -PK_DIRNAME="BLAS-3.7.0" -PK_ARCHIVE="blas-3.7.0.tgz" -PK_URL="http://www.netlib.org/blas/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - -rm -f make.inc -cat > make.inc << EOF -SHELL = /bin/sh -FORTRAN = ${FORTRAN:-gfortran} -OPTS = -O3 -DRVOPTS = \$(OPTS) -NOOPT = -LOADER = \$(FORTRAN) -LOADOPTS = -ARCH = ${AR:-ar} -ARCHFLAGS = cr -RANLIB = ${RANLIB:-ranlib} -BLASLIB = libblas.a -EOF - - make || return 1 -} - -pkinstall() { - mkdir -p "$INSTALL_PACKET_DIR/lib" - cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/libblas.a" "$INSTALL_PACKET_DIR/lib/" || return 1 -} 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 deleted file mode 100644 index 6973790..0000000 --- a/docker-builder-data/build/script/packet/boost-1.61.0.sh +++ /dev/null @@ -1,35 +0,0 @@ -DEPS="zlib-1.2.11 bzip2-1.0.6" - -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" -PK_LICENSE_FILES="LICENSE_1_0.txt" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - if ! check_packet_function $NAME build.configure; then - local LOCAL_PREFIX=$INSTALL_PACKET_DIR - native_at_place ./bootstrap.sh --prefix=$LOCAL_PREFIX --without-libraries=python || return 1 - set_done $NAME build.configure - fi - - local LOCAL_OPTIONS= - if [ "$PLATFORM" = "win" ]; then - LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam" - echo "using gcc : win : $CXX : $CFLAGS $CXXFLAGS $LDFLAGS ;" > user-config.jam - fi - ./b2 -j${THREADS} $LOCAL_OPTIONS || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - local LOCAL_OPTIONS= - if [ "$PLATFORM" = "win" ]; then - LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam" - fi - ./b2 $LOCAL_OPTIONS install || return 1 - rm -rf "$INSTALL_RELEASE_PACKET_DIR/include" - remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a -} diff --git a/docker-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch b/docker-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch deleted file mode 100644 index ee75350..0000000 --- a/docker-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch +++ /dev/null @@ -1,22 +0,0 @@ -15c15 -< SHELL=/bin/sh ---- -> SHELL?=/bin/sh -18,21c18,21 -< CC=gcc -< AR=ar -< RANLIB=ranlib -< LDFLAGS= ---- -> CC?=gcc -> AR?=ar -> RANLIB?=ranlib -> LDFLAGS?= -24c24 -< CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) ---- -> CFLAGS+=-Wall -Winline -O2 -g -fPIC $(BIGFILES) -27c27 -< PREFIX=/usr/local ---- -> PREFIX?=/usr/local diff --git a/docker-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch b/docker-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch deleted file mode 100644 index 7af0f7b..0000000 --- a/docker-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch +++ /dev/null @@ -1,4 +0,0 @@ -131c131 -< # include ---- -> # include diff --git a/docker-builder-data/build/script/packet/bzip2-1.0.6.sh b/docker-builder-data/build/script/packet/bzip2-1.0.6.sh deleted file mode 100644 index 383d19b..0000000 --- a/docker-builder-data/build/script/packet/bzip2-1.0.6.sh +++ /dev/null @@ -1,28 +0,0 @@ - -PK_DIRNAME="bzip2-1.0.6" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://fossies.org/linux/misc/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/Makefile" ./ || return 1 - patch "Makefile" "$FILES_PACKET_DIR/Makefile.patch" || return 1 - - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/bzip2.c" ./ || return 1 - patch "bzip2.c" "$FILES_PACKET_DIR/bzip2.c.patch" || return 1 - - PREFIX="$INSTALL_PACKET_DIR" make -j${THREADS} libbz2.a || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - mkdir -p "$INSTALL_PACKET_DIR/include" - cp -f bzlib.h "$INSTALL_PACKET_DIR/include/" || return 1 - - mkdir -p "$INSTALL_PACKET_DIR/lib" - cp -f libbz2.a "$INSTALL_PACKET_DIR/lib/"|| return 1 -} diff --git a/docker-builder-data/build/script/packet/cairo-1.15.4.sh b/docker-builder-data/build/script/packet/cairo-1.15.4.sh deleted file mode 100644 index d96d6ad..0000000 --- a/docker-builder-data/build/script/packet/cairo-1.15.4.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="png-1.6.26 pixman-0.34.0 fontconfig-2.11.0 glib-2.50.0" - -PK_DIRNAME="cairo-1.15.4" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://www.cairographics.org/snapshots/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$PLATFORM" = "linux" ] || [ ! -z "$IS_NATIVE" ]; then - DEPS="$DEPS xcbfull-1.12" -fi diff --git a/docker-builder-data/build/script/packet/cairomm-1.12.0.sh b/docker-builder-data/build/script/packet/cairomm-1.12.0.sh deleted file mode 100644 index 7ecc6ae..0000000 --- a/docker-builder-data/build/script/packet/cairomm-1.12.0.sh +++ /dev/null @@ -1,11 +0,0 @@ -DEPS="cairo-1.15.4 sigcpp-2.10.0" - -PK_DIRNAME="cairomm-1.12.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.cairographics.org/releases/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$PLATFORM" = "win" ]; then - PK_CONFIGURE_OPTIONS="CXXFLAGS=-DM_PI=3.14159265358979323846" -fi \ No newline at end of file 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 deleted file mode 100644 index 670f42b..0000000 --- a/docker-builder-data/build/script/packet/cmake-3.6.2.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="" - -PK_DIRNAME="cmake-3.6.2" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://cmake.org/files/v3.6/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--prefix=$INSTALL_PACKET_DIR" -if [ ! -z "$HOST" ]; then - PK_CONFIGURE_OPTIONS_DEFAULT="$PK_CONFIGURE_OPTIONS_DEFAULT --host=$HOST" -fi - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/croco-0.6.11.sh b/docker-builder-data/build/script/packet/croco-0.6.11.sh deleted file mode 100644 index 6187963..0000000 --- a/docker-builder-data/build/script/packet/croco-0.6.11.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="glib-2.50.0 xml-2.9.4" - -PK_DIRNAME="libcroco-0.6.11" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/libcroco/0.6/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - diff --git a/docker-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh b/docker-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh deleted file mode 100644 index 00109c3..0000000 --- a/docker-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh +++ /dev/null @@ -1,23 +0,0 @@ - -PK_DIRNAME="dlfcn-win32-1.1.1" -PK_ARCHIVE="v1.1.1.tar.gz" -PK_URL="https://github.com/dlfcn-win32/dlfcn-win32/archive/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - if ! check_packet_function $NAME build.configure; then - cc="$CC" ./configure \ - --prefix="$INSTALL_PACKET_DIR" \ - --disable-static \ - --enable-shared \ - || return 1 - set_done $NAME build.configure - fi - - make -j${THREADS} || return 1 -} - \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/doxygen-1.8.8.sh b/docker-builder-data/build/script/packet/doxygen-1.8.8.sh deleted file mode 100644 index 1500c69..0000000 --- a/docker-builder-data/build/script/packet/doxygen-1.8.8.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="graphviz-2.40.1" - -PK_DIRNAME="doxygen-1.8.8" -PK_ARCHIVE="$PK_DIRNAME.src.tar.gz" -PK_URL="http://ftp.stack.nl/pub/users/dimitri/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--prefix $INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/epoxy-master.sh b/docker-builder-data/build/script/packet/epoxy-master.sh deleted file mode 100644 index 6dd7855..0000000 --- a/docker-builder-data/build/script/packet/epoxy-master.sh +++ /dev/null @@ -1,16 +0,0 @@ -DEPS="" - -PK_DIRNAME="libepoxy" -PK_URL="https://github.com/anholt/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/1.4.2" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if ! check_packet_function $NAME build.cunfigure; then - ./autogen.sh --host=$HOST --prefix=$INSTALL_PACKET_DIR || return 1 - set_done $NAME build.cunfigure - fi - make -j${THREADS} || return 1 -} diff --git a/docker-builder-data/build/script/packet/expat-2.2.5.sh b/docker-builder-data/build/script/packet/expat-2.2.5.sh deleted file mode 100644 index ec561a9..0000000 --- a/docker-builder-data/build/script/packet/expat-2.2.5.sh +++ /dev/null @@ -1,6 +0,0 @@ - -PK_DIRNAME="expat-2.2.5" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="https://github.com/libexpat/libexpat/releases/download/R_2_2_5/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/ffi-3.2.1.sh b/docker-builder-data/build/script/packet/ffi-3.2.1.sh deleted file mode 100644 index 01552f3..0000000 --- a/docker-builder-data/build/script/packet/ffi-3.2.1.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="libffi-3.2.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="ftp://sourceware.org/pub/libffi/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/ffmpeg-3.1.5.sh b/docker-builder-data/build/script/packet/ffmpeg-3.1.5.sh deleted file mode 100644 index 5c9fccf..0000000 --- a/docker-builder-data/build/script/packet/ffmpeg-3.1.5.sh +++ /dev/null @@ -1,42 +0,0 @@ -# + sdl ? -# + yasm -# + lame ? -# + ogg -# + theora -# + vorbis -# + x264 - -DEPS="lame-3.99.5 ogg-1.3.2 theora-1.1.1 vorbis-1.3.5 x264-master sdl-1.2.15" -DEPS_NATIVE="yasm-1.3.0" - -PK_DIRNAME="ffmpeg-3.1.5" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="http://ffmpeg.org/releases/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT=" \ - --prefix=$INSTALL_PACKET_DIR \ - --disable-static \ - --enable-shared" - -PK_CONFIGURE_OPTIONS=" - --disable-doc \ - --enable-rpath \ - --enable-gpl \ - --enable-libx264 \ - --enable-libmp3lame \ - --enable-libtheora \ - --enable-libvorbis" - -if [ "$PLATFORM" = "win" ]; then - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS \ - --arch=x86_$ARCH \ - --target-os=mingw$ARCH \ - --cross-prefix=$HOST- \ - --host-cc=$HOST-gcc \ - --host-ld=$HOST-gcc \ - --enable-cross-compile" -fi - -PK_LICENSE_FILES="CREDITS LICENSE.md COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 COPYING.LGPLv3" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/fftw-3.3.5.sh b/docker-builder-data/build/script/packet/fftw-3.3.5.sh deleted file mode 100644 index cd29881..0000000 --- a/docker-builder-data/build/script/packet/fftw-3.3.5.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="fftwsingle-3.3.5" - -PK_DIRNAME="fftw-3.3.5" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://fftw.org/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--enable-double" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/fftwsingle-3.3.5.sh b/docker-builder-data/build/script/packet/fftwsingle-3.3.5.sh deleted file mode 100644 index 310b104..0000000 --- a/docker-builder-data/build/script/packet/fftwsingle-3.3.5.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="" - -PK_DIRNAME="fftw-3.3.5" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://fftw.org/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--enable-single" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/fontconfig-2.11.0.sh b/docker-builder-data/build/script/packet/fontconfig-2.11.0.sh deleted file mode 100644 index df237b6..0000000 --- a/docker-builder-data/build/script/packet/fontconfig-2.11.0.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="freetype-2.8.1 expat-2.2.5" - -PK_DIRNAME="fontconfig-2.11.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.freedesktop.org/software/fontconfig/release/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkhook_prebuild() { - rm -rf test - ln -s src test -} diff --git a/docker-builder-data/build/script/packet/freeglut-3.0.0.sh b/docker-builder-data/build/script/packet/freeglut-3.0.0.sh deleted file mode 100644 index fdf6d8e..0000000 --- a/docker-builder-data/build/script/packet/freeglut-3.0.0.sh +++ /dev/null @@ -1,29 +0,0 @@ -DEPS_NATIVE="cmake-3.6.2" - -PK_DIRNAME="freeglut-3.0.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://prdownloads.sourceforge.net/freeglut/$PK_ARCHIVE?download" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - - if ! check_packet_function $NAME build.cunfigure; then - local LOCAL_OPTIONS= - if [ ! -z "$HOST" ]; then - LOCAL_OPTIONS="$LOCAL_OPTIONS -DGNU_HOST=$HOST" - fi - if [ "$PLATFORM" = "win" ]; then - LOCAL_OPTIONS="$LOCAL_OPTIONS -DCMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake" - fi - cmake \ - -DCMAKE_INSTALL_PREFIX=$INSTALL_PACKET_DIR \ - $LOCAL_OPTIONS . \ - || return 1 - set_done $NAME build.cunfigure - fi - - make -j${THREADS} || return 1 -} - diff --git a/docker-builder-data/build/script/packet/freetype-2.8.1.sh b/docker-builder-data/build/script/packet/freetype-2.8.1.sh deleted file mode 100644 index ba7b3a4..0000000 --- a/docker-builder-data/build/script/packet/freetype-2.8.1.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="png-1.6.26" - -PK_DIRNAME="freetype-2.8.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://sourceforge.net/projects/freetype/files/freetype2/2.8.1/$PK_ARCHIVE" - -PK_LICENSE_FILES="docs/FTL.TXT" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh b/docker-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh deleted file mode 100644 index cf5bbd2..0000000 --- a/docker-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh +++ /dev/null @@ -1,10 +0,0 @@ -DEPS="jpeg-9b png-1.6.26 tiff-4.0.6 glib-2.50.0" -#DEPS_NATIVE="gobjectintrospection-1.50.0" - -PK_DIRNAME="gdk-pixbuf-2.36.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/gdk-pixbuf/2.36/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--enable-relocations=yes" - -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 deleted file mode 100644 index a95a188..0000000 --- a/docker-builder-data/build/script/packet/glew-2.0.0.sh +++ /dev/null @@ -1,53 +0,0 @@ -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" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - - if [ "$PLATFORM" = "win" ]; then -cat > "config/Makefile.mingw-$PLATFORM-$ARCH" << EOF -NAME := glew32 -HOST := $HOST -CC := $CC -LD := $LD -LN := -STRIP := -LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 $LDFLAGS -CFLAGS.EXTRA += -fno-builtin -fno-stack-protector -WARN = -Wall -W -POPT = -O2 -BIN.SUFFIX = .exe -LIB.SONAME = lib\$(NAME).dll -LIB.DEVLNK = lib\$(NAME).dll.a -LIB.SHARED = \$(NAME).dll -LIB.STATIC = lib\$(NAME).a -LDFLAGS.SO = -shared -soname \$(LIB.SONAME) --out-implib lib/\$(LIB.DEVLNK) -EOF - - if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR SYSTEM=mingw-$PLATFORM-$ARCH make -j${THREADS}; then - return 1 - fi - else - if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make -j${THREADS}; then - return 1 - fi - fi -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - if [ "$PLATFORM" = "win" ]; then - if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR SYSTEM=mingw-$PLATFORM-$ARCH make install; then - return 1 - fi - else - if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make install; then - return 1 - fi - fi -} diff --git a/docker-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch b/docker-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch deleted file mode 100644 index 3858ce6..0000000 --- a/docker-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch +++ /dev/null @@ -1,4 +0,0 @@ -1275c1275 -< #if defined(G_OS_WIN32) ---- -> #if defined(G_OS_WIN32) && 0 diff --git a/docker-builder-data/build/script/packet/glib-2.50.0.sh b/docker-builder-data/build/script/packet/glib-2.50.0.sh deleted file mode 100644 index 8530cb5..0000000 --- a/docker-builder-data/build/script/packet/glib-2.50.0.sh +++ /dev/null @@ -1,18 +0,0 @@ -DEPS="zlib-1.2.11 ffi-3.2.1" -DEPS_NATIVE="glib-2.50.0" - -PK_DIRNAME="glib-2.50.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/glib/2.50/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--with-pcre=internal --disable-compile-warnings" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - - -pkhook_prebuild() { - if [ "$PLATFORM" = "win" ]; then - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/glib/gstrfuncs.c" "glib" || return 1 - patch "glib/gstrfuncs.c" "$FILES_PACKET_DIR/gstrfuncs.c.patch" || return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/glibmm-2.50.0.sh b/docker-builder-data/build/script/packet/glibmm-2.50.0.sh deleted file mode 100644 index 511a3a4..0000000 --- a/docker-builder-data/build/script/packet/glibmm-2.50.0.sh +++ /dev/null @@ -1,10 +0,0 @@ -DEPS="sigcpp-2.10.0 glib-2.50.0" - -PK_DIRNAME="glibmm-2.50.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/glibmm/2.50/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" - -#PK_CONFIGURE_OPTIONS="CXXFLAGS=\"-std=c++11 -pthread\"" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh b/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh deleted file mode 100644 index 9a5e3e6..0000000 --- a/docker-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="rsvg-2.40.16 gtk-3.22.12" - -PK_DIRNAME="gnome-themes-standard-3.22.3" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/gnome-themes-standard/3.22/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--disable-gtk2-engine" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh b/docker-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh deleted file mode 100644 index 9236cb6..0000000 --- a/docker-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="glib-2.50.0" - -PK_DIRNAME="gobject-introspection-1.50.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/gobject-introspection/1.50/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPL COPYING.LGPL" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - diff --git a/docker-builder-data/build/script/packet/graphviz-2.40.1.sh b/docker-builder-data/build/script/packet/graphviz-2.40.1.sh deleted file mode 100644 index 446ebbd..0000000 --- a/docker-builder-data/build/script/packet/graphviz-2.40.1.sh +++ /dev/null @@ -1,8 +0,0 @@ -# TODO: find deps -DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 atspi2atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" - -PK_DIRNAME="graphviz-2.40.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.graphviz.org/pub/graphviz/stable/SOURCES/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh b/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh deleted file mode 100644 index dd3ef39..0000000 --- a/docker-builder-data/build/script/packet/gstreamer-0.10.36.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="glib-2.50.0" - -PK_DIRNAME="gstreamer-0.10.36" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://gstreamer.freedesktop.org/src/gstreamer/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh b/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh deleted file mode 100644 index afb9ec8..0000000 --- a/docker-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="gstreamer-0.10.36" - -PK_DIRNAME="gst-plugins-base-0.10.36" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://gstreamer.freedesktop.org/src/gst-plugins-base/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch b/docker-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch deleted file mode 100644 index 8c52ff6..0000000 --- a/docker-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 07bbd9b206f9a8712e1d77a6f86e260023738247 Mon Sep 17 00:00:00 2001 -From: Christoph Reiter -Date: Thu, 28 Sep 2017 12:02:03 +0200 -Subject: [PATCH] gtkwindow: Don't force enable CSD under Windows - -CSD look a bit out of place under Windows, especially -when the application doesn't use the headerbar and the CSD -doesn't add any value. - -Instead let the application decide, like under X11. -It can still be force enabled through GTK_CSD=1 ---- - gtk/gtkwindow.c | 6 ------ - 1 file changed, 6 deletions(-) - -diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c -index 9f1e52ab04..7c6d874afb 100644 ---- a/gtk/gtkwindow.c -+++ b/gtk/gtkwindow.c -@@ -6107,12 +6107,6 @@ gtk_window_should_use_csd (GtkWindow *window) - return TRUE; - #endif - --#ifdef GDK_WINDOWING_WIN32 -- if (g_strcmp0 (csd_env, "0") != 0 && -- GDK_IS_WIN32_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window)))) -- return TRUE; --#endif -- - return (g_strcmp0 (csd_env, "1") == 0); - } - --- -2.14.1 - diff --git a/docker-builder-data/build/script/packet/gtk-3.22.12.sh b/docker-builder-data/build/script/packet/gtk-3.22.12.sh deleted file mode 100644 index c83cfdb..0000000 --- a/docker-builder-data/build/script/packet/gtk-3.22.12.sh +++ /dev/null @@ -1,41 +0,0 @@ -DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" -DEPS_NATIVE="gtk-3.22.12" - -PK_DIRNAME="gtk+-3.22.12" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/gtk+/3.22/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$PLATFORM" = "linux" ] || [ ! -z "$IS_NATIVE" ]; then - DEPS="$DEPS atspi2atk-2.22.0" -fi - -if [ "$PLATFORM" = "win" ]; then - PK_CONFIGURE_OPTIONS="--enable-introspection=no" -fi - -pkhook_prebuild() { - if [ "$PLATFORM" = "win" ]; then - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/gtk/gtkwindow.c" "gtk/gtkwindow.c" || return 1 - patch -p1 -i "$FILES_PACKET_DIR/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch" || return 1 - fi -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - local LOCAL_BIN="$BUILD_PACKET_DIR/$PK_DIRNAME/gtk" - local LOCAL_BIN_NATIVE="$ENVDEPS_NATIVE_PACKET_DIR/bin" - if [ "$PLATFORM" = "win" ] && [ ! -f "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" ]; then - mv "$LOCAL_BIN/gtk-query-immodules-3.0.exe" "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" || return 1 - cp "$LOCAL_BIN_NATIVE/gtk-query-immodules-3.0" "$LOCAL_BIN/gtk-query-immodules-3.0.exe" - mv "$LOCAL_BIN/gtk-update-icon-cache.exe" "$LOCAL_BIN/gtk-update-icon-cache.exe.orig" - cp "$LOCAL_BIN_NATIVE/gtk-update-icon-cache" "$LOCAL_BIN/gtk-update-icon-cache.exe" - fi - make install || return 1 - if [ "$PLATFORM" = "win" ]; then - cp "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1 - cp "$LOCAL_BIN/gtk-update-icon-cache.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1 - fi -} - diff --git a/docker-builder-data/build/script/packet/gtkmm-3.22.0.sh b/docker-builder-data/build/script/packet/gtkmm-3.22.0.sh deleted file mode 100644 index e1556d5..0000000 --- a/docker-builder-data/build/script/packet/gtkmm-3.22.0.sh +++ /dev/null @@ -1,13 +0,0 @@ -# GTK packets: -# gtkmm, atkmm, cairomm, pangomm, glibmm, sigcpp -# gtk -# adwaitaicontheme gnomethemesstandard - -DEPS="gtk-3.22.12 atkmm-2.24.2 cairomm-1.12.0 pangomm-2.40.1 adwaitaicontheme-3.24.0 gnomethemesstandard-3.22.3" - -PK_DIRNAME="gtkmm-3.22.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/gtkmm/3.22/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/harfbuzz-1.3.2.sh b/docker-builder-data/build/script/packet/harfbuzz-1.3.2.sh deleted file mode 100644 index 7ea5786..0000000 --- a/docker-builder-data/build/script/packet/harfbuzz-1.3.2.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="fontconfig-2.11.0 glib-2.50.0" - -PK_DIRNAME="harfbuzz-1.3.2" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="https://www.freedesktop.org/software/harfbuzz/release/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/imagemagick-6.8.7.sh b/docker-builder-data/build/script/packet/imagemagick-6.8.7.sh deleted file mode 100644 index f811568..0000000 --- a/docker-builder-data/build/script/packet/imagemagick-6.8.7.sh +++ /dev/null @@ -1,19 +0,0 @@ -DEPS="jpeg-9b png-1.6.26 tiff-4.0.6 xml-2.9.4 fftw-3.3.5" - -PK_DIRNAME="ImageMagick-6.8.7-10" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="http://www.imagemagick.org/download/releases/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS=" \ - --without-perl \ - --without-x \ - --with-threads \ - --with-magick_plus_plus" - -if [ "$PLATFORM" = "win" ]; then - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --without-modules" -else - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --with-modules" -fi - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/jack-0.125.0.sh b/docker-builder-data/build/script/packet/jack-0.125.0.sh deleted file mode 100644 index ccf5263..0000000 --- a/docker-builder-data/build/script/packet/jack-0.125.0.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="" - -PK_DIRNAME="jack-audio-connection-kit-0.125.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://jackaudio.org/downloads/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPL COPYING.LGPL" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/jasper-1.900.13.sh b/docker-builder-data/build/script/packet/jasper-1.900.13.sh deleted file mode 100644 index 90e5fe8..0000000 --- a/docker-builder-data/build/script/packet/jasper-1.900.13.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="jpeg-9b freeglut-3.0.0" - -PK_DIRNAME="jasper-1.900.13" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.ece.uvic.ca/~frodo/jasper/software/$PK_ARCHIVE" - -PK_CFLAGS="-std=c99" - -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 deleted file mode 100644 index 3ba6497..0000000 --- a/docker-builder-data/build/script/packet/jpeg-9b.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="" - -PK_DIRNAME="jpeg-9b" -PK_ARCHIVE="jpegsrc.v9b.tar.gz" -PK_URL="http://ijg.org/files/$PK_ARCHIVE" -PK_LICENSE_FILES="README" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/jsonc-0.12.1.sh b/docker-builder-data/build/script/packet/jsonc-0.12.1.sh deleted file mode 100644 index b9503d1..0000000 --- a/docker-builder-data/build/script/packet/jsonc-0.12.1.sh +++ /dev/null @@ -1,19 +0,0 @@ -DEPS="" - -PK_DIRNAME="json-c-0.12.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://s3.amazonaws.com/json-c_releases/releases/$PK_ARCHIVE" - -if [ "$PLATFORM" = "win" ]; then - PK_CFLAGS="-Wno-error=unknown-pragmas" - PK_LDFLAGS="-ladvapi32 -lgettextlib" -fi - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkhook_prebuild() { - if [ ! -f "Makefile.in.orig" ]; then - mv Makefile.in Makefile.in.orig - fi - cat Makefile.in.orig | sed -e 's| -Werror | |g' > Makefile.in -} \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/lame-3.99.5.sh b/docker-builder-data/build/script/packet/lame-3.99.5.sh deleted file mode 100644 index 0271b23..0000000 --- a/docker-builder-data/build/script/packet/lame-3.99.5.sh +++ /dev/null @@ -1,11 +0,0 @@ -DEPS="" - -PK_DIRNAME="lame-3.99.5" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://sourceforge.net/projects/lame/files/lame/3.99/$PK_ARCHIVE/download" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$ARCH" = "32" ]; then - PK_CFLAGS="-msse" -fi \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch b/docker-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch deleted file mode 100644 index a67dfd1..0000000 --- a/docker-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch +++ /dev/null @@ -1,4 +0,0 @@ -3476c3476 -< lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' ---- -> lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pei-x86-64)' diff --git a/docker-builder-data/build/script/packet/libtool-2.4.6.sh b/docker-builder-data/build/script/packet/libtool-2.4.6.sh deleted file mode 100644 index c911aeb..0000000 --- a/docker-builder-data/build/script/packet/libtool-2.4.6.sh +++ /dev/null @@ -1,11 +0,0 @@ -DEPS="" - -PK_DIRNAME="libtool-2.4.6" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://ftpmirror.gnu.org/libtool/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkhook_postinstall() { - patch "share/aclocal/libtool.m4" "$FILES_PACKET_DIR/libtool.m4.patch" || return 1 -} diff --git a/docker-builder-data/build/script/packet/lz4-master.sh b/docker-builder-data/build/script/packet/lz4-master.sh deleted file mode 100644 index 49050af..0000000 --- a/docker-builder-data/build/script/packet/lz4-master.sh +++ /dev/null @@ -1,22 +0,0 @@ -DEPS="" - -PK_DIRNAME="lz4" -PK_URL="https://github.com/Cyan4973/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/v1.7.5" -PK_LICENSE_FILES="LICENSE lib/LICENSE programs/COPYING tests/COPYING examples/COPYING" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.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/lzma-5.2.3.sh b/docker-builder-data/build/script/packet/lzma-5.2.3.sh deleted file mode 100644 index 192d2e8..0000000 --- a/docker-builder-data/build/script/packet/lzma-5.2.3.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="" - -PK_DIRNAME="xz-5.2.3" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://tukaani.org/xz/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/lzo-2.10.sh b/docker-builder-data/build/script/packet/lzo-2.10.sh deleted file mode 100644 index 3f49ee9..0000000 --- a/docker-builder-data/build/script/packet/lzo-2.10.sh +++ /dev/null @@ -1,18 +0,0 @@ -DEPS="" - -PK_DIRNAME="lzo-2.10" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.oberhumer.com/opensource/lzo/download/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT=" \ - --prefix=$INSTALL_PACKET_DIR \ - --enable-static \ - --enable-shared " - -if [ ! -z "$HOST" ]; then - PK_CONFIGURE_OPTIONS_DEFAULT=" \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - --host=$HOST " -fi - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/mlt-6.2.0.sh b/docker-builder-data/build/script/packet/mlt-6.2.0.sh deleted file mode 100644 index 16822ca..0000000 --- a/docker-builder-data/build/script/packet/mlt-6.2.0.sh +++ /dev/null @@ -1,53 +0,0 @@ -# + ffmpeg -# + xml -# + fftw -# + samplerate -# ? sdl -# ? sox -# + jack -# + glib - -DEPS="ffmpeg-3.1.5 xml-2.9.4 fftw-3.3.5 samplerate-0.1.9 sdl-1.2.15 sox-14.4.2 glib-2.50.0" - -PK_DIRNAME="mlt-6.2.0" -PK_ARCHIVE="v6.2.0.tar.gz" -PK_URL="https://github.com/mltframework/mlt/archive/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS=" \ - --enable-gpl \ - --enable-gpl3 \ - --disable-decklink \ - --disable-gtk2 \ - --disable-opengl \ - --disable-qt \ - --disable-rtaudio" - -if [ "$PLATFORM" = "linux" ]; then - DEPS="$DEPS jack-0.125.0" -fi - -if [ "$PLATFORM" = "win" ]; then - DEPS="$DEPS dlfcnwin32-1.1.1" - - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-os=MinGW" - if [ "$ARCH" = "32" ]; then - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=i686" - else - PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=x86_$ARCH" - fi -fi - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkhook_postinstall() { - if [ "$PLATFORM" = "win" ]; then - mkdir -p "bin" - mkdir -p "bin/lib" - mkdir -p "bin/share" - mv "libmlt++-3.dll" "bin/" - mv "libmlt-6.dll" "bin/" - mv "melt" "bin/melt.exe" - mv "lib/mlt" "bin/lib/" - mv "share/mlt" "bin/share/" - fi -} diff --git a/docker-builder-data/build/script/packet/mypaintlib-master.sh b/docker-builder-data/build/script/packet/mypaintlib-master.sh deleted file mode 100644 index 3bbdb21..0000000 --- a/docker-builder-data/build/script/packet/mypaintlib-master.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="jsonc-0.12.1 glib-2.50.0" -DEPS_NATIVE="automake-1.15" - -PK_DIRNAME="libmypaint" -PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/testing" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkhook_prebuild() { - ./autogen.sh || return 1 -} diff --git a/docker-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch b/docker-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch deleted file mode 100644 index b5bf9eb..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch +++ /dev/null @@ -1,4 +0,0 @@ -18a19,21 -> #ifndef min -> #define min(a,b) (((a) < (b)) ? (a) : (b)) -> #endif diff --git a/docker-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch b/docker-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch deleted file mode 100644 index d50c4b1..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch +++ /dev/null @@ -1,2 +0,0 @@ -60a61 -> i686-w64-mingw32- diff --git a/docker-builder-data/build/script/packet/nsis-2.50.files/gnu.patch b/docker-builder-data/build/script/packet/nsis-2.50.files/gnu.patch deleted file mode 100644 index 588195f..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.files/gnu.patch +++ /dev/null @@ -1,6 +0,0 @@ -95a96,97 -> makensis_env.Append(LINKFLAGS = ['-static-libgcc']) -> makensis_env.Append(LINKFLAGS = ['-static-libstdc++']) -119a120,121 -> plugin_env.Append(LINKFLAGS = ['-static-libgcc']) -> plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) diff --git a/docker-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch b/docker-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch deleted file mode 100644 index f5c07c7..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch +++ /dev/null @@ -1,2 +0,0 @@ -25d24 -< #define _WIN32_IE 0x0400 diff --git a/docker-builder-data/build/script/packet/nsis-2.50.files/util.h.patch b/docker-builder-data/build/script/packet/nsis-2.50.files/util.h.patch deleted file mode 100644 index 52cb5e3..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.files/util.h.patch +++ /dev/null @@ -1,2 +0,0 @@ -19a20 -> #include diff --git a/docker-builder-data/build/script/packet/nsis-2.50.sh b/docker-builder-data/build/script/packet/nsis-2.50.sh deleted file mode 100644 index e2181ef..0000000 --- a/docker-builder-data/build/script/packet/nsis-2.50.sh +++ /dev/null @@ -1,45 +0,0 @@ -DEPS="zlib-1.2.11" -DEPS_NATIVE="scons-3.0.1" - -PK_DIRNAME="nsis-2.50-src" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="https://sourceforge.net/projects/nsis/files/NSIS%202/2.50/$PK_ARCHIVE" - -#TODO: hardcoded path to mingw binaries -#TODO: untracked dependency for zlib win32 - -PK_PATH="/usr/local/i686-w64-mingw32/sys-root/bin:$PATH" -PK_ZLIB_W32="$PACKET_BUILD_DIR/win-32/zlib-1.2.11/env" -PK_NSIS_MAX_STRLEN=131072 - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - pkhelper_patch Contrib/InstallOptions InstallerOptions.cpp || return 1 - pkhelper_patch Contrib/Makensisw makensisw.h || return 1 - pkhelper_patch SCons/Config gnu || return 1 - pkhelper_patch SCons/Tools crossmingw.py || return 1 - pkhelper_patch Source util.h || return 1 - - LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS" \ - PATH="$PK_PATH" scons \ - PREFIX="$INSTALL_PACKET_DIR" \ - ZLIB_W32="$PK_ZLIB_W32" \ - SKIPUTILS="NSIS Menu" \ - NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ - || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS" \ - PATH="$PK_PATH" scons \ - PREFIX="$INSTALL_PACKET_DIR" \ - ZLIB_W32="$PK_ZLIB_W32" \ - SKIPUTILS="NSIS Menu" \ - NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ - install \ - || return 1 -} diff --git a/docker-builder-data/build/script/packet/nsis-3.02.1.sh b/docker-builder-data/build/script/packet/nsis-3.02.1.sh deleted file mode 100644 index dd55af5..0000000 --- a/docker-builder-data/build/script/packet/nsis-3.02.1.sh +++ /dev/null @@ -1,36 +0,0 @@ -DEPS="zlib-1.2.11" -DEPS_NATIVE="scons-3.0.1" - -PK_DIRNAME="nsis-3.02.1-src" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="http://prdownloads.sourceforge.net/nsis/$PK_ARCHIVE" - -#TODO: hardcoded path to mingw binaries -#TODO: untracked dependency for zlib win32 - -PK_PATH="/usr/local/i686-w64-mingw32/sys-root/bin:$PATH" -PK_ZLIB_W32="$PACKET_BUILD_DIR/win-32/zlib-1.2.11/env" -PK_NSIS_MAX_STRLEN=131072 - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - PATH="$PK_PATH" scons \ - PREFIX="$INSTALL_PACKET_DIR" \ - ZLIB_W32="$PK_ZLIB_W32" \ - SKIPUTILS="NSIS Menu" \ - NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ - || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - PATH="$PK_PATH" scons \ - PREFIX="$INSTALL_PACKET_DIR" \ - ZLIB_W32="$PK_ZLIB_W32" \ - SKIPUTILS="NSIS Menu" \ - NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ - install \ - || return 1 -} diff --git a/docker-builder-data/build/script/packet/ogg-1.3.2.sh b/docker-builder-data/build/script/packet/ogg-1.3.2.sh deleted file mode 100644 index 75b199f..0000000 --- a/docker-builder-data/build/script/packet/ogg-1.3.2.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="libogg-1.3.2" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://downloads.xiph.org/releases/ogg/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/openblas-master.sh b/docker-builder-data/build/script/packet/openblas-master.sh deleted file mode 100644 index 0710eb4..0000000 --- a/docker-builder-data/build/script/packet/openblas-master.sh +++ /dev/null @@ -1,43 +0,0 @@ -DEPS="" - -PK_DIRNAME="OpenBLAS" -PK_URL="https://github.com/xianyi/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/v0.2.19" -PK_LICENSE_FILES="LICENSE CONTRIBUTORS.md BACKERS.md" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - - local LOCAL_BINARY_OPTION= - if [ "$ARCH" = "32" ]; then - LOCAL_BINARY_OPTION="BINARY=$ARCH" - fi - -rm -f Makefile.rule -cat > Makefile.rule << EOF -PREFIX = ${INSTALL_PACKET_DIR} -VERSION = 0.2.20.dev -CC = ${CC:-gcc} -FC = ${FORTRAN:-gfortran} -TARGET = generic -${LOCAL_BINARY_OPTION} -HOSTCC = PATH=${INITIAL_PATH} /usr/bin/gcc -USE_THREAD = 1 -NUM_THREADS = 24 -BUILD_LAPACK_DEPRECATED = 1 -NO_WARMUP = 1 -NO_AFFINITY = 1 -COMMON_PROF = -pg -EOF - - make -j${THREADS} libs netlib shared || return 1 -} - -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-appimage.files/launch-opentoonz-appimage.sh b/docker-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh deleted file mode 100755 index 128beb8..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -OLDDIR=`pwd` -cd `dirname "$0"` -SCRIPT_DIR=`pwd` -BASE_DIR=`dirname "$SCRIPT_DIR"` - -export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib/pulseaudio:$BASE_DIR/lib64:$LD_LIBRARY_PATH" -export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb -export FONTCONFIG_PATH=/etc/fonts - -if [ "$1" = "--appimage-exec" ]; then - if ! "${@:2}"; then - cd "$OLDDIR" - exit 1 - fi -else - if ! "./launch-opentoonz.sh.wrapper" "$@"; then - cd "$OLDDIR" - exit 1 - fi -fi -cd "$OLDDIR" diff --git a/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop b/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop deleted file mode 100644 index 1117838..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Type=Application -Name=OpenToonz -Exec=launch-opentoonz-appimage.sh -Icon=opentoonz -Categories=Graphics; diff --git a/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png b/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png deleted file mode 100644 index 88e0274..0000000 Binary files a/docker-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png and /dev/null differ diff --git a/docker-builder-data/build/script/packet/opentoonz-appimage.sh b/docker-builder-data/build/script/packet/opentoonz-appimage.sh deleted file mode 100644 index 2fca3f7..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-appimage.sh +++ /dev/null @@ -1,39 +0,0 @@ -DEPS="opentoonz-master" -DEPS_NATIVE="appimagekit-master" - -PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ -PK_APPDIR_NAME="opentoonz" - -pkinstall() { - # copy files from envdeps (install requires envdeps explicit) - - local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - mkdir -p "$APPDIR/usr" - mkdir -p "$APPDIR/usr/bin" - mkdir -p "$APPDIR/usr/lib" - cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 - cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/launch-opentoonz.sh.wrapper" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/launch-opentoonz-appimage.sh" "$APPDIR/usr/bin" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/opentoonz.desktop" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/" || return 1 - mkdir -p "$APPDIR/usr/share/icons/default/128x128/apps/" - cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/usr/share/icons/default/128x128/apps/opentoonz.png" || return 1 -} - -pkinstall_release() { - if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then - return 1 - fi - - # copy files from envdeps_release (install_release requires envdeps_release explicit) - - local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 - - # clean boost - rm -f $APPDIR/usr/lib/libboost_* || return 1 - - (cd "$INSTALL_RELEASE_PACKET_DIR" && tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir") || return 1 - AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - rm -rf "$APPDIR" -} diff --git a/docker-builder-data/build/script/packet/opentoonz-debug.files b/docker-builder-data/build/script/packet/opentoonz-debug.files deleted file mode 120000 index 087c56b..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-debug.files +++ /dev/null @@ -1 +0,0 @@ -opentoonz-master.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/opentoonz-debug.sh b/docker-builder-data/build/script/packet/opentoonz-debug.sh deleted file mode 100644 index adea28a..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-debug.sh +++ /dev/null @@ -1,3 +0,0 @@ -source "$PACKET_SCRIPT_DIR/opentoonz-master.sh" - -PK_CONFIGURE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug" 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 deleted file mode 100755 index 0dd165e..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh - -OLDDIR=`pwd` -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -cd "$OLDDIR" -BASE_DIR=`dirname "$SCRIPT_DIR"` - -export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib64:$LD_LIBRARY_PATH" -export XCURSOR_PATH="$BASE_DIR/share/icons:$XCURSOR_PATH:/usr/local/share/icons:/usr/share/icons" -export QT_XKB_CONFIG_ROOT="$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb" - -# fix stuff -CONFIG_DIR="$HOME/.config/OpenToonz" -if [ ! -d "$CONFIG_DIR" ]; then - echo "fix config: copy stuff". - mkdir -p "$CONFIG_DIR" - cp -r "$BASE_DIR/share/opentoonz/stuff" "$CONFIG_DIR" - - echo "fix config: create SystemVar.ini" - cat << EOF > "$CONFIG_DIR/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/fxs" -TOONZLIBRARY="$HOME/.config/OpenToonz/stuff/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 - -else - # fix paths - INI="$HOME/.config/OpenToonz/SystemVar.ini" - if [ -e "$INI" ]; then - [ -e "$INI.bak" ] || cp "$INI" "$INI.bak" - - # fix path to fxs - FX_PATH_OLD="$CONFIG_DIR/stuff/projects/fxs" - FX_PATH_NEW="$CONFIG_DIR/stuff/fxs" - FX_LINE_OLD="TOONZFXPRESETS=\"$FX_PATH_OLD\"" - FX_LINE_NEW="TOONZFXPRESETS=\"$FX_PATH_NEW\"" - if [ ! -z "`grep "$FX_LINE_OLD" "$INI"`" ] \ - && ( [ ! -d "$FX_PATH_OLD" ] || [ -z "`ls -A "$FX_PATH_OLD"`" ] ); then - echo "fix config: fix path to fxs" - cat "$INI" \ - | sed "s|$FX_LINE_OLD|$FX_LINE_NEW|g" \ - > "$INI.out" - cp "$INI.out" "$INI" - rm -f "$INI.out" - fi - - # fix path to library - LIBRARY_PATH_OLD="$CONFIG_DIR/stuff/projects/library" - LIBRARY_PATH_NEW="$CONFIG_DIR/stuff/library" - LIBRARY_LINE_OLD="TOONZLIBRARY=\"$LIBRARY_PATH_OLD\"" - LIBRARY_LINE_NEW="TOONZLIBRARY=\"$LIBRARY_PATH_NEW\"" - if [ ! -z "`grep "$LIBRARY_LINE_OLD" "$INI"`" ] \ - && ( [ ! -d "$LIBRARY_PATH_OLD" ] || [ -z "`ls -A "$LIBRARY_PATH_OLD"`" ] ); then - echo "fix config: fix path to library" - cat "$INI" \ - | sed "s|$LIBRARY_LINE_OLD|$LIBRARY_LINE_NEW|g" \ - > "$INI.out" - cp "$INI.out" "$INI" - rm -f "$INI.out" - fi - fi - - # update library - echo "update stuff" - mkdir -p "$CONFIG_DIR/stuff/config" - mkdir -p "$CONFIG_DIR/stuff/profiles" - cp -ur "$BASE_DIR/share/opentoonz/stuff/library" "$CONFIG_DIR/stuff/" - cp -ur "$BASE_DIR/share/opentoonz/stuff/config/qss" "$CONFIG_DIR/stuff/config/" - cp -ur "$BASE_DIR/share/opentoonz/stuff/config/loc" "$CONFIG_DIR/stuff/config/" - cp -ur "$BASE_DIR/share/opentoonz/stuff/profiles/layouts" "$CONFIG_DIR/stuff/profiles/" - cp -ur "$BASE_DIR/share/opentoonz/stuff/config/current.txt" "$CONFIG_DIR/stuff/config/" -fi - -cd "$BASE_DIR/bin" -if ! ./opentoonz "$@"; then - cd "$OLDDIR" - exit 1 -fi -cd "$OLDDIR" diff --git a/docker-builder-data/build/script/packet/opentoonz-master.sh b/docker-builder-data/build/script/packet/opentoonz-master.sh deleted file mode 100644 index 07ae132..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-master.sh +++ /dev/null @@ -1,121 +0,0 @@ -DEPS="jpeg-9b png-1.6.26 lz4-master lzo-2.10 lzma-5.2.3 glew-2.0.0 freeglut-3.0.0 superlu-5.2.1 openblas-master boost-1.61.0 qt-5.9.2 mypaintlib-master" -DEPS_NATIVE="cmake-3.6.2" - -PK_DIRNAME="opentoonz" -PK_URL="https://github.com/opentoonz/$PK_DIRNAME.git" -PK_LICENSE_FILES="README.md LICENSE.txt thirdparty/tiff-4.0.3/COPYRIGHT stuff/library/mypaint?brushes/Licenses.txt" - -PK_CONFIGURE_OPTIONS= - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -if [ "$PLATFORM" = "linux" ]; then - DEPS="$DEPS usb-1.0.20 sdl-2.0.5" -fi - -pkhook_version() { - local LOCAL_FILENAME="$PK_DIRNAME/toonz/sources/include/tversion.h" - LANG=C LC_NUMERIC=C printf "%0.1f.%g\\n" \ - `cat "$LOCAL_FILENAME" | grep applicationVersion -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ - `cat "$LOCAL_FILENAME" | grep applicationRevision -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ - || return 1 -} - -pkbuild() { - local LOCAL_OPTIONS= - local LOCAL_CMAKE_OPTIONS= - local LOCAL_PNG_LIB="libpng16.so" - local LOCAL_GLUT_LIB="libglut.so" - if [ ! -z "$HOST" ]; then - LOCAL_OPTIONS="--host=$HOST" - fi - if [ "$PLATFORM" = "win" ]; then - LOCAL_CMAKE_OPTIONS="$LOCAL_CMAKE_OPTIONS -DCMAKE_SYSTEM_NAME=Windows" - LOCAL_PNG_LIB="libpng16.dll.a" - LOCAL_GLUT_LIB="libfreeglut.dll.a" - 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 - CFLAGS="$CFLAGS -fPIC" ./configure $LOCAL_OPTIONS || return 1 - set_done $NAME build.libtiff.configure - fi - make clean - make -j${THREADS} || return 1 - set_done $NAME build.libtiff - fi - - rm -rf "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" - 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_PREFIX_PATH="$ENVDEPS_PACKET_DIR" \ - -DCMAKE_MODULE_PATH="$ENVDEPS_NATIVE_PACKET_DIR/share/cmake-3.6.2/Modules" \ - -DCMAKE_INSTALL_PREFIX="$INSTALL_PACKET_DIR" \ - -DPNG_PNG_INCLUDE_DIR="$ENVDEPS_PACKET_DIR/include" \ - -DPNG_LIBRARY="$ENVDEPS_PACKET_DIR/lib/$LOCAL_PNG_LIB" \ - -DGLUT_LIB="$ENVDEPS_PACKET_DIR/lib/$LOCAL_GLUT_LIB" \ - $LOCAL_CMAKE_OPTIONS \ - $PK_CONFIGURE_OPTIONS \ - ../sources; \ - then - return 1 - fi - set_done $NAME build.configure - fi - - make -j${THREADS} || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" - make install || return 1 - if [ "$PLATFORM" = "win" ]; then - true - #cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff-5.dll" "$INSTALL_PACKET_DIR/bin/" || return 1 - #cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiffxx-5.dll" "$INSTALL_PACKET_DIR/bin/" || return 1 - else - cp --remove-destination "$FILES_PACKET_DIR/launch-opentoonz.sh" "$INSTALL_PACKET_DIR/bin" || return 1 - cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.so* "$INSTALL_PACKET_DIR/lib" || return 1 - cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiffxx.so* "$INSTALL_PACKET_DIR/lib" || return 1 - fi - - if [ "$PLATFORM" = "win" ]; then - local TARGET="$INSTALL_PACKET_DIR/bin/" - - local LOCAL_DIR="/usr/local/$HOST/sys-root/$HOST/lib/" - cp "$LOCAL_DIR"/libgcc*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libstdc*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libquadmath*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libgfortran*.dll "$TARGET" || return 1 - - local LOCAL_DIR="/usr/local/$HOST/sys-root/bin/" - cp "$LOCAL_DIR"/libwinpthread*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libgettextlib*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libintl*.dll "$TARGET" || return 1 - cp "$LOCAL_DIR"/libiconv*.dll "$TARGET" || return 1 - - # add icon - cp "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/sources/toonz/toonz.ico" "$TARGET" || return 1 - else - local TARGET="$INSTALL_PACKET_DIR/lib/" - copy_system_gcc_libs "$TARGET" || return 1 - copy_system_lib libudev "$TARGET" || return 1 - fi -} - -pkhook_postlicense() { - local TARGET="$LICENSE_PACKET_DIR" - if [ "$PLATFORM" = "win" ]; then - local LOCAL_DIR="/usr/$HOST/sys-root/mingw/bin/" - copy_system_license gcc "$TARGET" || return 1 - copy_system_license mingw-w64 "$TARGET" || return 1 - copy_system_license gettext "$TARGET" || return 1 - copy_system_license iconv "$TARGET" || return 1 - else - copy_system_license gcc "$TARGET" || return 1 - copy_system_license libudev "$TARGET" || return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi b/docker-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi deleted file mode 100644 index 9cd6d15..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi +++ /dev/null @@ -1,213 +0,0 @@ -;-------------------------------- -; Requires files: -; config.nsh -; files-install.nsh -; files-uninstall.nsh -; files-stuff-install.nsh -; files-stuff-uninstall.nsh - -; Defines which will set by 'config.nsh': -; PK_NAME - XxxxxXxxxx - name without spaces -; PK_NAME_FULL - Xxxxx Xxxxxxxxxx - full name, may be with spaces -; PK_ARCH - XX - architecture, 32 or 64 -; PK_VERSION - X.X - first two numbers of version -; PK_VERSION_FULL - X.X.X-xxxxx-xxxxx - full version, without spaces -; PK_EXECUTABLE - xxx\XxxxXxxx-xxx_xxx.exe - subpath to executable file -; PK_ICON - xxx\XxxxXxxx-xxx_xxx.ico - subpath to icon file (may be *.exe) - -!include "config.nsh" - -;-------------------------------- - -!include "MUI2.nsh" - -;second directory selection - -;-------------------------------- - -; The name of the installer -Name "${PK_NAME_FULL} ${PK_VERSION_FULL}" - -; The file to write -OutFile "${PK_NAME}-${PK_VERSION_FULL}.exe" - -; The default installation directory and registry -InstallDir "$PROGRAMFILES${PK_ARCH}\${PK_NAME}" -Var STUFFDIR - -; Request application privileges for Windows Vista -RequestExecutionLevel admin - -!insertmacro MUI_LANGUAGE "English" - -!define MUI_ABORTWARNING - -!define SHCNE_ASSOCCHANGED 0x8000000 -!define SHCNF_IDLIST 0 - -!define PRODUCT_REG_KEY "Software\${PK_NAME}" -!define PRODUCT_STUFF_KEY "${PRODUCT_REG_KEY}\${PK_NAME}\${PK_VERSION}" -!define PRODUCT_UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PK_NAME}" -!define PRODUCT_UNINSTALL_KEY2 "Software\Microsoft\Windows\CurrentVersion\Uninstall\{D9A9B1A3-9370-4BE9-9C8F-7B52EEECB973}_is1" -!define PRODUCT_UNINSTALL_EXE "uninstall-${PK_NAME}.exe" - -;-------------------------------- - -; Pages - -!insertmacro MUI_PAGE_COMPONENTS - -!define MUI_PAGE_CUSTOMFUNCTION_LEAVE InstDirPageLeave -!insertmacro MUI_PAGE_DIRECTORY - -Function InstDirPageLeave - StrCpy $STUFFDIR "C:\${PK_NAME} ${PK_VERSION} stuff" -FunctionEnd - -!define MUI_DIRECTORYPAGE_VARIABLE $STUFFDIR -!define MUI_DIRECTORYPAGE_TEXT_TOP "Choose stuff directory for ${PK_NAME}..." -!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "Stuff Directory:" -!insertmacro MUI_PAGE_DIRECTORY -!insertmacro MUI_PAGE_INSTFILES - -!insertmacro MUI_UNPAGE_CONFIRM -!insertmacro MUI_UNPAGE_INSTFILES - -;-------------------------------- -; Installer -;-------------------------------- - -Section "${PK_NAME_FULL} (required)" - SetRegView ${PK_ARCH} - - SectionIn RO - - SetOutPath "$INSTDIR" - !include "files-install.nsh" - - SetOutPath "$STUFFDIR" - !include "files-stuff-install.nsh" - - WriteRegStr HKLM "${PRODUCT_REG_KEY}" "Path" "$INSTDIR" - WriteRegStr HKLM "${PRODUCT_REG_KEY}" "Version" "${PK_VERSION_FULL}" - - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZROOT" "$STUFFDIR" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZPROJECTS" "$STUFFDIR\projects" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZCACHEROOT" "$STUFFDIR\cache" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZCONFIG" "$STUFFDIR\config" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZPROFILES" "$STUFFDIR\profiles" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZFXPRESETS" "$STUFFDIR\fxs" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZLIBRARY" "$STUFFDIR\library" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZSTUDIOPALETTE" "$STUFFDIR\studiopalette" - WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "FARMROOT" "" - - ; Write the uninstall keys for Windows - WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayName" "${PK_NAME_FULL}" - WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayVersion" "${PK_VERSION_FULL}" - WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" '"$INSTDIR\${PRODUCT_UNINSTALL_EXE}"' - WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoModify" 1 - WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoRepair" 1 - - System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)' - - SetOutPath "$INSTDIR" - WriteUninstaller "${PRODUCT_UNINSTALL_EXE}" -SectionEnd - -; Optional section (can be disabled by the user) -Section "Start Menu Shortcuts" - SetRegView ${PK_ARCH} - - SetOutPath "$INSTDIR\bin" - - SetShellVarContext All - CreateDirectory "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)" - CreateShortCut "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\Uninstall ${PK_NAME}.lnk" "$INSTDIR\uninstall-${PK_NAME}.exe" "" "$INSTDIR\uninstall-${PK_NAME}.exe" 0 - CreateShortCut "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\${PK_NAME}.lnk" "$INSTDIR\${PK_EXECUTABLE}" "" "$INSTDIR\${PK_ICON}" 0 -SectionEnd - -Section "Desktop Icon" - SetRegView ${PK_ARCH} - - SetOutPath "$INSTDIR\bin" - - SetShellVarContext All - CreateShortCut "$DESKTOP\${PK_NAME_FULL}.lnk" "$INSTDIR\${PK_EXECUTABLE}" "" "$INSTDIR\${PK_ICON}" 0 -SectionEnd - -;-------------------------------- -; Uninstaller -;-------------------------------- - -Section "Uninstall" - SetRegView ${PK_ARCH} - - ReadRegStr $INSTDIR HKLM "${PRODUCT_REG_KEY}" "Path" - ReadRegStr $STUFFDIR HKLM "${PRODUCT_REG_KEY}\${PK_NAME}\${PK_VERSION}" "TOONZROOT" - - ; Remove registry keys - DeleteRegKey HKLM "${PRODUCT_REG_KEY}" - DeleteRegKey HKLM "${PRODUCT_UNINSTALL_KEY}" - - ; Remove files and uninstaller - !include "files-stuff-uninstall.nsh" - !include "files-uninstall.nsh" - Delete "$INSTDIR\${PRODUCT_UNINSTALL_EXE}" - - ; Remove shortcuts, if any - SetShellVarContext All - Delete "$DESKTOP\${PK_NAME_FULL}.lnk" - Delete "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\${PK_NAME}.lnk" - Delete "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\Uninstall ${PK_NAME}.lnk" - - ; Remove directories used - RMDir "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)" - RMDir "$STUFFDIR" - RMDir "$INSTDIR" - - System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)' -SectionEnd - -Function .onInit - - SetRegView ${PK_ARCH} - - ; Check previous installation - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" - StrCmp $R0 "" 0 oops - - ; Check previous installation 2 - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" - StrCmp $R0 "" 0 oops - - SetRegView 32 - - ; Check previous installation - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" - StrCmp $R0 "" 0 oops - - ; Check previous installation 2 - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" - StrCmp $R0 "" 0 oops - - SetRegView 64 - - ; Check previous installation - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" - StrCmp $R0 "" 0 oops - - ; Check previous installation 2 - ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" - StrCmp $R0 "" 0 oops - - BringToFront - Return - -oops: - MessageBox MB_YESNO|MB_ICONEXCLAMATION "Another version of OpenToonz appears to be installed, we recommend to make backup of the Stuff directory and uninstall another version first. Do you wish to continue with installation of this version anyway?" IDNO cancel - BringToFront - Return - -cancel: - Abort -FunctionEnd diff --git a/docker-builder-data/build/script/packet/opentoonz-nsis.sh b/docker-builder-data/build/script/packet/opentoonz-nsis.sh deleted file mode 100644 index c45f2df..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-nsis.sh +++ /dev/null @@ -1,75 +0,0 @@ -DEPS="opentoonz-master" -DEPS_NATIVE="nsis-2.50" - -pkfunc_register_file() { - local FILE=$1 - local WIN_FILE=$(echo "$FILE" | sed "s|\/|\\\\|g") - ! [ -L "$FILE" ] || return 0 - - if [ "${FILE:0:8}" = "./files-" ]; then - true # skip - elif [ "${FILE:0:24}" = "./share/opentoonz/stuff/" ]; then - if [ -d "$FILE" ]; then - echo "CreateDirectory \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-install.nsh" - foreachfile "$FILE" pkfunc_register_file - echo "RMDir \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-uninstall.nsh" - else - echo "File \"/oname=${WIN_FILE:24}\" \"${WIN_FILE:2}\"" >> "files-stuff-install.nsh" - echo "Delete \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-uninstall.nsh" - fi - elif [ "${FILE:0:2}" = "./" ]; then - if [ -d "$FILE" ]; then - echo "CreateDirectory \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-install.nsh" - foreachfile "$FILE" pkfunc_register_file - echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" - else - echo "File \"/oname=${WIN_FILE:2}\" \"${WIN_FILE:2}\"" >> "files-install.nsh" - echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" - fi - else - foreachfile $FILE pkfunc_register_file - fi -} - -pkinstall_release() { - # create temporary dir - rm -rf "$INSTALL_RELEASE_PACKET_DIR/installer" - mkdir -p "$INSTALL_RELEASE_PACKET_DIR/installer" - cd "$INSTALL_RELEASE_PACKET_DIR/installer" || return 1 - - # copy files - copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 - - # get version - local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-opentoonz-*) - local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) - local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) - local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) - - # create file lists - echo "create file lists" - pkfunc_register_file . - echo "created" - - # copy NSIS configuration - cp "$FILES_PACKET_DIR/opentoonz.nsi" "./" || return 1 - - # create config.nsh (see opentoons.nsi) - cat > config.nsh << EOF -!define PK_NAME "OpenToonz" -!define PK_NAME_FULL "OpenToonz Morevna Edition (${ARCH}bit)" -!define PK_ARCH "${ARCH}" -!define PK_VERSION "${LOCAL_VERSION2}" -!define PK_VERSION_FULL "${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}" -!define PK_EXECUTABLE "bin\\\${PK_NAME}.exe" -!define PK_ICON "bin\\toonz.ico" -EOF - - # let's go - makensis opentoonz.nsi || return 1 - - # remove temporary dir - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - mv installer/*.exe ./ || return 1 - rm -rf "installer" -} diff --git a/docker-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat b/docker-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat deleted file mode 100755 index 6a738c5..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat +++ /dev/null @@ -1,2 +0,0 @@ -cd "%~dp0\" -start "" "%~dp0\bin\OpenToonz.exe" diff --git a/docker-builder-data/build/script/packet/opentoonz-portable.sh b/docker-builder-data/build/script/packet/opentoonz-portable.sh deleted file mode 100644 index 584feb4..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-portable.sh +++ /dev/null @@ -1,30 +0,0 @@ -DEPS="opentoonz-master" - -pkinstall_release() { - # create temporary dir - rm -rf "$INSTALL_RELEASE_PACKET_DIR/portable" - mkdir -p "$INSTALL_RELEASE_PACKET_DIR/portable" - cd "$INSTALL_RELEASE_PACKET_DIR/portable" || return 1 - - # copy files - copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 - - # get version - local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-opentoonz-*) - local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) - local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) - local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) - - # copy NSIS configuration - cp "$FILES_PACKET_DIR/opentoonz.bat" "./" || return 1 - - # portable stuff - mv "./share/opentoonz/stuff" "./portablestuff" || return 1 - - # let's go - zip -r "../opentoonz-${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}.zip" ./ || return 1 - - # remove temporary dir - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -rf "portable" -} diff --git a/docker-builder-data/build/script/packet/opentoonz-testing.files b/docker-builder-data/build/script/packet/opentoonz-testing.files deleted file mode 120000 index 087c56b..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testing.files +++ /dev/null @@ -1 +0,0 @@ -opentoonz-master.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/opentoonz-testing.sh b/docker-builder-data/build/script/packet/opentoonz-testing.sh deleted file mode 100644 index f9bc7ae..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testing.sh +++ /dev/null @@ -1,5 +0,0 @@ -source "$PACKET_SCRIPT_DIR/opentoonz-master.sh" - -PK_DIRNAME="opentoonz" -PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/testing" diff --git a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh b/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh deleted file mode 100755 index 23ea415..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -OLDDIR=`pwd` -cd `dirname "$0"` -SCRIPT_DIR=`pwd` -BASE_DIR=`dirname "$SCRIPT_DIR"` - -export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib/pulseaudio:$BASE_DIR/lib64:$LD_LIBRARY_PATH" -export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb - -if [ "$1" = "--appimage-exec" ]; then - if ! "${@:2}"; then - cd "$OLDDIR" - exit 1 - fi -else - if ! "./launch-opentoonz.sh.wrapper" "$@"; then - cd "$OLDDIR" - exit 1 - fi -fi -cd "$OLDDIR" diff --git a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop b/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop deleted file mode 100644 index e30ba4d..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Type=Application -Name=OpenToonz (Morevna Edition) -Exec=launch-opentoonz-appimage.sh -Icon=opentoonz -Categories=Graphics diff --git a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png b/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png deleted file mode 100644 index 6a7b998..0000000 Binary files a/docker-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png and /dev/null differ diff --git a/docker-builder-data/build/script/packet/opentoonz-testingappimage.sh b/docker-builder-data/build/script/packet/opentoonz-testingappimage.sh deleted file mode 100644 index f6d4bfe..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingappimage.sh +++ /dev/null @@ -1,3 +0,0 @@ -source "$PACKET_SCRIPT_DIR/opentoonz-appimage.sh" - -DEPS="opentoonz-testing" diff --git a/docker-builder-data/build/script/packet/opentoonz-testingnsis.files b/docker-builder-data/build/script/packet/opentoonz-testingnsis.files deleted file mode 120000 index 688ae12..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingnsis.files +++ /dev/null @@ -1 +0,0 @@ -opentoonz-nsis.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/opentoonz-testingnsis.sh b/docker-builder-data/build/script/packet/opentoonz-testingnsis.sh deleted file mode 100644 index c77cd22..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingnsis.sh +++ /dev/null @@ -1,3 +0,0 @@ -source "$PACKET_SCRIPT_DIR/opentoonz-nsis.sh" - -DEPS=`echo "$DEPS" | sed "s|opentoonz-master|opentoonz-testing|g"` diff --git a/docker-builder-data/build/script/packet/opentoonz-testingportable.files b/docker-builder-data/build/script/packet/opentoonz-testingportable.files deleted file mode 120000 index 6cf394c..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingportable.files +++ /dev/null @@ -1 +0,0 @@ -opentoonz-portable.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/opentoonz-testingportable.sh b/docker-builder-data/build/script/packet/opentoonz-testingportable.sh deleted file mode 100644 index c5a48df..0000000 --- a/docker-builder-data/build/script/packet/opentoonz-testingportable.sh +++ /dev/null @@ -1,3 +0,0 @@ -source "$PACKET_SCRIPT_DIR/opentoonz-portable.sh" - -DEPS=`echo "$DEPS" | sed "s|opentoonz-master|opentoonz-testing|g"` diff --git a/docker-builder-data/build/script/packet/pango-1.40.3.sh b/docker-builder-data/build/script/packet/pango-1.40.3.sh deleted file mode 100644 index 5281763..0000000 --- a/docker-builder-data/build/script/packet/pango-1.40.3.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="harfbuzz-1.3.2 fontconfig-2.11.0 glib-2.50.0 cairo-1.15.4" -#DEPS_NATIVE="gobjectintrospection-1.50.0" - -PK_DIRNAME="pango-1.40.3" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/pango/1.40/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/pangomm-2.40.1.sh b/docker-builder-data/build/script/packet/pangomm-2.40.1.sh deleted file mode 100644 index 1316b98..0000000 --- a/docker-builder-data/build/script/packet/pangomm-2.40.1.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="pango-1.40.3 glibmm-2.50.0 cairomm-1.12.0" - -PK_DIRNAME="pangomm-2.40.1" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/pangomm/2.40/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh b/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh deleted file mode 100755 index 1506fe5..0000000 --- a/docker-builder-data/build/script/packet/papagayong-appimage.files/launch.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` - -export LD_LIBRARY_PATH="${BASE_DIR}/lib:${BASE_DIR}/lib64:$LD_LIBRARY_PATH" -export XDG_DATA_DIRS="${BASE_DIR}/share:$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" -export GSETTINGS_SCHEMA_DIR="${BASE_DIR}/share/glib-2.0/schemas/" -export PYTHONHOME=$BASE_DIR -export FONTCONFIG_PATH=/etc/fonts - -#sed "s?@ROOTDIR@/modules?${BASE_DIR}/lib/pango/1.6.0/modules?" < $ETC_DIR/pango/pango.modules.in > $USER_CONFIG_DIR/pango/pango.modules -if [ -e ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in ]; then - export GDK_PIXBUF_MODULE_FILE="${USER_CONFIG_DIR}/gdk-pixbuf.loaders" - sed "s?@ROOTDIR@/loaders?${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders?" < ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in > $GDK_PIXBUF_MODULE_FILE -fi - -export APPIMAGE_ROOT="$BASE_DIR" -if [ ! -z "$APPIMAGE_WORKDIR" ]; then - if ! cd "$APPIMAGE_WORKDIR"; then - echo "Cannot change directory to \"$APPIMAGE_WORKDIR\" (APPIMAGE_WORKDIR)" - exit 1 - fi -fi - -if [ "$1" = "--appimage-exec" ]; then - if ! "${@:2}"; then - exit 1 - fi -elif [ -z "$2" ]; then - if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then - exit 1 - fi -elif [ "$1" -eq "--remove-appimage-desktop-integration" ]; then - if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then - exit 1 - fi -else - if ! "$BASE_DIR/bin/papagayong" "$@"; then - exit 1 - fi -fi diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong deleted file mode 100755 index baf04f1..0000000 --- a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -cd "$SCRIPT_DIR/../opt/papagayong" -"$SCRIPT_DIR/python3" papagayo-ng.py "$@" diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop b/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop deleted file mode 100644 index 2518dfc..0000000 --- a/docker-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=Papagayo NG -Comment=Lipsync tool -Exec=launch.sh -Icon=papagayong -Terminal=false -Type=Application -Categories=Graphics;Application; -MimeType=application/x-papagayo;application/x-extension-pgo; -X-Desktop-File-Install-Version=0.15 diff --git a/docker-builder-data/build/script/packet/papagayong-appimage.sh b/docker-builder-data/build/script/packet/papagayong-appimage.sh deleted file mode 100644 index d97a02e..0000000 --- a/docker-builder-data/build/script/packet/papagayong-appimage.sh +++ /dev/null @@ -1,51 +0,0 @@ -DEPS="papagayong-testing" -DEPS_NATIVE="appimagekit-master" - -PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ -PK_APPDIR_NAME="papagayong" - -pkinstall() { - # copy files from envdeps (install requires envdeps explicit) - - local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - mkdir -p "$APPDIR/usr" - mkdir -p "$APPDIR/usr/bin" - mkdir -p "$APPDIR/usr/lib" - - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/papagayong.wrapper"|| return 1 - - cp --remove-destination "$FILES_PACKET_DIR/papagayong.desktop" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/papagayong" "$APPDIR/usr/bin/" || return 1 - - copy_system_gcc_libs "$APPDIR/usr/lib/" || return 1 - copy_system_lib libudev "$APPDIR/usr/lib/" || return 1 - copy_system_lib libpng12 "$APPDIR/usr/lib/" || return 1 - copy_system_lib libffi "$APPDIR/usr/lib/" || return 1 - copy_system_lib libdb "$APPDIR/usr/lib/" || return 1 - copy_system_lib libpcre "$APPDIR/usr/lib/" || return 1 - copy_system_lib libdirect "$APPDIR/usr/lib/" || return 1 - copy_system_lib libfusion "$APPDIR/usr/lib/" || return 1 - copy_system_lib libbz2 "$APPDIR/usr/lib/" || return 1 -} - -pkinstall_release() { - if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then - return 1 - fi - - # copy files from envdeps_release (install_release requires envdeps_release explicit) - - local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 - cp "$APPDIR/usr/share/icons/default/128x128/apps/papagayong.png" "$APPDIR/" || return 1 - - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 - tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 - rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - - rm -rf "$APPDIR" -} diff --git a/docker-builder-data/build/script/packet/papagayong-master.files/build-win.sh b/docker-builder-data/build/script/packet/papagayong-master.files/build-win.sh deleted file mode 100755 index 50bbf35..0000000 --- a/docker-builder-data/build/script/packet/papagayong-master.files/build-win.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -# QUICK HACK: - -set -e - -PK_DIRNAME="papagayo-ng" - -PREBUILT_URL="https://github.com/morevnaproject/papagayo-ng/releases/download/v1.4.0/papagayo-ng-1.4.0-win.zip" -PREBUILT_ZIP="papagayo-ng-1.4.0-win.zip" -PREBUILT_DIR="papagayo-ng-1.4.0-win" - -VERSION=$(grep "export VERSION=" "$UNPACK_PACKET_DIR/$PK_DIRNAME/util/package-linux.sh" | cut -d\' -f 2) -TARGET_DIR="papagayo-ng-$VERSION-win" - -foreachfile() { - local FILE=$1 - local COMMAND=$2 - if [ ! -e "$FILE" ]; then - return 1 - fi - if [ -d "$FILE" ]; then - ls -A1 "$FILE" | while read SUBFILE; do - if ! $COMMAND "$FILE/$SUBFILE" ${@:3}; then - return 1 - fi - done - fi -} - -nsis_register_file() { - local FILE=$1 - local WIN_FILE=$(echo "$FILE" | sed "s|\/|\\\\|g") - - if [ "${FILE:0:2}" = "./" ]; then - if [ -d "$FILE" ]; then - foreachfile "$FILE" nsis_register_file - echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" - else - echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" - fi - else - foreachfile $FILE nsis_register_file - fi -} - -if [ ! -f "$BUILD_PACKET_DIR/papagayo-ng-$VERSION-win-installer.exe" ] \ -|| [ "$BUILD_PACKET_DIR/papagayo-ng-$VERSION-win-installer.exe" -ot "$CURRENT_PACKET_DIR/unpack.done" ]; then - mkdir -p "$BUILD_PACKET_DIR/prebuilt" - - cd "$BUILD_PACKET_DIR/prebuilt" - wget -c "$PREBUILT_URL" - rm -rf "$TARGET_DIR" - unzip "$PREBUILT_ZIP" - - cd "$BUILD_PACKET_DIR" - rm -f "$TARGET_DIR.zip" - rm -rf "$TARGET_DIR" - mv "prebuilt/$PREBUILT_DIR" "$TARGET_DIR" - - cd "$BUILD_PACKET_DIR/$TARGET_DIR" - rm -rf papagayo-ng - ln -s "$UNPACK_PACKET_DIR/$PK_DIRNAME" papagayo-ng - cp "$FILES_PACKET_DIR/papagayo-ng.nsi" . - cp "$FILES_PACKET_DIR/papagayo-ng.bat" . - touch "files-uninstall.nsh" - nsis_register_file . - makensis papagayo-ng.nsi - - cd "$BUILD_PACKET_DIR" - zip -r "$TARGET_DIR.zip" "$TARGET_DIR" - rm -rf "$TARGET_DIR" - mv "papagayo-ng-installer.exe" "papagayo-ng-$VERSION-win-installer.exe" -fi - diff --git a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat b/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat deleted file mode 100644 index 30974b5..0000000 --- a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat +++ /dev/null @@ -1,3 +0,0 @@ -%~d0 -cd "%~dp0" -python.exe papagayo-ng\papagayo-ng.py %* diff --git a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi b/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi deleted file mode 100644 index 7303092..0000000 --- a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi +++ /dev/null @@ -1,62 +0,0 @@ -OutFile "..\papagayo-ng-installer.exe" -InstallDir "$PROGRAMFILES\Papagayo-NG" -Name "Papagayo-NG" - -SetCompressor /final lzma -!include MUI2.nsh - -Icon "papagayo-ng\papagayo-ng.ico" -UninstallIcon "papagayo-ng\papagayo-ng.ico" - -LicenseData "papagayo-ng\gpl.txt" -!insertmacro MUI_PAGE_LICENSE "papagayo-ng\gpl.txt" - -!insertmacro MUI_PAGE_DIRECTORY -!insertmacro MUI_PAGE_INSTFILES - -!insertmacro MUI_UNPAGE_CONFIRM -!insertmacro MUI_UNPAGE_INSTFILES - -Section "Papagayo-NG (required)" - SectionIn RO - WriteRegStr HKLM "Software\$(^Name)" "Path" "$INSTDIR" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "DisplayName" "$(^Name)" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "UninstallString" "$INSTDIR\uninstall.exe" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "HelpLink" "https://github.com/morevnaproject/papagayo-ng" - - WriteRegStr HKCR ".pgo" "" "Papagayo.Document" - WriteRegStr HKCR "Papagayo.Document" "" "Papagayo Document" - WriteRegStr HKCR "Papagayo.Document\DefaultIcon" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" - WriteRegStr HKCR "Papagayo.Document\shell\open\command" "" '"$INSTDIR\papagayo-ng.bat" "%1"' - - SetOutPath $INSTDIR - File /r /x papagayo-ng.nsi * - WriteUninstaller "uninstall.exe" -SectionEnd - -Section "Start Menu Shortcuts" - SetShellVarContext all - CreateDirectory "$SMPROGRAMS\$(^Name)" - CreateShortCut "$SMPROGRAMS\$(^Name)\$(^Name).lnk" "$INSTDIR\papagayo-ng.bat" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" - CreateShortCut "$SMPROGRAMS\$(^Name)\Uninstall $(^Name).lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" -SectionEnd - -Section "Uninstall" - Var /GLOBAL testkey - - DeleteRegKey HKLM "Software\$(^Name)\" - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" - - ReadRegStr $testkey HKCR "Papagayo.Document\DefaultIcon" "" - StrCmp $testkey "$INSTDIR\papagayo-ng\papagayo-ng.ico" 0 +2 - DeleteRegKey HKCR "Papagayo.Document\DefaultIcon" - - ReadRegStr $testkey HKCR "Papagayo.Document\shell\open\command" "" - StrCmp $testkey '"$INSTDIR\papagayo-ng.bat" "%1"' 0 +2 - DeleteRegKey HKCR "Papagayo.Document\shell\open\command" - - !include "files-uninstall.nsh" - Delete "$INSTDIR\uninstall.exe" - RMDir "$INSTDIR" -SectionEnd - diff --git a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml b/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml deleted file mode 100644 index 94ece23..0000000 --- a/docker-builder-data/build/script/packet/papagayong-master.files/papagayo.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Papagayo Project - - - \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/papagayong-master.sh b/docker-builder-data/build/script/packet/papagayong-master.sh deleted file mode 100644 index 7a49a0d..0000000 --- a/docker-builder-data/build/script/packet/papagayong-master.sh +++ /dev/null @@ -1,31 +0,0 @@ -DEPS="wxphoenix-master python3pyaudio-master" - -if [ "$PLATFORM" = "win" ]; then - DEPS_NATIVE="nsis-2.50" -fi - -PK_DIRNAME="papagayo-ng" -PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git" - -PK_LICENSE_FILES="readme.txt gpl.txt" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - return 0 -} - -pkinstall() { - mkdir -p "$INSTALL_PACKET_DIR/opt" - local TARGET="$INSTALL_PACKET_DIR/opt/papagayong" - rm -rf "$TARGET" - cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME" "$TARGET" || return 1 - - mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps" - mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes" - mkdir -p "$INSTALL_PACKET_DIR/share/mime" - cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps/papagayong.png" || return 1 - #cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes/application-x-papagayo.png" || return 1 - cp "$FILES_PACKET_DIR/papagayo.xml" "$INSTALL_PACKET_DIR/share/mime/" || return 1 - return 0 -} diff --git a/docker-builder-data/build/script/packet/papagayong-testing.files b/docker-builder-data/build/script/packet/papagayong-testing.files deleted file mode 120000 index a3e9471..0000000 --- a/docker-builder-data/build/script/packet/papagayong-testing.files +++ /dev/null @@ -1 +0,0 @@ -papagayong-master.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/papagayong-testing.sh b/docker-builder-data/build/script/packet/papagayong-testing.sh deleted file mode 100644 index 93a3c4b..0000000 --- a/docker-builder-data/build/script/packet/papagayong-testing.sh +++ /dev/null @@ -1,3 +0,0 @@ -source "$PACKET_SCRIPT_DIR/papagayong-master.sh" - -PK_GIT_CHECKOUT="origin/testing" diff --git a/docker-builder-data/build/script/packet/pixman-0.34.0.sh b/docker-builder-data/build/script/packet/pixman-0.34.0.sh deleted file mode 100644 index b9cfeba..0000000 --- a/docker-builder-data/build/script/packet/pixman-0.34.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="pixman-0.34.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.cairographics.org/releases/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch b/docker-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch deleted file mode 100644 index dea9349..0000000 --- a/docker-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch +++ /dev/null @@ -1,2 +0,0 @@ -8a9 -> Requires: zlib diff --git a/docker-builder-data/build/script/packet/png-1.6.26.sh b/docker-builder-data/build/script/packet/png-1.6.26.sh deleted file mode 100644 index abc7ee9..0000000 --- a/docker-builder-data/build/script/packet/png-1.6.26.sh +++ /dev/null @@ -1,11 +0,0 @@ -DEPS="zlib-1.2.11" - -PK_DIRNAME="libpng-1.6.26" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://download.sourceforge.net/libpng/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkhook_prebuild() { - pkhelper_patch . libpng.pc.in -} diff --git a/docker-builder-data/build/script/packet/portaudio-19.6.0.sh b/docker-builder-data/build/script/packet/portaudio-19.6.0.sh deleted file mode 100644 index 0feb2fa..0000000 --- a/docker-builder-data/build/script/packet/portaudio-19.6.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="portaudio" -PK_ARCHIVE="pa_stable_v19_20140130.tgz" -PK_URL="http://www.portaudio.com/archives/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/pulseaudio-11.1.sh b/docker-builder-data/build/script/packet/pulseaudio-11.1.sh deleted file mode 100644 index 6f32c69..0000000 --- a/docker-builder-data/build/script/packet/pulseaudio-11.1.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="sndfile-1.0.28 speexdsp-1.2rc3" - -PK_DIRNAME="pulseaudio-11.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://freedesktop.org/software/pulseaudio/releases/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--without-caps" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/python-3.6.0.sh b/docker-builder-data/build/script/packet/python-3.6.0.sh deleted file mode 100644 index e79fe08..0000000 --- a/docker-builder-data/build/script/packet/python-3.6.0.sh +++ /dev/null @@ -1,14 +0,0 @@ -DEPS="" - -PK_DIRNAME="Python-3.6.0" -PK_ARCHIVE="$PK_DIRNAME.tgz" -PK_URL="https://www.python.org/ftp/python/3.6.0/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - make install || return 1 - cd "$INSTALL_PACKET_DIR/bin" || return 1 - ln -s python3 python || return 1 -} \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/python3pyaudio-master.sh b/docker-builder-data/build/script/packet/python3pyaudio-master.sh deleted file mode 100644 index 64d6c6d..0000000 --- a/docker-builder-data/build/script/packet/python3pyaudio-master.sh +++ /dev/null @@ -1,24 +0,0 @@ -DEPS="python-3.6.0 portaudio-19.6.0" - -PK_DIRNAME="pyaudio" -PK_URL="https://people.csail.mit.edu/hubert/git/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/v0.2.11" -PK_LICENSE_FILES="README" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - return 0 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages - PYTHONHOME=$ENVDEPS_PACKET_DIR \ - PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ - python3 \ - setup.py \ - install \ - --prefix=$INSTALL_PACKET_DIR \ - || return 1 -} diff --git a/docker-builder-data/build/script/packet/python3requests-master.sh b/docker-builder-data/build/script/packet/python3requests-master.sh deleted file mode 100644 index 9771338..0000000 --- a/docker-builder-data/build/script/packet/python3requests-master.sh +++ /dev/null @@ -1,24 +0,0 @@ -DEPS="python-3.6.0" - -PK_DIRNAME="requests" -PK_URL="https://github.com/kennethreitz/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/v2.17.3" -PK_LICENSE_FILES="AUTHORS.rst LICENSE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - return 0 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages - PYTHONHOME=$ENVDEPS_PACKET_DIR \ - PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ - python3 \ - setup.py \ - install \ - --prefix=$INSTALL_PACKET_DIR \ - || return 1 -} diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch b/docker-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch deleted file mode 100644 index 5f3e189..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch +++ /dev/null @@ -1,4 +0,0 @@ -8c8 -< LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lVersion -lgdi32 ---- -> LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lversion -lgdi32 diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch b/docker-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch deleted file mode 100644 index 6caaaf3..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch +++ /dev/null @@ -1,5 +0,0 @@ -25,26c25 -< #elif __QT__ && QT_VERSION >= 0x050000 -< #define GL_GLEXT_PROTOTYPES ---- -> #elif defined(__QT__) diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch b/docker-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch deleted file mode 100644 index d98e3d1..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch +++ /dev/null @@ -1,2 +0,0 @@ -1d0 -< option(host_build) diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch b/docker-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch deleted file mode 100644 index 510b391..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch +++ /dev/null @@ -1,7 +0,0 @@ -53,56c53 -< equals(QMAKE_HOST.os, Windows) { -< QMAKE_LINK_OBJECT_MAX = 10 -< QMAKE_LINK_OBJECT_SCRIPT = object_script -< } ---- -> QMAKE_LINK_OBJECT_MAX = 1 diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch b/docker-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch deleted file mode 100644 index a3c40b6..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch +++ /dev/null @@ -1,8 +0,0 @@ -76a77,83 -> #ifndef CANFD_BRS -> # define CANFD_BRS 0x01 /* bit rate switch (second bitrate for payload data) */ -> #endif -> #ifndef CANFD_ESI -> # define CANFD_ESI 0x02 /* error state indicator of the transmitting node */ -> #endif -> diff --git a/docker-builder-data/build/script/packet/qt-5.9.2.sh b/docker-builder-data/build/script/packet/qt-5.9.2.sh deleted file mode 100644 index 2fc4f81..0000000 --- a/docker-builder-data/build/script/packet/qt-5.9.2.sh +++ /dev/null @@ -1,93 +0,0 @@ -DEPS="png-1.6.26 glib-2.50.0" - -if [ "$PLATFORM" = "linux" ]; then - DEPS="$DEPS pulseaudio-11.1" -fi - -PK_DIRNAME="qt-everywhere-opensource-src-5.9.2" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="http://download.qt.io/official_releases/qt/5.9/5.9.2/single/$PK_ARCHIVE" -PK_LICENSE_FILES="LICENSE.LGPLv21" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$PLATFORM" = "linux" ]; then - DEPS="$DEPS xcbfull-1.12" -fi - - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - - if ! check_packet_function $NAME build.configure; then - local LOCAL_OPTIONS= - if [ "$PLATFORM" = "win" ]; then - rm -f "qtbase/mkspecs/win32-g++/qmake.conf" || return 1 - patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtbase/mkspecs/win32-g++/qmake.conf" \ - -i "$FILES_PACKET_DIR/qmake.conf.patch" -o - \ - > "qtbase/mkspecs/win32-g++/qmake.conf" - - rm -f "qtactiveqt/src/tools/idc/idc.pro" || return 1 - patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtactiveqt/src/tools/idc/idc.pro" \ - -i "$FILES_PACKET_DIR/idc.pro.patch" -o - \ - > "qtactiveqt/src/tools/idc/idc.pro" - - rm -f "qtbase/src/plugins/platforms/direct2d/direct2d.pro" || return 1 - patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtbase/src/plugins/platforms/direct2d/direct2d.pro" \ - -i "$FILES_PACKET_DIR/direct2d.pro.patch" -o - \ - > "qtbase/src/plugins/platforms/direct2d/direct2d.pro" - - #rm -f "qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" || return 1 - #patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" \ - # -i "$FILES_PACKET_DIR/gl.hpp.patch" -o - \ - # > "qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" - - LOCAL_OPTIONS=" \ - -xplatform win32-g++ \ - -device-option CROSS_COMPILE=$HOST- \ - -opengl desktop \ - -no-feature-geoservices_mapboxgl " - fi - - rm -f "qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" || return 1 - patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" \ - -i "$FILES_PACKET_DIR/socketcanbackend.cpp.patch" -o - \ - > "qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" - - native_at_place with_envvar PATH "$PATH" \ - ./configure \ - -prefix "$INSTALL_PACKET_DIR" \ - $LOCAL_OPTIONS \ - -release \ - -shared \ - -opensource -confirm-license \ - -nomake examples \ - || return 1 - - set_done $NAME build.configure - fi - - native_at_place with_envvar PATH "$PATH" make -j${THREADS} || \ - native_at_place with_envvar PATH "$PATH" make || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - native_at_place with_envvar PATH "$PATH" make install || return 1 - -cat << EOF > "$INSTALL_PACKET_DIR/bin/qt.conf" -[Paths] -Prefix=.. -EOF - - if [ ! $? -eq 0 ]; then - return 1 - fi -} - -pkhook_postinstall_release() { - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -rf "examples" || return 1 - rm -rf "mkspecs" || return 1 - rm -rf "doc" || return 1 -} \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/rsvg-2.40.16.sh b/docker-builder-data/build/script/packet/rsvg-2.40.16.sh deleted file mode 100644 index da49de3..0000000 --- a/docker-builder-data/build/script/packet/rsvg-2.40.16.sh +++ /dev/null @@ -1,26 +0,0 @@ -DEPS="croco-0.6.11 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" - -if [ "$PLATFORM" = "win" ]; then - DEPS_NATIVE="gdkpixbuf-2.36.0" -fi - -PK_DIRNAME="librsvg-2.40.16" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/librsvg/2.40/$PK_ARCHIVE" -PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -PK_CONFIGURE_OPTIONS="--enable-introspection=no" - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - make install || return 1 - local GDK_API_VERSION=`ls $ENVDEPS_PACKET_DIR/lib/gdk-pixbuf-2.0/ | grep 2` - if [ -z "$GDK_API_VERSION" ]; then - return 1 - fi - local GDK_LOADERS="$INSTALL_PACKET_DIR/lib/gdk-pixbuf-2.0/$GDK_API_VERSION/loaders" - mkdir -p "$GDK_LOADERS" || return 1 - cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/gdk-pixbuf-loader/.libs/libpixbufloader-svg."* "$GDK_LOADERS/" || return 1 -} diff --git a/docker-builder-data/build/script/packet/samplerate-0.1.9.sh b/docker-builder-data/build/script/packet/samplerate-0.1.9.sh deleted file mode 100644 index 0a5968d..0000000 --- a/docker-builder-data/build/script/packet/samplerate-0.1.9.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="libsamplerate-0.1.9" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.mega-nerd.com/SRC/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/scons-3.0.1.sh b/docker-builder-data/build/script/packet/scons-3.0.1.sh deleted file mode 100644 index 22a5625..0000000 --- a/docker-builder-data/build/script/packet/scons-3.0.1.sh +++ /dev/null @@ -1,14 +0,0 @@ -PK_DIRNAME="scons-3.0.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://prdownloads.sourceforge.net/scons/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - return 0 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - python setup.py install --prefix="$INSTALL_PACKET_DIR" || return 1 -} diff --git a/docker-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch b/docker-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch deleted file mode 100644 index b241b22..0000000 --- a/docker-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch +++ /dev/null @@ -1,4 +0,0 @@ -168c168 -< SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) ---- -> SDL_X11_SYM(int,_XData32,(Display *dpy,register const long *data,unsigned len),(dpy,data,len),return) diff --git a/docker-builder-data/build/script/packet/sdl-1.2.15.sh b/docker-builder-data/build/script/packet/sdl-1.2.15.sh deleted file mode 100644 index 6f99e25..0000000 --- a/docker-builder-data/build/script/packet/sdl-1.2.15.sh +++ /dev/null @@ -1,29 +0,0 @@ -DEPS="" - -PK_DIRNAME="SDL-1.2.15" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if ! check_packet_function $NAME build.cunfigure; then - if [ "$PLATFORM" = "fedora" ]; then - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/src/video/x11/SDL_x11sym.h" "src/video/x11" || return 1 - patch "src/video/x11/SDL_x11sym.h" "$FILES_PACKET_DIR/SDL_x11sym.h.patch" || return 1 - fi - CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - ./configure \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.cunfigure - fi - if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - make -j${THREADS}; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/sdl-2.0.5.sh b/docker-builder-data/build/script/packet/sdl-2.0.5.sh deleted file mode 100644 index 4a8bb74..0000000 --- a/docker-builder-data/build/script/packet/sdl-2.0.5.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="" - -PK_DIRNAME="SDL2-2.0.5" -## !!! SDL 2.0.7 produces linker errors with MinGW builds: -# /usr/local/x86_64-w64-mingw32/sys-root/lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main': -# /install-mingw/build/crt-x86_64-w64-mingw32/../../download/mingw-w64-v5.0.3/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain' -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sdl-2.0.9.sh b/docker-builder-data/build/script/packet/sdl-2.0.9.sh deleted file mode 100644 index 53de70e..0000000 --- a/docker-builder-data/build/script/packet/sdl-2.0.9.sh +++ /dev/null @@ -1,12 +0,0 @@ -DEPS="" - -PK_DIRNAME="SDL2-2.0.9" -## !!! SDL 2.0.7 produces linker errors with MinGW builds: -# /usr/local/x86_64-w64-mingw32/sys-root/lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main': -# /install-mingw/build/crt-x86_64-w64-mingw32/../../download/mingw-w64-v5.0.3/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain' -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sdl_mixer-2.0.1.sh b/docker-builder-data/build/script/packet/sdl_mixer-2.0.1.sh deleted file mode 100644 index 14a51df..0000000 --- a/docker-builder-data/build/script/packet/sdl_mixer-2.0.1.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="sdl-2.0.5" - -PK_DIRNAME="SDL2_mixer-2.0.1" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.libsdl.org/projects/SDL_mixer/release/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sdl_mixer-2.0.4.sh b/docker-builder-data/build/script/packet/sdl_mixer-2.0.4.sh deleted file mode 100644 index bc945a8..0000000 --- a/docker-builder-data/build/script/packet/sdl_mixer-2.0.4.sh +++ /dev/null @@ -1,9 +0,0 @@ -DEPS="sdl-2.0.9" - -PK_DIRNAME="SDL2_mixer-2.0.4" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://www.libsdl.org/projects/SDL_mixer/release/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sigcpp-2.10.0.sh b/docker-builder-data/build/script/packet/sigcpp-2.10.0.sh deleted file mode 100644 index 8ede73f..0000000 --- a/docker-builder-data/build/script/packet/sigcpp-2.10.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="libsigc++-2.10.0" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/libsigc++/2.10/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sndfile-1.0.28.sh b/docker-builder-data/build/script/packet/sndfile-1.0.28.sh deleted file mode 100644 index 79650c0..0000000 --- a/docker-builder-data/build/script/packet/sndfile-1.0.28.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="libsndfile-1.0.28" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.mega-nerd.com/libsndfile/files/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/sox-14.4.2.sh b/docker-builder-data/build/script/packet/sox-14.4.2.sh deleted file mode 100644 index ced5992..0000000 --- a/docker-builder-data/build/script/packet/sox-14.4.2.sh +++ /dev/null @@ -1,8 +0,0 @@ -DEPS="png-1.6.26" - -PK_DIRNAME="sox-14.4.2" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://sourceforge.net/projects/sox/files/sox/14.4.2/$PK_ARCHIVE/download" -PK_LICENSE_FILES="AUTHORS COPYING LICENSE.GPL LICENSE.LGPL" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/speexdsp-1.2rc3.sh b/docker-builder-data/build/script/packet/speexdsp-1.2rc3.sh deleted file mode 100644 index 201d64f..0000000 --- a/docker-builder-data/build/script/packet/speexdsp-1.2rc3.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="speexdsp-1.2rc3" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://downloads.us.xiph.org/releases/speex/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c b/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c deleted file mode 100644 index b24ad13..0000000 --- a/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c +++ /dev/null @@ -1,16 +0,0 @@ -#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-5.2.1.sh b/docker-builder-data/build/script/packet/superlu-5.2.1.sh deleted file mode 100644 index cf9b6c7..0000000 --- a/docker-builder-data/build/script/packet/superlu-5.2.1.sh +++ /dev/null @@ -1,41 +0,0 @@ -DEPS="blas-3.7.0" - -PK_DIRNAME="SuperLU_5.2.1" -PK_ARCHIVE="superlu_5.2.1.tar.gz" -PK_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - -rm -f make.inc -cat > make.inc << EOF -SuperLUroot = $BUILD_PACKET_DIR/$PK_DIRNAME -SUPERLULIB = \$(SuperLUroot)/lib/libsuperlu.a -BLASDEF = -DUSE_VENDOR_BLAS -BLASLIB = \$(LDFLAGS) -lblas -lgfortran -TMGLIB = libtmglib.a -LIBS = \$(SUPERLULIB) \$(BLASLIB) -ARCH = ${AR:-ar} -ARCHFLAGS = cr -RANLIB = ${RANLIB:-ranlib} -CC = ${CC:-gcc} -CFLAGS = -O3 -fPIC -NOOPTS = -fPIC -FORTRAN = ${FORTRAN:-gfortran} -FFLAGS = -O2 -fPIC -LOADER = \$(CC) -LOADOPTS = -CDEFS = -DAdd_ -EOF - - cp --remove-destination "$FILES_PACKET_DIR/mc64ad.c" "$BUILD_PACKET_DIR/$PK_DIRNAME/SRC/" || return 1 - make lib || return 1 -} - -pkinstall() { - cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/lib" "$INSTALL_PACKET_DIR" || return 1 - mkdir -p "$INSTALL_PACKET_DIR/include/superlu" - cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/SRC/*.h "$INSTALL_PACKET_DIR/include/superlu" || return 1 -} diff --git a/docker-builder-data/build/script/packet/synfigcore-debug.sh b/docker-builder-data/build/script/packet/synfigcore-debug.sh deleted file mode 100644 index 6cc6b87..0000000 --- a/docker-builder-data/build/script/packet/synfigcore-debug.sh +++ /dev/null @@ -1,6 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigcore-master.sh" - -DEPS=`echo "$DEPS" | sed "s|synfigetl-master|synfigetl-debug|g"` -PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/debug" -PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/docker-builder-data/build/script/packet/synfigcore-master.sh b/docker-builder-data/build/script/packet/synfigcore-master.sh deleted file mode 100644 index dea975d..0000000 --- a/docker-builder-data/build/script/packet/synfigcore-master.sh +++ /dev/null @@ -1,99 +0,0 @@ -# automake -# intltool -# libdb-dev - libdb already installed - required -# bzip2 - required -# libasound2-dev - required -# libffi-dev - libffi5 already installed - glib -# libdbus-1-dev - atspi2 -# libxtst-dev - atspi2 - -# uuid-dev - libuuid1 already installed - gilib via libmount-dev -# libpciaccess-dev - libpciaccess0 already installed - -# libncurses-dev - gettext -# libtinfo-dev - gettext -# libunistring-dev - gettext - -# libjasper-dev -# libdirectfb-dev -# python-dev - -# libxml-parser-perl - - - -# + jpeg -# + tiff -# glib - from glibmm -# harfbuzz - not used in core - pango -# fontconfig - from the system -# pixman - from cairo -# + cairo -# + pango - also from cairo -# croco - not used in core - for gettext -# + jack -# mesa - opengl not used in this build -# sigcpp - from glibmm -# + glibmm -# + xmlpp -# + mlt -# + imagemagick -# ogg - not used in core - ffmpeg, vorbis, theora -# vorbis - not used in core - ffmpeg -# samplerate - not used in core - mlt -# sox - not used in core - mlt -# lame - not used in core - ffmpeg -# theora - not used in core - ffmpeg -# x264 - not used in core - ffmpeg -# faac - not used in core - mlt -# yasm - not used in core - ffmpeg -# + ffmpeg -# sdl - not used in core - ffmpeg, mlt -# + fftw -# + boost -# . m4 - from autoconf -# . autoconf - from automake -# . automake - from intltool -# . tool (libtool) - from the system -# . gettext - from intltool -# . intltool - from the system - -DEPS=" \ - synfigetl-master \ - jpeg-9b tiff-4.0.6 fftw-3.3.5 imagemagick-6.8.7 \ - ffmpeg-3.1.5 mlt-6.2.0 \ - boost-1.61.0 cairo-1.15.4 pango-1.40.3 \ - glibmm-2.50.0 xmlpp-2.40.1 " -DEPS_NATIVE="libtool-2.4.6" - -PK_DIRNAME="synfig" -PK_URL="https://github.com/synfig/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/testing" -PK_LICENSE_FILES="synfig-core/AUTHORS synfig-core/README" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core" || return 1 - if ! check_packet_function $NAME build.configure; then - ./bootstrap.sh || return 1 - CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - ./configure \ - --host=$HOST \ - --prefix=$INSTALL_PACKET_DIR \ - --sysconfdir=$INSTALL_PACKET_DIR/etc \ - --with-boost-libdir=$ENVDEPS_PACKET_DIR/lib \ - --without-opengl \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.configure - fi - make -j${THREADS} || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core" - if ! make install; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/synfigetl-debug.sh b/docker-builder-data/build/script/packet/synfigetl-debug.sh deleted file mode 100644 index 2245a5d..0000000 --- a/docker-builder-data/build/script/packet/synfigetl-debug.sh +++ /dev/null @@ -1,5 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigetl-master.sh" - -PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/debug" -PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/docker-builder-data/build/script/packet/synfigetl-master.sh b/docker-builder-data/build/script/packet/synfigetl-master.sh deleted file mode 100644 index 46678dd..0000000 --- a/docker-builder-data/build/script/packet/synfigetl-master.sh +++ /dev/null @@ -1,31 +0,0 @@ -DEPS="" -DEPS_NATIVE="libtool-2.4.6" - -PK_DIRNAME="synfig" -PK_URL="https://github.com/synfig/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/testing" -PK_LICENSE_FILES="ETL/AUTHORS ETL/README" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME/ETL" || return 1 - if ! check_packet_function $NAME build.configure; then - autoreconf --install --force || return 1 - ./configure \ - --host=$HOST \ - --prefix=$INSTALL_PACKET_DIR \ - --sysconfdir=$INSTALL_PACKET_DIR/etc \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.configure - fi - make -j${THREADS} || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME/ETL" - if ! make install; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh b/docker-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh deleted file mode 100755 index ad5cd4b..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` - -# Check if this system have JACK installed -if ! (which jackd &>/dev/null); then - # No JACK, so disable this functionality. - # (The bundled libjack won't work correctly anyway). - export SYNFIG_DISABLE_JACK=1 - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${BASE_DIR}/lib.extra/jack" -fi - -export USER_CONFIG_DIR=$HOME/.config/synfig - -export LD_LIBRARY_PATH="${BASE_DIR}/lib:${BASE_DIR}/lib64:$LD_LIBRARY_PATH" -export XDG_DATA_DIRS="${BASE_DIR}/share:$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" -export XDG_CONFIG_DIRS="$HOME/.config/synfig:$XDG_CONFIG_DIRS" -export XCURSOR_PATH="${BASE_DIR}/share/icons:$XCURSOR_PATH:/usr/local/share/icons:/usr/share/icons" -export GSETTINGS_SCHEMA_DIR="${BASE_DIR}/share/glib-2.0/schemas/" -export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb -export FONTCONFIG_PATH=/etc/fonts - -export SYNFIG_ROOT="${BASE_DIR}" -export SYNFIG_GTK_THEME="Adwaita" -export SYNFIG_MODULE_LIST="${BASE_DIR}/etc/synfig_modules.cfg" -export MLT_DATA="${BASE_DIR}/share/mlt/" -export MLT_REPOSITORY="${BASE_DIR}/lib/mlt/" - -MAGICK_DIR="$(cd .. && ls -1d "${BASE_DIR}/lib/ImageMagick-"*)" -export MAGICK_CONFIGURE_PATH="${MAGICK_DIR}/config-Q16/" -export MAGICK_CODER_MODULE_PATH="${MAGICK_DIR}/modules-Q16/coders/" -export MAGICK_CODER_FILTER_PATH="${MAGICK_DIR}/modules-Q16/filters/" - -# Create install-location-dependent config files for Pango and GDK image loaders -# We have to do this every time because its possible that SYSPREFIX has changed - -[ -e "$USER_CONFIG_DIR" ] || mkdir -p "$USER_CONFIG_DIR" - -#sed "s?@ROOTDIR@/modules?${BASE_DIR}/lib/pango/1.6.0/modules?" < $ETC_DIR/pango/pango.modules.in > $USER_CONFIG_DIR/pango/pango.modules -if [ -e ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in ]; then - export GDK_PIXBUF_MODULE_FILE="${USER_CONFIG_DIR}/gdk-pixbuf.loaders" - sed "s?@ROOTDIR@/loaders?${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders?" < ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in > $GDK_PIXBUF_MODULE_FILE -fi - -export APPIMAGE_ROOT="$BASE_DIR" -if [ ! -z "$APPIMAGE_WORKDIR" ]; then - if ! cd "$APPIMAGE_WORKDIR"; then - echo "Cannot change directory to \"$APPIMAGE_WORKDIR\" (APPIMAGE_WORKDIR)" - exit 1 - fi -fi - -if [ "$1" = "--appimage-exec" ]; then - if ! "${@:2}"; then - exit 1 - fi -elif [ -z "$2" ]; then - if ! "$BASE_DIR/bin/synfigstudio.wrapper" "$@"; then - exit 1 - fi -else - if ! "$BASE_DIR/bin/synfig" "$@"; then - exit 1 - fi -fi diff --git a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop b/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop deleted file mode 100644 index 8b6f303..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Synfig Studio -Exec=launch.sh -Icon=synfigstudio -Categories=Graphics; -MimeType=application/x-sif; diff --git a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png b/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png deleted file mode 100644 index 3f09db5..0000000 Binary files a/docker-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png and /dev/null differ diff --git a/docker-builder-data/build/script/packet/synfigstudio-appimage.sh b/docker-builder-data/build/script/packet/synfigstudio-appimage.sh deleted file mode 100644 index 9d92fae..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-appimage.sh +++ /dev/null @@ -1,72 +0,0 @@ -DEPS="synfigstudio-master" -DEPS_NATIVE="appimagekit-master" - -PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ -PK_APPDIR_NAME="synfigstudio" - -pkinstall() { - # copy files from envdeps (install requires envdeps explicit) - - local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - mkdir -p "$APPDIR/usr" - mkdir -p "$APPDIR/usr/bin" - mkdir -p "$APPDIR/usr/lib" - - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 - cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/synfigstudio.wrapper"|| return 1 - - cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.desktop" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.png" "$APPDIR/" || return 1 - cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 -} - -pkinstall_release() { - if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then - return 1 - fi - - # copy files from envdeps_release (install_release requires envdeps_release explicit) - - local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" - copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 - - mkdir -p "$APPDIR/usr/share/icons/default/128x128/apps/" - cp "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/synfig_icon.png" "$APPDIR/usr/share/icons/default/128x128/apps/synfigstudio.png" || return 1 - mkdir -p "$APPDIR/usr/share/icons/default/128x128/mimetypes/" - cp "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/sif_icon.png" "$APPDIR/usr/share/icons/default/128x128/mimetypes/application-x-sif.png" || return 1 - - # clean bin - #rm -f "$APPDIR/usr/bin/"* || return 1 - #cp "$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir/usr/bin/"* "$APPDIR/usr/bin/" || return 1 - #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/melt" "$APPDIR/usr/bin/" || return 1 - #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/identify" "$APPDIR/usr/bin/" || return 1 - #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/ffmpeg" "$APPDIR/usr/bin/" || return 1 - #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfig" "$APPDIR/usr/bin/" || return 1 - #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfigstudio" "$APPDIR/usr/bin/" || return 1 - - # clean boost - rm -f "$APPDIR/usr/lib/libboost_"* || return 1 - cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_chrono."* "$APPDIR/usr/lib/" || return 1 - cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_filesystem."* "$APPDIR/usr/lib/" || return 1 - cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_program_options."* "$APPDIR/usr/lib/" || return 1 - cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_system."* "$APPDIR/usr/lib/" || return 1 - - # clean examples - rm -rf "$APPDIR/share/synfig/examples" || return 1 - - # move jack - mkdir -p "$APPDIR/usr/lib.extra/jack" - (cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libjack"* "$APPDIR/usr/lib.extra/jack" &> /dev/null) \ - || (cp "$ENVDEPS_RELEASE_PACKET_DIR/lib64/libjack"* "$APPDIR/usr/lib.extra/jack" &> /dev/null) - rm -f "$APPDIR/usr/bin/jack"* - rm -f "$APPDIR/usr/lib/libjack"* - rm -f "$APPDIR/usr/lib64/libjack"* - - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 - tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 - rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 - - rm -rf "$APPDIR" -} diff --git a/docker-builder-data/build/script/packet/synfigstudio-debug.files b/docker-builder-data/build/script/packet/synfigstudio-debug.files deleted file mode 120000 index 4360cbb..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debug.files +++ /dev/null @@ -1 +0,0 @@ -synfigstudio-master.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debug.sh b/docker-builder-data/build/script/packet/synfigstudio-debug.sh deleted file mode 100644 index 87b01d6..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debug.sh +++ /dev/null @@ -1,6 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigstudio-master.sh" - -DEPS=`echo "$DEPS" | sed "s|synfigcore-master|synfigcore-debug|g"` -PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="origin/debug" -PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files deleted file mode 120000 index e805e8c..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files +++ /dev/null @@ -1 +0,0 @@ -synfigstudio-appimage.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh deleted file mode 100644 index af2b039..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh +++ /dev/null @@ -1,5 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigstudio-appimage.sh" - -DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` -PK_URL="https://github.com/blackwarthog/synfig.git" -PK_GIT_CHECKOUT="origin/debug" diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files deleted file mode 120000 index b812b53..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files +++ /dev/null @@ -1 +0,0 @@ -synfigstudio-nsis.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh deleted file mode 100644 index 88ba494..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh +++ /dev/null @@ -1,5 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigstudio-nsis.sh" - -DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` -PK_URL="https://github.com/blackwarthog/synfig.git" -PK_GIT_CHECKOUT="origin/debug" diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugportable.files b/docker-builder-data/build/script/packet/synfigstudio-debugportable.files deleted file mode 120000 index 460bddf..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugportable.files +++ /dev/null @@ -1 +0,0 @@ -synfigstudio-portable.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugportable.sh b/docker-builder-data/build/script/packet/synfigstudio-debugportable.sh deleted file mode 100644 index 8c33f9d..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-debugportable.sh +++ /dev/null @@ -1,2 +0,0 @@ -source "$PACKET_SCRIPT_DIR/synfigstudio-portable.sh" -DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` diff --git a/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache b/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache deleted file mode 100644 index 6983509..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache +++ /dev/null @@ -1,118 +0,0 @@ -# GdkPixbuf Image Loader Modules file -# Automatically generated file, do not edit -# Created by gdk-pixbuf-query-loaders.exe from gdk-pixbuf-2.36.0 -# -# LoaderDir = ../lib/gdk-pixbuf-2.0/2.10.0/loaders/ -# -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll" -"ani" 4 "gdk-pixbuf" "Windows animated cursor" "LGPL" -"application/x-navi-animation" "" -"ani" "" -"RIFF ACON" " xxxx " 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-bmp.dll" -"bmp" 5 "gdk-pixbuf" "BMP" "LGPL" -"image/bmp" "image/x-bmp" "image/x-MS-bmp" "" -"bmp" "" -"BM" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-emf.dll" -"emf" 4 "gdk-pixbuf" "EMF" "LGPL" -"application/emf" "application/x-emf" "image/x-emf" "image/x-mgx-emf" "" -"emf" "" -"\001" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-gif.dll" -"gif" 5 "gdk-pixbuf" "GIF" "LGPL" -"image/gif" "" -"gif" "" -"GIF8" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-ico.dll" -"ico" 4 "gdk-pixbuf" "Windows icon" "LGPL" -"image/x-icon" "image/x-ico" "" -"ico" "cur" "" -" \001 " "zz znz" 100 -" \002 " "zz znz" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-jpeg.dll" -"jpeg" 5 "gdk-pixbuf" "JPEG" "LGPL" -"image/jpeg" "" -"jpeg" "jpe" "jpg" "" -"\377\330" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-tiff.dll" -"tiff" 5 "gdk-pixbuf" "TIFF" "LGPL" -"image/tiff" "" -"tiff" "tif" "" -"MM *" " z " 100 -"II* " " z" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-wmf.dll" -"wmf" 4 "gdk-pixbuf" "WMF" "LGPL" -"image/x-wmf" "" -"wmf" "apm" "" -"\327\315\306\232" "" 100 -"\001" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll" -"icns" 4 "gdk-pixbuf" "MacOS X icon" "GPL" -"image/x-icns" "" -"icns" "" -"icns" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll" -"png" 5 "gdk-pixbuf" "PNG" "LGPL" -"image/png" "" -"png" "" -"\211PNG\r\n\032\n" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll" -"pnm" 4 "gdk-pixbuf" "PNM/PBM/PGM/PPM" "LGPL" -"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" -"pnm" "pbm" "pgm" "ppm" "" -"P1" "" 100 -"P2" "" 100 -"P3" "" 100 -"P4" "" 100 -"P5" "" 100 -"P6" "" 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll" -"qtif" 4 "gdk-pixbuf" "QuickTime" "LGPL" -"image/x-quicktime" "image/qtif" "" -"qtif" "qif" "" -"abcdidsc" "xxxx " 100 -"abcdidat" "xxxx " 100 - -"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll" -"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL" -"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" "" -"svg" "svgz" "svg.gz" "" -" > "$TARGET_INSTALL" - foreachfile "$FILE" pkfunc_register_file - echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" - else - echo "File \"/oname=${WIN_FILE:2}\" \"${WIN_FILE:2}\"" >> "$TARGET_INSTALL" - echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" - fi - fi -} - -# download portable python and pass downloaded files through all build phases -pkdownload() { - wget -c --no-check-certificate "$PK_PYTHON_URL" -O "$PK_PYTHON_ARCHIVE" || return 1 -} - -pkunpack() { - unzip "$DOWNLOAD_PACKET_DIR/$PK_PYTHON_ARCHIVE" || return 1 -} - -pkinstall() { - copy "$BUILD_PACKET_DIR" "$INSTALL_PACKET_DIR" || return 1 -} - -pkinstall_release() { - local LOCAL_INSTALLER_DIR="$INSTALL_RELEASE_PACKET_DIR/installer" - local LOCAL_CACHE_DIR="$INSTALL_RELEASE_PACKET_DIR/cache" - - # create temporary dir - rm -rf "$LOCAL_INSTALLER_DIR" - mkdir -p "$LOCAL_INSTALLER_DIR" - cd "$LOCAL_INSTALLER_DIR" || return 1 - - # copy files - copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/lib/" "./bin/lib/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/share/" "./bin/share/" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/"*.dll "./bin/" || return 1 - for FILE in animate composite convert ffmpeg ffprobe gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders gio-querymodules melt sox synfig synfigstudio; do - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/${FILE}.exe" "./bin/" || return 1 - done - copy "$ENVDEPS_RELEASE_PACKET_DIR/etc/" "./etc/" || return 1 - [ -d "./lib/gdk-pixbuf-2.0/2.10.0/loaders" ] || mkdir -p "./lib/gdk-pixbuf-2.0/2.10.0/loaders" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders/"*.dll "./lib/gdk-pixbuf-2.0/2.10.0/loaders" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" "./lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" || return 1 - [ -d "./lib/gtk-3.0/3.0.0/immodules" ] || mkdir -p "./lib/gtk-3.0/3.0.0/immodules" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gtk-3.0/3.0.0/immodules/"*.dll "./lib/gtk-3.0/3.0.0/immodules" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/lib/ImageMagick-6.8.7/" "./lib/ImageMagick-6.8.7/" || return 1 - [ -d "./lib/synfig/modules" ] || mkdir -p "./lib/synfig/modules" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/synfig/modules/"*.dll "./lib/synfig/modules" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/"*.dll "./lib" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/license/" "./license/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/fontconfig/" "./share/fontconfig/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/glib-2.0/schemas/" "./share/glib-2.0/schemas/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/gtk-3.0/" "./share/gtk-3.0/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/icons/" "./share/icons/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/ImageMagick-6/" "./share/ImageMagick-6/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/locale/" "./share/locale/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime/" "./share/mime/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime-info/" "./share/mime-info/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/" "./share/pixmaps/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/synfig/" "./share/synfig/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/themes/" "./share/xml/" || return 1 - - # move examples - mv "./share/synfig/examples" "./" || return 1 - - # add portable python - copy "$INSTALL_PACKET_DIR/$PK_PYTHON_DIRNAME" "$LOCAL_INSTALLER_DIR/python" || return 1 - cd "$LOCAL_INSTALLER_DIR" || return 1 - - # get version - local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) - local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) - local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) - local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) - - # create file lists - echo "create file lists" - touch files-install.nsh - touch files-ffmpeg-install.nsh - touch files-examples-install.nsh - touch files-uninstall.nsh - pkfunc_register_file . - echo "created" - - # copy NSIS configuration - cp "$FILES_PACKET_DIR/synfigstudio.nsi" "./" || return 1 - - # create config.nsh (see opentoons.nsi) - cat > config.nsh << EOF -!define PK_NAME "synfigstudio" -!define PK_DIR_NAME "Synfig" -!define PK_NAME_FULL "Synfig Studio (${ARCH}bit)" -!define PK_ARCH "${ARCH}" -!define PK_VERSION "${LOCAL_VERSION2}" -!define PK_VERSION_FULL "${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}" -!define PK_EXECUTABLE "bin\\synfigstudio.exe" -!define PK_ICON "share\\pixmaps\\synfig_icon.ico" -!define PK_DOCUMENT_ICON "share\\pixmaps\\sif_icon.ico" -!define PK_LICENSE ".\\license\\license-synfigstudio-master" -EOF - - # let's go - makensis synfigstudio.nsi || return 1 - - # remove temporary dir - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - mv "$LOCAL_INSTALLER_DIR"/*.exe ./ || return 1 - rm -rf "$LOCAL_INSTALLER_DIR" -} diff --git a/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat b/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat deleted file mode 100755 index 713bb57..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat +++ /dev/null @@ -1,3 +0,0 @@ -cd "%~dp0\" -set SYNFIG_USER_SETTINGS=%~dp0\config -start "" "%~dp0\bin\synfigstudio.exe" diff --git a/docker-builder-data/build/script/packet/synfigstudio-portable.sh b/docker-builder-data/build/script/packet/synfigstudio-portable.sh deleted file mode 100644 index 6e6411c..0000000 --- a/docker-builder-data/build/script/packet/synfigstudio-portable.sh +++ /dev/null @@ -1,80 +0,0 @@ -DEPS="synfigstudio-master" - -PK_PYTHON_DIRNAME="python" -PK_PYTHON_ARCHIVE="portable-python-3.2.5.1.zip" -PK_PYTHON_URL="https://download.tuxfamily.org/synfig/packages/sources/$PK_PYTHON_ARCHIVE" - -# download portable python and pass downloaded files through all build phases -pkdownload() { - wget -c --no-check-certificate "$PK_PYTHON_URL" -O "$PK_PYTHON_ARCHIVE" || return 1 -} - -pkunpack() { - unzip "$DOWNLOAD_PACKET_DIR/$PK_PYTHON_ARCHIVE" || return 1 -} - -pkinstall() { - copy "$BUILD_PACKET_DIR" "$INSTALL_PACKET_DIR" || return 1 -} - -pkinstall_release() { - # create temporary dir - rm -rf "$INSTALL_RELEASE_PACKET_DIR/portable" - mkdir -p "$INSTALL_RELEASE_PACKET_DIR/portable" - cd "$INSTALL_RELEASE_PACKET_DIR/portable" || return 1 - - # copy files - copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/lib/" "./bin/lib/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/share/" "./bin/share/" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/"*.dll "./bin/" || return 1 - for FILE in animate composite convert ffmpeg ffprobe gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders gio-querymodules melt sox synfig synfigstudio; do - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/${FILE}.exe" "./bin/" || return 1 - done - copy "$ENVDEPS_RELEASE_PACKET_DIR/etc/" "./etc/" || return 1 - [ -d "./lib/gdk-pixbuf-2.0/2.10.0/loaders" ] || mkdir -p "./lib/gdk-pixbuf-2.0/2.10.0/loaders" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders/"*.dll "./lib/gdk-pixbuf-2.0/2.10.0/loaders" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" "./lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" || return 1 - [ -d "./lib/gtk-3.0/3.0.0/immodules" ] || mkdir -p "./lib/gtk-3.0/3.0.0/immodules" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gtk-3.0/3.0.0/immodules/"*.dll "./lib/gtk-3.0/3.0.0/immodules" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/lib/ImageMagick-6.8.7/" "./lib/ImageMagick-6.8.7/" || return 1 - [ -d "./lib/synfig/modules" ] || mkdir -p "./lib/synfig/modules" - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/synfig/modules/"*.dll "./lib/synfig/modules" || return 1 - cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/"*.dll "./lib" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/license/" "./license/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/fontconfig/" "./share/fontconfig/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/glib-2.0/schemas/" "./share/glib-2.0/schemas/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/gtk-3.0/" "./share/gtk-3.0/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/icons/" "./share/icons/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/ImageMagick-6/" "./share/ImageMagick-6/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/locale/" "./share/locale/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime/" "./share/mime/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime-info/" "./share/mime-info/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/" "./share/pixmaps/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/synfig/" "./share/synfig/" || return 1 - copy "$ENVDEPS_RELEASE_PACKET_DIR/share/themes/" "./share/xml/" || return 1 - - # move examples - mv "./share/synfig/examples" "./" || return 1 - - # add portable python - copy "$INSTALL_PACKET_DIR/$PK_PYTHON_DIRNAME" "./python" || return 1 - - #config directory - mkdir "./config" - - # get version - local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) - local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) - local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) - local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) - - # copy NSIS configuration - cp "$FILES_PACKET_DIR/synfigstudio.bat" "./" || return 1 - - # let's go - zip -r "../synfigstudio-${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}.zip" ./ || return 1 - - # remove temporary dir - cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 - rm -rf "portable" -} diff --git a/docker-builder-data/build/script/packet/theora-1.1.1.files/configure.patch b/docker-builder-data/build/script/packet/theora-1.1.1.files/configure.patch deleted file mode 100644 index 14e725b..0000000 --- a/docker-builder-data/build/script/packet/theora-1.1.1.files/configure.patch +++ /dev/null @@ -1,4 +0,0 @@ -8628c8628 -< archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then ---- -> archive_expsym_cmds='if [[ "x`$SED 1q $export_symbols`" = xEXPORTS* ]]; then diff --git a/docker-builder-data/build/script/packet/theora-1.1.1.sh b/docker-builder-data/build/script/packet/theora-1.1.1.sh deleted file mode 100644 index bbf280c..0000000 --- a/docker-builder-data/build/script/packet/theora-1.1.1.sh +++ /dev/null @@ -1,27 +0,0 @@ -DEPS="ogg-1.3.2" - -PK_DIRNAME="libtheora-1.1.1" -PK_ARCHIVE="$PK_DIRNAME.tar.bz2" -PK_URL="https://downloads.xiph.org/releases/theora/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS="--disable-examples" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if ! check_packet_function $NAME build.cunfigure; then - cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/configure" . - patch configure "$FILES_PACKET_DIR/configure.patch" - CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - ./configure \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.cunfigure - fi - if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ - make -j${THREADS}; 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 deleted file mode 100644 index f2c2a5d..0000000 --- a/docker-builder-data/build/script/packet/tiff-4.0.6.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="jpeg-9b" - -PK_DIRNAME="tiff-4.0.6" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://download.osgeo.org/libtiff/$PK_ARCHIVE" - -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 deleted file mode 100644 index d17a0f6..0000000 --- a/docker-builder-data/build/script/packet/usb-1.0.20.sh +++ /dev/null @@ -1,22 +0,0 @@ -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-pkall-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/vorbis-1.3.5.sh b/docker-builder-data/build/script/packet/vorbis-1.3.5.sh deleted file mode 100644 index 287f93b..0000000 --- a/docker-builder-data/build/script/packet/vorbis-1.3.5.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="ogg-1.3.2" - -PK_DIRNAME="libvorbis-1.3.5" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="https://downloads.xiph.org/releases/vorbis/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/wxphoenix-master.sh b/docker-builder-data/build/script/packet/wxphoenix-master.sh deleted file mode 100644 index 900cca0..0000000 --- a/docker-builder-data/build/script/packet/wxphoenix-master.sh +++ /dev/null @@ -1,48 +0,0 @@ -# NB: version of doxygen should be EQUAL to 1.8.8 - not newer, not older - -DEPS="python-3.6.0 doxygen-1.8.8 python3requests-master gstreamerpluginsbase-0.10.36 gtk-3.22.12 adwaitaicontheme-3.24.0 gnomethemesstandard-3.22.3" - -PK_DIRNAME="Phoenix" -PK_URL="https://github.com/wxWidgets/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="tags/wxPython-4.0.0a2" - -PK_LICENSE_FILES=" \ - ext/wxWidgets/docs/readme.txt \ - ext/wxWidgets/docs/preamble.txt \ - ext/wxWidgets/docs/licence.txt \ - ext/wxWidgets/docs/licendoc.txt \ - ext/wxWidgets/docs/gpl.txt \ - ext/wxWidgets/docs/lgpl.txt \ - ext/wxWidgets/docs/xserver.txt " - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if [ ! -f wscript.orig ]; then - cp wscript wscript.orig - grep -v _html2.py wscript.orig > wscript - fi - PYTHONHOME=$ENVDEPS_PACKET_DIR \ - DOXYGEN=$ENVDEPS_PACKET_DIR/bin/doxygen \ - python3 build.py 3.6 \ - --gtk3 \ - --release \ - -j8 \ - --extra_setup=--prefix=$INSTALL_PACKET_DIR \ - dox etg sip build \ - || return 1 -} - -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - rm -rf $INSTALL_PACKET_DIR - mkdir -p $INSTALL_PACKET_DIR - PYTHONHOME=$ENVDEPS_PACKET_DIR python3 build.py 3.6 \ - --gtk3 \ - --release \ - -j8 \ - --extra_setup=--prefix=$INSTALL_PACKET_DIR \ - install \ - || return 1 -} diff --git a/docker-builder-data/build/script/packet/x264-master.sh b/docker-builder-data/build/script/packet/x264-master.sh deleted file mode 100644 index 62dc938..0000000 --- a/docker-builder-data/build/script/packet/x264-master.sh +++ /dev/null @@ -1,23 +0,0 @@ -DEPS_NATIVE="yasm-1.3.0" - -PK_DIRNAME="x264" -PK_URL="http://git.videolan.org/git/$PK_DIRNAME.git" -PK_GIT_CHECKOUT="d32d7bf1c6923a42cbd5ac2fd540ecbb009ba681" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - - if ! check_packet_function $NAME build.cunfigure; then - AS=yasm ./configure \ - $PK_CONFIGURE_OPTIONS_DEFAULT \ - $PK_CONFIGURE_OPTIONS \ - || return 1 - set_done $NAME build.cunfigure - fi - - if ! AS=yasm make -j${THREADS}; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/xcb-1.12.sh b/docker-builder-data/build/script/packet/xcb-1.12.sh deleted file mode 100644 index 5b9c13f..0000000 --- a/docker-builder-data/build/script/packet/xcb-1.12.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcbproto-1.12" - -PK_DIRNAME="libxcb-1.12" -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/xcbfull-1.12.sh b/docker-builder-data/build/script/packet/xcbfull-1.12.sh deleted file mode 100644 index 1982d65..0000000 --- a/docker-builder-data/build/script/packet/xcbfull-1.12.sh +++ /dev/null @@ -1 +0,0 @@ -DEPS="xcb-1.12 xcbproto-1.12 xcbutil-0.4.0 xcbutilcursor-0.1.3 xcbutilerrors-1.0 xcbutilimage-0.4.0 xcbutilkeysyms-0.4.0 xcbutilrenderutil-0.3.9 xcbutilwm-0.4.1" diff --git a/docker-builder-data/build/script/packet/xcbproto-1.12.sh b/docker-builder-data/build/script/packet/xcbproto-1.12.sh deleted file mode 100644 index 7c8f775..0000000 --- a/docker-builder-data/build/script/packet/xcbproto-1.12.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="" - -PK_DIRNAME="xcb-proto-1.12" -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/xcbutil-0.4.0.sh b/docker-builder-data/build/script/packet/xcbutil-0.4.0.sh deleted file mode 100644 index 42a8313..0000000 --- a/docker-builder-data/build/script/packet/xcbutil-0.4.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12" - -PK_DIRNAME="xcb-util-0.4.0" -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/xcbutilcursor-0.1.3.sh b/docker-builder-data/build/script/packet/xcbutilcursor-0.1.3.sh deleted file mode 100644 index fd6ecda..0000000 --- a/docker-builder-data/build/script/packet/xcbutilcursor-0.1.3.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0 xcbutilrenderutil-0.3.9 xcbutilimage-0.4.0" - -PK_DIRNAME="xcb-util-cursor-0.1.3" -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/xcbutilerrors-1.0.sh b/docker-builder-data/build/script/packet/xcbutilerrors-1.0.sh deleted file mode 100644 index 12a30fd..0000000 --- a/docker-builder-data/build/script/packet/xcbutilerrors-1.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0" - -PK_DIRNAME="xcb-util-errors-1.0" -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/xcbutilimage-0.4.0.sh b/docker-builder-data/build/script/packet/xcbutilimage-0.4.0.sh deleted file mode 100644 index 7c1a96e..0000000 --- a/docker-builder-data/build/script/packet/xcbutilimage-0.4.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0" - -PK_DIRNAME="xcb-util-image-0.4.0" -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/xcbutilkeysyms-0.4.0.files/COPYING b/docker-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.files/COPYING deleted file mode 100644 index 3ab5779..0000000 --- a/docker-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.files/COPYING +++ /dev/null @@ -1,33 +0,0 @@ - - File: keysyms/keysyms.c - -/* - * Copyright © 2008 Ian Osgood - * Copyright © 2008 Jamey Sharp - * Copyright © 2008 Josh Triplett - * Copyright © 2008 Ulrich Eckhardt - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, copy, - * modify, merge, publish, distribute, sublicense, and/or sell copies - * of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY - * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * Except as contained in this notice, the names of the authors or - * their institutions shall not be used in advertising or otherwise to - * promote the sale, use or other dealings in this Software without - * prior written authorization from the authors. - */ diff --git a/docker-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh b/docker-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh deleted file mode 100644 index cc9e744..0000000 --- a/docker-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0" - -PK_DIRNAME="xcb-util-keysyms-0.4.0" -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/xcbutilrenderutil-0.3.9.sh b/docker-builder-data/build/script/packet/xcbutilrenderutil-0.3.9.sh deleted file mode 100644 index 818741b..0000000 --- a/docker-builder-data/build/script/packet/xcbutilrenderutil-0.3.9.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0" - -PK_DIRNAME="xcb-util-renderutil-0.3.9" -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/xcbutilwm-0.4.1.sh b/docker-builder-data/build/script/packet/xcbutilwm-0.4.1.sh deleted file mode 100644 index c281fb7..0000000 --- a/docker-builder-data/build/script/packet/xcbutilwm-0.4.1.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xcb-1.12 xcbutil-0.4.0" - -PK_DIRNAME="xcb-util-wm-0.4.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/xml-2.9.4.sh b/docker-builder-data/build/script/packet/xml-2.9.4.sh deleted file mode 100644 index a7ca6c9..0000000 --- a/docker-builder-data/build/script/packet/xml-2.9.4.sh +++ /dev/null @@ -1,19 +0,0 @@ -DEPS="" - -PK_DIRNAME="libxml2-2.9.4" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://xmlsoft.org/sources/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - if ! check_packet_function $NAME build.cunfigure; then - ./autogen.sh --host=$HOST --prefix=$INSTALL_PACKET_DIR --without-python || return 1 - set_done $NAME build.cunfigure - fi - - if ! make -j${THREADS}; then - return 1 - fi -} diff --git a/docker-builder-data/build/script/packet/xmlpp-2.40.1.sh b/docker-builder-data/build/script/packet/xmlpp-2.40.1.sh deleted file mode 100644 index bcef829..0000000 --- a/docker-builder-data/build/script/packet/xmlpp-2.40.1.sh +++ /dev/null @@ -1,7 +0,0 @@ -DEPS="xml-2.9.4 glibmm-2.50.0" - -PK_DIRNAME="libxml++-2.40.1" -PK_ARCHIVE="$PK_DIRNAME.tar.xz" -PK_URL="https://download.gnome.org/sources/libxml++/2.40/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/docker-builder-data/build/script/packet/yasm-1.3.0.sh b/docker-builder-data/build/script/packet/yasm-1.3.0.sh deleted file mode 100644 index 999b2bd..0000000 --- a/docker-builder-data/build/script/packet/yasm-1.3.0.sh +++ /dev/null @@ -1,11 +0,0 @@ -DEPS="" - -PK_DIRNAME="yasm-1.3.0" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://www.tortall.net/projects/yasm/releases/$PK_ARCHIVE" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -pkinstall_release() { - return 0 -} \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw b/docker-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw deleted file mode 100644 index 455b08e..0000000 --- a/docker-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw +++ /dev/null @@ -1,152 +0,0 @@ -# Makefile for zlib, derived from Makefile.dj2. -# Modified for mingw32 by C. Spieler, 6/16/98. -# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003. -# Last updated: Mar 2012. -# Tested under Cygwin and MinGW. - -# Copyright (C) 1995-2003 Jean-loup Gailly. -# For conditions of distribution and use, see copyright notice in zlib.h - -# To compile, or to compile and test, type from the top level zlib directory: -# -# make -fwin32/Makefile.gcc; make test testdll -fwin32/Makefile.gcc -# -# To use the asm code, type: -# cp contrib/asm?86/match.S ./match.S -# make LOC=-DASMV OBJA=match.o -fwin32/Makefile.gcc -# -# To install libz.a, zconf.h and zlib.h in the system directories, type: -# -# make install -fwin32/Makefile.gcc -# -# BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set. -# -# To install the shared lib, append SHARED_MODE=1 to the make command : -# -# make install -fwin32/Makefile.gcc SHARED_MODE=1 - -# Note: -# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN), -# the DLL name should be changed from "zlib1.dll". - -STATICLIB = libz.a -SHAREDLIB = zlib1.dll -IMPLIB = libz.dll.a - -# -# Set to 1 if shared object needs to be installed -# -SHARED_MODE=0 - -#LOC = -DASMV -#LOC = -DZLIB_DEBUG -g - -PREFIX = -#CC = $(PREFIX)gcc -CFLAGS = $(LOC) -O3 -Wall - -AS = $(CC) -ASFLAGS = $(LOC) -Wall - -LD = $(CC) -LDFLAGS = $(LOC) - -#AR = $(PREFIX)ar -ARFLAGS = rcs - -#RC = $(PREFIX)windres -RCFLAGS = --define GCC_WINDRES - -#STRIP = $(PREFIX)strip - -CP = cp -fp -# If GNU install is available, replace $(CP) with install. -INSTALL = $(CP) -RM = rm -f - -prefix ?= /usr/local -exec_prefix = $(prefix) - -OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ - gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o -OBJA = - -all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) - -.c.o: - $(CC) $(CFLAGS) -c -o $@ $< - -.S.o: - $(AS) $(ASFLAGS) -c -o $@ $< - -$(STATICLIB): $(OBJS) $(OBJA) - $(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA) - -$(IMPLIB): $(SHAREDLIB) - -$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o - $(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ - -o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o - $(STRIP) $@ - -zlibrc.o: win32/zlib1.rc - $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc - -.PHONY: install uninstall clean - -install: zlib.h zconf.h $(SHAREDLIB) $(IMPLIB) - @if test -z "$(DESTDIR)$(INCLUDE_PATH)" -o -z "$(DESTDIR)$(LIBRARY_PATH)" -o -z "$(DESTDIR)$(BINARY_PATH)"; then \ - echo INCLUDE_PATH, LIBRARY_PATH, and BINARY_PATH must be specified; \ - exit 1; \ - fi - -@mkdir -p '$(DESTDIR)$(INCLUDE_PATH)' - -@mkdir -p '$(DESTDIR)$(LIBRARY_PATH)' '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig - -if [ "$(SHARED_MODE)" = "1" ]; then \ - mkdir -p '$(DESTDIR)$(BINARY_PATH)'; \ - $(INSTALL) $(SHAREDLIB) '$(DESTDIR)$(BINARY_PATH)'; \ - $(INSTALL) $(IMPLIB) '$(DESTDIR)$(LIBRARY_PATH)'; \ - fi - -$(INSTALL) zlib.h '$(DESTDIR)$(INCLUDE_PATH)' - -$(INSTALL) zconf.h '$(DESTDIR)$(INCLUDE_PATH)' - -$(INSTALL) $(STATICLIB) '$(DESTDIR)$(LIBRARY_PATH)' - sed \ - -e 's|@prefix@|${prefix}|g' \ - -e 's|@exec_prefix@|${exec_prefix}|g' \ - -e 's|@libdir@|$(LIBRARY_PATH)|g' \ - -e 's|@sharedlibdir@|$(LIBRARY_PATH)|g' \ - -e 's|@includedir@|$(INCLUDE_PATH)|g' \ - -e 's|@VERSION@|'`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' zlib.h`'|g' \ - zlib.pc.in > '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig/zlib.pc - -uninstall: - -if [ "$(SHARED_MODE)" = "1" ]; then \ - $(RM) '$(DESTDIR)$(BINARY_PATH)'/$(SHAREDLIB); \ - $(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(IMPLIB); \ - fi - -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zlib.h - -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zconf.h - -$(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(STATICLIB) - -clean: - -$(RM) $(STATICLIB) - -$(RM) $(SHAREDLIB) - -$(RM) $(IMPLIB) - -$(RM) *.o - -$(RM) *.exe - -$(RM) foo.gz - -adler32.o: zlib.h zconf.h -compress.o: zlib.h zconf.h -crc32.o: crc32.h zlib.h zconf.h -deflate.o: deflate.h zutil.h zlib.h zconf.h -gzclose.o: zlib.h zconf.h gzguts.h -gzlib.o: zlib.h zconf.h gzguts.h -gzread.o: zlib.h zconf.h gzguts.h -gzwrite.o: zlib.h zconf.h gzguts.h -inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h -inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h -infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h -inftrees.o: zutil.h zlib.h zconf.h inftrees.h -trees.o: deflate.h zutil.h zlib.h zconf.h trees.h -uncompr.o: zlib.h zconf.h -zutil.o: zutil.h zlib.h zconf.h diff --git a/docker-builder-data/build/script/packet/zlib-1.2.11.sh b/docker-builder-data/build/script/packet/zlib-1.2.11.sh deleted file mode 100644 index ed689f4..0000000 --- a/docker-builder-data/build/script/packet/zlib-1.2.11.sh +++ /dev/null @@ -1,25 +0,0 @@ -DEPS="" - -PK_DIRNAME="zlib-1.2.11" -PK_ARCHIVE="$PK_DIRNAME.tar.gz" -PK_URL="http://zlib.net/$PK_ARCHIVE" - -PK_CONFIGURE_OPTIONS_DEFAULT="--prefix=$INSTALL_PACKET_DIR --shared" -PK_LICENSE_FILES="README" - -source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh - -if [ "$PLATFORM" = "win" ]; then -pkbuild() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 - cp "$FILES_PACKET_DIR/Makefile.mingw" . - make -fMakefile.mingw SHARED_MODE=1 -j${THREADS} || return 1 -} -pkinstall() { - cd "$BUILD_PACKET_DIR/$PK_DIRNAME" - BINARY_PATH="$INSTALL_PACKET_DIR/bin" \ - INCLUDE_PATH="$INSTALL_PACKET_DIR/include" \ - LIBRARY_PATH="$INSTALL_PACKET_DIR/lib" \ - make -fMakefile.mingw SHARED_MODE=1 install || return 1 -} -fi diff --git a/docker-builder-data/build/script/toolchain/none.sh b/docker-builder-data/build/script/toolchain/none.sh deleted file mode 100755 index 85efdc0..0000000 --- a/docker-builder-data/build/script/toolchain/none.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -vars_clear "TC_" - -# set vars which used explicitly in function manager.sh:set_environment_vars() - -export TC_HOST="" - -export TC_PATH="$INITIAL_PATH" -export TC_LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$INITIAL_LD_LIBRARY_PATH" -export TC_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$INITIAL_LIBRARY_PATH" - -export TC_CC=`which cc` -export TC_CXX=`which c++` - -export TC_LDFLAGS="$INITIAL_LDFLAGS" -export TC_CFLAGS="$INITIAL_CFLAGS" -export TC_CPPFLAGS="$INITIAL_CPPFLAGS" -export TC_CXXFLAGS="$INITIAL_CXXFLAGS" - -export TC_PKG_CONFIG_PATH="$INITIAL_PKG_CONFIG_PATH:/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib/i586-linux-gnu/pkgconfig:/usr/lib/i686-linux-gnu/pkgconfig" -export TC_PKG_CONFIG_LIBDIR="$INITIAL_PKG_CONFIG_LIBDIR:/usr/lib:/usr/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib/i686-linux-gnu" -export TC_XDG_DATA_DIRS="$INITIAL_XDG_DATA_DIRS" - -export TC_ACLOCAL_PATH="/usr/share/aclocal" -if [ ! -z "$INITIAL_ACLOCAL_PATH" ]; then - export TC_ACLOCAL_PATH="$INITIAL_ACLOCAL_PATH:$TC_ACLOCAL_PATH" -fi - -export TC_CMAKE_INCLUDE_PATH="$INITIAL_CMAKE_INCLUDE_PATH" -export TC_CMAKE_LIBRARY_PATH="$INITIAL_CMAKE_LIBRARY_PATH" - - - diff --git a/docker-builder-data/build/script/toolchain/win-32.sh b/docker-builder-data/build/script/toolchain/win-32.sh deleted file mode 100755 index 89e5ac2..0000000 --- a/docker-builder-data/build/script/toolchain/win-32.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -export TC_HOST="i686-w64-mingw32" -source "$TOOLCHAIN_SCRIPT_DIR/win-common.sh" \ No newline at end of file diff --git a/docker-builder-data/build/script/toolchain/win-64.sh b/docker-builder-data/build/script/toolchain/win-64.sh deleted file mode 100755 index 159ea48..0000000 --- a/docker-builder-data/build/script/toolchain/win-64.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -export TC_HOST="x86_64-w64-mingw32" -source "$TOOLCHAIN_SCRIPT_DIR/win-common.sh" \ No newline at end of file diff --git a/docker-builder-data/build/script/toolchain/win-common.sh b/docker-builder-data/build/script/toolchain/win-common.sh deleted file mode 100755 index 92d5dad..0000000 --- a/docker-builder-data/build/script/toolchain/win-common.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -# TC_HOST should be set before inclusion of this file -# -# Optional c/c++ flags from Fedora MinGW: -# -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -# -# -Wall -g - don't need -# -02 -fexceptions - should be defined in packet if need -# -pipe - not compatible with windres (used in lzma packet) -# -# -Wp,-D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -# - may be better, but work fine without it, will added when any problem raised -# -# So no extra options for now -TC_EXTRA_CPP_OPTIONS= - -TC_PREFIX="/usr/local/$TC_HOST/sys-root" -TC_BINPREFIX="$TC_PREFIX/bin/$TC_HOST" - -export TC_PATH="$TC_PREFIX/bin:$INITIAL_PATH" -export TC_LD_LIBRARY_PATH="$TC_PREFIX/lib:/usr/local/lib:/usr/local/lib64:$INITIAL_LD_LIBRARY_PATH" - -export TC_ADDR2LINE=$TC_BINPREFIX-addr2line -export TC_AS=$TC_BINPREFIX-as -export TC_AR=$TC_BINPREFIX-ar -export TC_CC=$TC_BINPREFIX-gcc -export TC_CXXFILT=$TC_BINPREFIX-c++filt -export TC_CXX=$TC_BINPREFIX-c++ -export TC_CPP=$TC_BINPREFIX-cpp -export TC_DLLTOOL=$TC_BINPREFIX-dlltool -export TC_DLLWRAP=$TC_BINPREFIX-dllwrap -export TC_ELFEDIT=$TC_BINPREFIX-elfedit -export TC_FORTRAN=$TC_BINPREFIX-gfortran -export TC_GXX=$TC_BINPREFIX-g++ -export TC_GCC=$TC_BINPREFIX-gcc -export TC_GCOV=$TC_BINPREFIX-gcov -export TC_GCOV_TOOL=$TC_BINPREFIX-gcov-tool -export TC_GFORTRAN=$TC_BINPREFIX-gfortran -export TC_GPROF=$TC_BINPREFIX-gprof -export TC_LD=$TC_BINPREFIX-ld -export TC_LD_BFD=$TC_BINPREFIX-ld.bfd -export TC_NM=$TC_BINPREFIX-nm -export TC_OBJCOPY=$TC_BINPREFIX-objcopy -export TC_OBJDUMP=$TC_BINPREFIX-objdump -export TC_RANLIB=$TC_BINPREFIX-ranlib -export TC_READELF=$TC_BINPREFIX-readelf -export TC_SIZE=$TC_BINPREFIX-size -export TC_STRINGS=$TC_BINPREFIX-strings -export TC_STRIP=$TC_BINPREFIX-strip -export TC_WINDMC=$TC_BINPREFIX-windmc -export TC_RC=$TC_BINPREFIX-windres -export TC_WINDRES=$TC_BINPREFIX-windres - -export TC_LDFLAGS=" -L$TC_PREFIX/lib $INITIAL_LDFLAGS" -export TC_CFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CFLAGS" -export TC_CPPFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CPPFLAGS" -export TC_CXXFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CXXFLAGS" -export TC_PKG_CONFIG_PATH="$TC_PREFIX/lib/pkgconfig" -export TC_PKG_CONFIG_LIBDIR="$TC_PREFIX/lib" -export TC_XDG_DATA_DIRS="$INITIAL_XDG_DATA_DIRS" -export TC_CMAKE_INCLUDE_PATH="$TC_PREFIX/include:$INITIAL_CMAKE_INCLUDE_PATH" -export TC_CMAKE_LIBRARY_PATH="$TC_PREFIX/lib:$INITIAL_CMAKE_LIBRARY_PATH" - -unset TC_BINPREFIX -unset TC_PREFIX -unset TC_EXTRA_CPP_OPTIONS diff --git a/docker/debian-7-32bit/.gitignore b/docker/debian-7-32bit/.gitignore deleted file mode 100644 index b638cbe..0000000 --- a/docker/debian-7-32bit/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/debian-wheezy-i386.tar.gz diff --git a/docker/debian-7-32bit/Dockerfile b/docker/debian-7-32bit/Dockerfile deleted file mode 100644 index 0dddebb..0000000 --- a/docker/debian-7-32bit/Dockerfile +++ /dev/null @@ -1,71 +0,0 @@ -FROM morevnaproject/debian-i386:wheezy -ARG ALL_PROXY - -# set available apt sources -COPY files/sources.list /etc/apt/sources.list - -# update -RUN apt-get -yq update - -# upgrade -RUN apt-get -yq upgrade - -# update ca-certificates -RUN apt-get -yq purge ca-certificates -RUN apt-get -yq install ca-certificates - -# install tools -RUN apt-get -yq install bash sudo pkg-config g++ make wget bzip2 - -# upgrade gcc -RUN apt-get -yq install libgmp-dev libmpfr-dev libmpc-dev gcc-multilib -COPY files/install-gcc.sh / -RUN setarch i686 /install-gcc.sh - -# install tools -RUN apt-get -yq install csh -RUN apt-get -yq install xsltproc -RUN apt-get -yq install m4 -RUN apt-get -yq install automake -RUN apt-get -yq install intltool -RUN apt-get -yq install libtool -RUN apt-get -yq install git - -# qt deps see: http://doc.qt.io/qt-5/linux-requirements.html -RUN apt-get -yq install libxrender-dev -RUN apt-get -yq install libfontconfig1-dev -RUN apt-get -yq install libfreetype6-dev -RUN apt-get -yq install libxi-dev -RUN apt-get -yq install libxext-dev -RUN apt-get -yq install libx11-dev -RUN apt-get -yq install libx11-xcb-dev -RUN apt-get -yq install libsm-dev -RUN apt-get -yq install libice-dev -RUN apt-get -yq install libglu1-mesa-dev - -# other deps -RUN apt-get -yq install liblzma-dev -RUN apt-get -yq install liblzo2-dev -RUN apt-get -yq install libudev-dev -RUN apt-get -yq install libfuse-dev -RUN apt-get -yq install libdb-dev -RUN apt-get -yq install libasound2-dev -RUN apt-get -yq install libffi-dev -RUN apt-get -yq install libmount-dev -RUN apt-get -yq install libbz2-dev -RUN apt-get -yq install libdbus-1-dev -RUN apt-get -yq install libcroco3-dev -RUN apt-get -yq install flex -RUN apt-get -yq install bison -RUN apt-get -yq install python-dev -RUN apt-get -yq install libxtst-dev -RUN apt-get -yq install xutils-dev -RUN apt-get -yq install libegl1-mesa-dev -RUN apt-get -yq install libdirectfb-dev -RUN apt-get -yq install libxcursor-dev - -# wget cannot check SSL-certificate for some sites -RUN apt-get -yq install curl - -# build dir -RUN mkdir /build diff --git a/docker/debian-7-32bit/build-base.sh b/docker/debian-7-32bit/build-base.sh deleted file mode 100755 index af8fa41..0000000 --- a/docker/debian-7-32bit/build-base.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -x - -set -e - -arch=i386 -suite=wheezy -docker_image="morevnaproject/debian-$arch:$suite" - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -CONFIG_FILE="$BASE_DIR/config.sh" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi - -IMAGE_FILE="$SCRIPT_DIR/debian-$suite-$arch.tar.gz" -if [ ! -f "$IMAGE_FILE" ]; then - "$SCRIPT_DIR/build-tgz.sh" -fi - - -if [ -f "$IMAGE_FILE" ]; then - docker import - $docker_image < "$IMAGE_FILE" -else - echo "File $IMAGE_FILE not found" - echo "You may try to create it by command $SCRIPT_DIR/build-tgz.sh" -fi diff --git a/docker/debian-7-32bit/build-tgz.sh b/docker/debian-7-32bit/build-tgz.sh deleted file mode 100755 index fb799cd..0000000 --- a/docker/debian-7-32bit/build-tgz.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -x - -set -e - -arch=i386 -suite=wheezy -chroot_dir="/var/chroot/$suite" -apt_mirror="ftp://ftp.debian.org/debian/" - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -CONFIG_FILE="$BASE_DIR/config.sh" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi - -export DEBIAN_FRONTEND=noninteractive -debootstrap --arch $arch $suite $chroot_dir $apt_mirror - -cat < $chroot_dir/etc/apt/sources.list -deb $apt_mirror $suite main -deb $apt_mirror $suite-updates main -deb http://security.debian.org/ $suite/updates main -EOF - -chroot $chroot_dir apt-get update -chroot $chroot_dir apt-get upgrade -y -chroot $chroot_dir apt-get autoclean -chroot $chroot_dir apt-get clean -chroot $chroot_dir apt-get autoremove - -tar cfz "$SCRIPT_DIR/debian-$suite-$arch.tar.gz" -C $chroot_dir . -rm -rf $chroot_dir diff --git a/docker/debian-7-32bit/build.sh b/docker/debian-7-32bit/build.sh deleted file mode 100755 index 878f987..0000000 --- a/docker/debian-7-32bit/build.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` - -CONFIG_FILE="$BASE_DIR/config.sh" -PACKET_BUILD_DIR="$BUILD_DIR/packet" -SCRIPT_BUILD_DIR="$BUILD_DIR/script" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi -mkdir -p $PACKET_BUILD_DIR - -if [[ "$(docker images -q morevnaproject/debian-i386:wheezy 2> /dev/null)" == "" ]]; then - bash ${SCRIPT_DIR}/build-base.sh -fi - -docker build -t morevnaproject/build-debian-7-32 $DOCKER_BUILD_OPTIONS "$SCRIPT_DIR" diff --git a/docker/debian-7-32bit/files/install-gcc.sh b/docker/debian-7-32bit/files/install-gcc.sh deleted file mode 100755 index c546091..0000000 --- a/docker/debian-7-32bit/files/install-gcc.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -set -e - -mkdir -p install-gcc -cd install-gcc - -echo && echo "download and unpack" && echo - -GCC_SOURCES_URL="https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz" -wget -c "$GCC_SOURCES_URL" -tar -xf gcc-*.tar.* - -echo && echo "build and install" && echo - -mkdir -p build -cd build -[ -f "../configure.done" ] || (../gcc-*/configure && touch "../configure.done") -make -j`nproc` -make install -(cd /usr/local/bin && ln gcc cc) -cd .. - -echo && echo "add licenses" && echo - -cd gcc-* -PREFIX="/usr/local/share/doc" -TARGET="../copyright" -TARGET_DIRS="gcc g++ gfortran cc c++ fortran" -echo > "$TARGET" -for FILE in README COPYING* MAINTAINERS; do - echo "" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo " File: $FILE" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo "" >> "$TARGET" - cat "$FILE" >> "$TARGET" -done -for TARGET_DIR in $TARGET_DIRS; do - mkdir -p "$PREFIX/$TARGET_DIR" - cp "$TARGET" "$PREFIX/$TARGET_DIR/" -done -cd .. - -cd .. - -echo && echo "clean" && echo - -rm -r install-gcc diff --git a/docker/debian-7-32bit/files/sources.list b/docker/debian-7-32bit/files/sources.list deleted file mode 100644 index 72b2518..0000000 --- a/docker/debian-7-32bit/files/sources.list +++ /dev/null @@ -1,3 +0,0 @@ -deb http://ftp.de.debian.org/debian/ wheezy main -deb http://ftp.de.debian.org/debian/ wheezy-updates main -deb http://security.debian.org/ wheezy/updates main diff --git a/docker/debian-7-32bit/run.sh b/docker/debian-7-32bit/run.sh deleted file mode 100755 index d897e77..0000000 --- a/docker/debian-7-32bit/run.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -DATA_DIR="$BASE_DIR/docker-builder-data" -BUILD_DIR=$DATA_DIR/build -CONFIG_FILE="$BASE_DIR/config.sh" -PACKET_BUILD_DIR="$BUILD_DIR/packet" -SCRIPT_BUILD_DIR="$BUILD_DIR/script" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi -mkdir -p $PACKET_BUILD_DIR - -export NATIVE_PLATFORM=debian -export NATIVE_ARCH=32 -if [ -z "$PLATFORM" ]; then - export PLATFORM=linux -fi -if [ -z "$ARCH" ]; then - export ARCH=$NATIVE_ARCH -fi -if [ -z "$TASK" ]; then - export TASK=builder-$NATIVE_PLATFORM -fi -export INSTANCE=$TASK-$PLATFORM$ARCH - -docker stop "$INSTANCE" || true -docker rm "$INSTANCE" || true -docker run -it \ - --name "$INSTANCE" \ - --privileged=true \ - $DOCKER_RUN_OPTIONS \ - -v "$PACKET_BUILD_DIR:/build/packet" \ - -v "$SCRIPT_BUILD_DIR:/build/script" \ - -e NATIVE_PLATFORM="$NATIVE_PLATFORM" \ - -e NATIVE_ARCH="$NATIVE_ARCH" \ - -e PLATFORM="$PLATFORM" \ - -e ARCH="$ARCH" \ - -e THREADS="$THREADS" \ - morevnaproject/build-debian-7-32 \ - setarch i686 /build/script/common/manager.sh "$@" - diff --git a/docker/debian-7-64bit/.gitignore b/docker/debian-7-64bit/.gitignore deleted file mode 100644 index f9d29e1..0000000 --- a/docker/debian-7-64bit/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/debian-wheezy-amd64.tar.gz diff --git a/docker/debian-7-64bit/Dockerfile b/docker/debian-7-64bit/Dockerfile deleted file mode 100644 index 40e0326..0000000 --- a/docker/debian-7-64bit/Dockerfile +++ /dev/null @@ -1,81 +0,0 @@ -FROM debian:7 -ARG ALL_PROXY - -# set available apt sources -COPY files/sources.list /etc/apt/sources.list - -# update -RUN apt-get -yq update - -# upgrade -RUN apt-get -yq upgrade - -# update ca-certificates -RUN apt-get -yq purge ca-certificates -RUN apt-get -yq install ca-certificates - -# install tools -RUN apt-get -yq install bash sudo pkg-config g++ make wget bzip2 - -# upgrade gcc -RUN apt-get -yq install libgmp-dev libmpfr-dev libmpc-dev gcc-multilib -COPY files/install-gcc.sh / -RUN /install-gcc.sh - -# install mingw -COPY files/install-mingw.sh / -RUN /install-mingw.sh - -# install tools -RUN apt-get -yq install csh -RUN apt-get -yq install xsltproc -RUN apt-get -yq install m4 -RUN apt-get -yq install automake -RUN apt-get -yq install intltool -RUN apt-get -yq install libtool -RUN apt-get -yq install git - -# qt deps see: http://doc.qt.io/qt-5/linux-requirements.html -RUN apt-get -yq install libxrender-dev -RUN apt-get -yq install libfontconfig1-dev -RUN apt-get -yq install libfreetype6-dev -RUN apt-get -yq install libxi-dev -RUN apt-get -yq install libxext-dev -RUN apt-get -yq install libx11-dev -RUN apt-get -yq install libx11-xcb-dev -RUN apt-get -yq install libsm-dev -RUN apt-get -yq install libice-dev -RUN apt-get -yq install libglu1-mesa-dev - -# other deps -RUN apt-get -yq install liblzma-dev -RUN apt-get -yq install liblzo2-dev -RUN apt-get -yq install libudev-dev -RUN apt-get -yq install libfuse-dev -RUN apt-get -yq install libdb-dev -RUN apt-get -yq install libasound2-dev -RUN apt-get -yq install libffi-dev -RUN apt-get -yq install libmount-dev -RUN apt-get -yq install libbz2-dev -RUN apt-get -yq install libdbus-1-dev -RUN apt-get -yq install libcroco3-dev -RUN apt-get -yq install flex -RUN apt-get -yq install bison -RUN apt-get -yq install python-dev -RUN apt-get -yq install libxtst-dev -RUN apt-get -yq install xutils-dev -RUN apt-get -yq install libegl1-mesa-dev -RUN apt-get -yq install libdirectfb-dev -RUN apt-get -yq install libxcursor-dev - -# wget cannot check SSL-certificate for some sites -RUN apt-get -yq install curl - -# for synfigstudio-nsis -RUN apt-get -yq install unzip - -# for portable versions -RUN apt-get -yq install zip - -# build dir -RUN mkdir /build diff --git a/docker/debian-7-64bit/build-base.sh b/docker/debian-7-64bit/build-base.sh deleted file mode 100755 index 9f3e28f..0000000 --- a/docker/debian-7-64bit/build-base.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -x - -set -e - -arch=amd64 -suite=wheezy -docker_image="debian:7" - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -CONFIG_FILE="$BASE_DIR/config.sh" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi - -IMAGE_FILE="$SCRIPT_DIR/debian-$suite-$arch.tar.gz" -if [ ! -f "$IMAGE_FILE" ]; then - "$SCRIPT_DIR/build-tgz.sh" -fi - - -if [ -f "$IMAGE_FILE" ]; then - docker import - $docker_image < "$IMAGE_FILE" -else - echo "File $IMAGE_FILE not found" - echo "You may try to create it by command $SCRIPT_DIR/build-tgz.sh" -fi diff --git a/docker/debian-7-64bit/build-tgz.sh b/docker/debian-7-64bit/build-tgz.sh deleted file mode 100755 index 5077de4..0000000 --- a/docker/debian-7-64bit/build-tgz.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -x - -set -e - -arch=amd64 -suite=wheezy -chroot_dir="/var/chroot/$suite" -apt_mirror="ftp://ftp.debian.org/debian/" - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -CONFIG_FILE="$BASE_DIR/config.sh" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi - -export DEBIAN_FRONTEND=noninteractive -debootstrap --arch $arch $suite $chroot_dir $apt_mirror - -cat < $chroot_dir/etc/apt/sources.list -deb $apt_mirror $suite main -deb $apt_mirror $suite-updates main -deb http://security.debian.org/ $suite/updates main -EOF - -chroot $chroot_dir apt-get update -chroot $chroot_dir apt-get upgrade -y -chroot $chroot_dir apt-get autoclean -chroot $chroot_dir apt-get clean -chroot $chroot_dir apt-get autoremove - -tar cfz "$SCRIPT_DIR/debian-$suite-$arch.tar.gz" -C $chroot_dir . -rm -rf $chroot_dir diff --git a/docker/debian-7-64bit/build.sh b/docker/debian-7-64bit/build.sh deleted file mode 100755 index b620847..0000000 --- a/docker/debian-7-64bit/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` - -CONFIG_FILE="$BASE_DIR/config.sh" -PACKET_BUILD_DIR="$BUILD_DIR/packet" -SCRIPT_BUILD_DIR="$BUILD_DIR/script" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi -export PACKET_BUILD_DIR -mkdir -p $PACKET_BUILD_DIR - -docker build -t morevnaproject/build-debian-7-64 $DOCKER_BUILD_OPTIONS "$SCRIPT_DIR" diff --git a/docker/debian-7-64bit/files/install-gcc.sh b/docker/debian-7-64bit/files/install-gcc.sh deleted file mode 100755 index c546091..0000000 --- a/docker/debian-7-64bit/files/install-gcc.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -set -e - -mkdir -p install-gcc -cd install-gcc - -echo && echo "download and unpack" && echo - -GCC_SOURCES_URL="https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz" -wget -c "$GCC_SOURCES_URL" -tar -xf gcc-*.tar.* - -echo && echo "build and install" && echo - -mkdir -p build -cd build -[ -f "../configure.done" ] || (../gcc-*/configure && touch "../configure.done") -make -j`nproc` -make install -(cd /usr/local/bin && ln gcc cc) -cd .. - -echo && echo "add licenses" && echo - -cd gcc-* -PREFIX="/usr/local/share/doc" -TARGET="../copyright" -TARGET_DIRS="gcc g++ gfortran cc c++ fortran" -echo > "$TARGET" -for FILE in README COPYING* MAINTAINERS; do - echo "" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo " File: $FILE" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo "" >> "$TARGET" - cat "$FILE" >> "$TARGET" -done -for TARGET_DIR in $TARGET_DIRS; do - mkdir -p "$PREFIX/$TARGET_DIR" - cp "$TARGET" "$PREFIX/$TARGET_DIR/" -done -cd .. - -cd .. - -echo && echo "clean" && echo - -rm -r install-gcc diff --git a/docker/debian-7-64bit/files/install-mingw.sh b/docker/debian-7-64bit/files/install-mingw.sh deleted file mode 100755 index 8fec17f..0000000 --- a/docker/debian-7-64bit/files/install-mingw.sh +++ /dev/null @@ -1,331 +0,0 @@ -#!/bin/bash - -set -e - -VER_BINUTILS="2.29.1" -DIR_BINUTILS="binutils-$VER_BINUTILS" -ARH_BINUTILS="$DIR_BINUTILS.tar.xz" -URL_BINUTILS="https://ftp.gnu.org/gnu/binutils/$ARH_BINUTILS" - -VER_GCC="7.2.0" -DIR_GCC="gcc-$VER_GCC" -ARH_GCC="$DIR_GCC.tar.xz" -URL_GCC="https://ftp.gnu.org/gnu/gcc/gcc-$VER_GCC/$ARH_GCC" - -VER_MINGW="5.0.3" -DIR_MINGW="mingw-w64-v$VER_MINGW" -ARH_MINGW="$DIR_MINGW.tar.bz2" -URL_MINGW="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/$ARH_MINGW" - -VER_ICONV="1.15" -DIR_ICONV="libiconv-$VER_ICONV" -ARH_ICONV="$DIR_ICONV.tar.gz" -URL_ICONV="https://ftp.gnu.org/pub/gnu/libiconv/$ARH_ICONV" - -VER_GETTEXT="0.19.7" -DIR_GETTEXT="gettext-$VER_GETTEXT" -ARH_GETTEXT="$DIR_GETTEXT.tar.gz" -URL_GETTEXT="https://ftp.gnu.org/pub/gnu/gettext/$ARH_GETTEXT" - - -THREADS=`nproc` -INITIAL_PATH="$PATH" -COMMAND="$0" - - -if [ "$1" == "host_install" ]; then - PATH="/usr/local/$2/sys-root/bin:$PATH" make install - exit -fi - - -download() { - mkdir -p "install-mingw/download" - cd "install-mingw/download" - if [ ! -f "done" ]; then - echo && echo "download" && echo - - wget -c --no-cookies --max-redirect 40 "$URL_BINUTILS" - wget -c --no-cookies --max-redirect 40 "$URL_GCC" - wget -c --no-cookies --max-redirect 40 "$URL_MINGW" - wget -c --no-cookies --max-redirect 40 "$URL_ICONV" - wget -c --no-cookies --max-redirect 40 "$URL_GETTEXT" - - tar -xf "../download/$ARH_BINUTILS" - tar -xf "../download/$ARH_GCC" - tar -xf "../download/$ARH_MINGW" - tar -xf "../download/$ARH_ICONV" - tar -xf "../download/$ARH_GETTEXT" - - touch "done" - fi - cd ../.. -} - -install_binutils() { - local ARCH="$1" - mkdir -p "install-mingw/build/binutils-$ARCH" - cd "install-mingw/build/binutils-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install binutils $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_BINUTILS/configure" \ - --target="$ARCH" \ - --disable-multilib \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS || make - sudo make install - touch "done" - fi - cd ../../.. -} - -install_headers() { - local ARCH="$1" - mkdir -p "install-mingw/build/headers-$ARCH" - cd "install-mingw/build/headers-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install headers $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_MINGW/mingw-w64-headers/configure" \ - --host="$ARCH" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS || make - sudo make install - pushd "/usr/local/$ARCH/sys-root" - sudo ln -s . mingw - popd - touch "done" - fi - cd ../../.. -} - -install_gcc() { - local ARCH="$1" - mkdir -p "install-mingw/build/gcc-$ARCH" - cd "install-mingw/build/gcc-$ARCH" - if [ ! -f "gcc.done" ]; then - echo && echo "install gcc $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_GCC/configure" \ - --target="$ARCH" \ - --disable-multilib \ - --enable-shared \ - --enable-threads=posix \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS all-gcc || make - sudo make install-gcc - touch "gcc.done" - fi - cd ../../.. -} - -install_crt() { - local ARCH="$1" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/crt-$ARCH" - cd "install-mingw/build/crt-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install crt $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_MINGW/mingw-w64-crt/configure" \ - --host="$ARCH" \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -finish_gcc() { - local ARCH="$1" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/gcc-$ARCH" - cd "install-mingw/build/gcc-$ARCH" - if [ ! -f "done" ]; then - echo && echo "finish gcc $ARCH" && echo - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -install_library() { - local ARCH="$1" - local NAME="$2" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/mingw-$NAME-$ARCH" - cd "install-mingw/build/mingw-$NAME-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install library $NAME $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_MINGW/mingw-w64-libraries/$NAME/configure" \ - --host="$ARCH" \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" \ - ${@:3} - touch "configure.done" - fi - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -install_tool() { - local ARCH="$1" - local NAME="$2" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/mingw-$NAME-$ARCH" - cd "install-mingw/build/mingw-$NAME-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install tool $NAME $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_MINGW/mingw-w64-tools/$NAME/configure" \ - --target="$ARCH" \ - --prefix="/usr/local/$ARCH/sys-root" \ - ${@:3} - touch "configure.done" - fi - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -install_iconv() { - local ARCH="$1" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/iconv-$ARCH" - cd "install-mingw/build/iconv-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install iconv $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_ICONV/configure" \ - --host="$ARCH" \ - --enable-static \ - --enable-shared \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -install_gettext() { - local ARCH="$1" - export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" - mkdir -p "install-mingw/build/gettext-$ARCH" - cd "install-mingw/build/gettext-$ARCH" - if [ ! -f "done" ]; then - echo && echo "install gettext $ARCH" && echo - if [ ! -f "configure.done" ]; then - "../../download/$DIR_GETTEXT/configure" \ - --host="$ARCH" \ - --disable-java \ - --disable-native-java \ - --disable-csharp \ - --enable-static \ - --enable-shared \ - --enable-threads=win32 \ - --without-emacs \ - --disable-openmp \ - --with-sysroot="/usr/local/$ARCH/sys-root" \ - --prefix="/usr/local/$ARCH/sys-root" - touch "configure.done" - fi - make -j$THREADS || make - sudo "../../../$0" host_install "$ARCH" - touch "done" - fi - cd ../../.. -} - -install_license() { - local NAME="$1" - local DIR_NAME="$2" - cd "install-mingw/download/$DIR_NAME" - if [ ! -f "../../build/$NAME.license.done" ]; then - echo && echo "install license $NAME" && echo - local TARGET="../../build/$NAME.license" - echo > "$TARGET" - for FILE in README COPYING* MAINTAINERS AUTHORS; do - if [ -f "$FILE" ]; then - echo "" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo " File: $FILE" >> "$TARGET" - echo "-------------------------------------" >> "$TARGET" - echo "" >> "$TARGET" - cat "$FILE" >> "$TARGET" - fi - done - sudo mkdir -p "/usr/local/share/doc/$NAME" - sudo cp "$TARGET" "/usr/local/share/doc/$NAME/copyright" - touch "../../build/$NAME.license.done" - fi - cd ../../.. -} - - -install() { - local ARCH="$1" - install_binutils "$ARCH" - install_headers "$ARCH" - install_gcc "$ARCH" - install_crt "$ARCH" - install_library "$ARCH" "winpthreads" - finish_gcc "$ARCH" - - install_library "$ARCH" "libmangle" - install_library "$ARCH" "winstorecompat" - install_tool "$ARCH" "gendef" - install_tool "$ARCH" "genidl" - install_tool "$ARCH" "genlib" - install_tool "$ARCH" "genpeimg" - install_tool "$ARCH" "widl" - - install_iconv "$ARCH" - install_gettext "$ARCH" - - install_license gcc "$DIR_GCC" - install_license g++ "$DIR_GCC" - install_license gfortran "$DIR_GCC" - install_license cc "$DIR_GCC" - install_license c++ "$DIR_GCC" - install_license gfortran "$DIR_GCC" - - install_license mingw-w64 "$DIR_MINGW" - install_license iconv "$DIR_ICONV" - install_license gettext "$DIR_GETTEXT" -} - -clean() { - echo && echo "clean" && echo - rm -r install-mingw -} - -download -install x86_64-w64-mingw32 -install i686-w64-mingw32 -clean - -echo && echo "done" && echo diff --git a/docker/debian-7-64bit/files/sources.list b/docker/debian-7-64bit/files/sources.list deleted file mode 100644 index 72b2518..0000000 --- a/docker/debian-7-64bit/files/sources.list +++ /dev/null @@ -1,3 +0,0 @@ -deb http://ftp.de.debian.org/debian/ wheezy main -deb http://ftp.de.debian.org/debian/ wheezy-updates main -deb http://security.debian.org/ wheezy/updates main diff --git a/docker/debian-7-64bit/run.sh b/docker/debian-7-64bit/run.sh deleted file mode 100755 index 4240f1c..0000000 --- a/docker/debian-7-64bit/run.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) -BASE_DIR=`dirname "$SCRIPT_DIR"` -BASE_DIR=`dirname "$BASE_DIR"` -DATA_DIR="$BASE_DIR/docker-builder-data" -BUILD_DIR=$DATA_DIR/build -CONFIG_FILE="$BASE_DIR/config.sh" -PACKET_BUILD_DIR="$BUILD_DIR/packet" -SCRIPT_BUILD_DIR="$BUILD_DIR/script" -if [ -f $CONFIG_FILE ]; then - source $CONFIG_FILE -fi -mkdir -p $PACKET_BUILD_DIR - -export NATIVE_PLATFORM=debian -if [ -z "$PLATFORM" ]; then - export PLATFORM=linux -fi -if [ -z "$ARCH" ]; then - export ARCH=64 -fi -if [ -z "$TASK" ]; then - export TASK=builder-$NATIVE_PLATFORM -fi -export INSTANCE=$TASK-$PLATFORM$ARCH - -docker stop "$INSTANCE" || true -docker rm "$INSTANCE" || true -docker run -it \ - --name "$INSTANCE" \ - --privileged=true \ - $DOCKER_RUN_OPTIONS \ - -v "$PACKET_BUILD_DIR:/build/packet" \ - -v "$SCRIPT_BUILD_DIR:/build/script" \ - -e NATIVE_PLATFORM="$NATIVE_PLATFORM" \ - -e NATIVE_ARCH="$NATIVE_ARCH" \ - -e PLATFORM="$PLATFORM" \ - -e ARCH="$ARCH" \ - -e THREADS="$THREADS" \ - morevnaproject/build-debian-7-64 \ - /build/script/common/manager.sh "$@" - diff --git a/docker/debian-7-64bit/win32.sh b/docker/debian-7-64bit/win32.sh deleted file mode 100755 index dba1c03..0000000 --- a/docker/debian-7-64bit/win32.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -PLATFORM=win ARCH=32 $(cd `dirname "$0"`; pwd)/run.sh "$@" diff --git a/docker/debian-7-64bit/win64.sh b/docker/debian-7-64bit/win64.sh deleted file mode 100755 index 2531e3b..0000000 --- a/docker/debian-7-64bit/win64.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -PLATFORM=win ARCH=64 $(cd `dirname "$0"`; pwd)/run.sh "$@" diff --git a/docker/run.sh b/docker/run.sh deleted file mode 100755 index c192ca1..0000000 --- a/docker/run.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR=$(cd `dirname "$0"`; pwd) - -if [ "$PLATFORM" = "win" ]; then - "$SCRIPT_DIR/debian-7-64bit/run.sh" "$@" -elif [ "$ARCH" = "32" ]; then - "$SCRIPT_DIR/debian-7-32bit/run.sh" "$@" -else - "$SCRIPT_DIR/debian-7-64bit/run.sh" "$@" -fi diff --git a/env-builder-data/build/.gitignore b/env-builder-data/build/.gitignore new file mode 100644 index 0000000..1f87b92 --- /dev/null +++ b/env-builder-data/build/.gitignore @@ -0,0 +1 @@ +/packet/ diff --git a/env-builder-data/build/script/common/helpers.sh b/env-builder-data/build/script/common/helpers.sh new file mode 100644 index 0000000..2665a20 --- /dev/null +++ b/env-builder-data/build/script/common/helpers.sh @@ -0,0 +1,262 @@ +# helpers + +allvars() { + for LOCAL_ALLVARS_VAR_PREFIX in _ {a..z} {A..Z}; do + eval echo -n $\{\!$LOCAL_ALLVARS_VAR_PREFIX*} | sed "s|LOCAL_ALLVARS_VAR_PREFIX||g" + echo -n " " + done +} + +vars_clear() { + # local PREFIX=$1 + [ ! -z "$1" ] || return 1 + for VAR in $(allvars); do + if [[ "$VAR" = $1* ]]; then + unset $VAR + fi + done +} + +vars_copy() { + # local PREFIX_FROM=$1 + # local PREFIX_TO=$2 + # local EXPORT=$3 + [ "$1" == "$2" ] && return 0 + for VAR in $(allvars); do + if [[ "$VAR" = $1* ]]; then + if [ "$3" = "export" ]; then + eval export ${2}${VAR#$1}='${!VAR}' + else + eval ${2}${VAR#$1}='${!VAR}' + fi + fi + done +} + +vars_rename() { + # local PREFIX_FROM=$1 + # local PREFIX_TO=$2 + [ ! -z "$1" ] || return 1 + vars_copy "$1" "$2" + vars_clear "$1" +} + +vars_backup() { + # local PREFIX=$1 + [ ! -z "$1" ] || return 1 + vars_copy "" "$1" +} + +vars_restore() { + # local PREFIX=$1 + # local EXPORT=$2 + [ ! -z "$1" ] || return 1 + vars_copy "$1" "" "$2" +} + +copy() { + local SRC=$1 + local DEST=$2 + if [ -d "$SRC" ]; then + if ! mkdir -p $DEST; then + return 1 + fi + if [ "$(ls -A $1)" ]; then + if ! cp --remove-destination -rlP $SRC/* "$DEST/"; then + return 1 + fi + fi + elif [ -f "$SRC" ]; then + if ! (mkdir -p `dirname $DEST` && cp --remove-destination -l "$SRC" "$DEST"); then + return 1 + fi + else + return 1 + fi +} + +foreachfile() { + local DIR="$1" + local COMMAND="$2" + if [ -z "$DIR" ] || [ ! -e "$DIR" ]; then + return 1 + fi + + if [ -d "$DIR" ]; then + for FILE in "$DIR/".*; do + if [ "$FILE" != "$DIR/." ] && [ "$FILE" != "$DIR/.." ]; then + if ! "$COMMAND" "$FILE" ${@:3}; then + return 1 + fi + fi + done + for FILE in "$DIR/"*; do + if [ "$FILE" != "$DIR" ] && [ "$FILE" != "$DIR/" ]; then + if ! "$COMMAND" "$FILE" ${@:3}; then + return 1 + fi + fi + done + fi +} + +remove_recursive() { + local DIR="$1" + local NEEDLE="$2" + + if [ -d "$DIR" ]; then + rm -f "$DIR/"$NEEDLE + if ! foreachfile "$DIR" "${FUNCNAME[0]}" "$NEEDLE"; then + return 1 + fi + fi +} + +foreachfile() { + local FILE=$1 + local COMMAND=$2 + if [ ! -e "$FILE" ]; then + return 1 + fi + if [ -d "$FILE" ]; then + ls -1 "$FILE" | while read SUBFILE; do + if ! $COMMAND "$FILE/$SUBFILE" ${@:3}; then + return 1 + fi + done + fi +} + +sha512dir() { + local DIR="$1" + local INFO="$2" + + local BASE=$(basename "$DIR") + + [[ "$BASE" != ".git" ]] || return 0 + [[ "$BASE" != *.po ]] || return 0 + + if [ "$INFO" = "info" ]; then + basename "$DIR" || return 1 + stat -c%F:%a:%s "$DIR" || return 1 + fi + + if [ -d "$DIR" ]; then + (foreachfile "$DIR" "${FUNCNAME[0]}" info | sha512sum -b | cut -c1-128) || return 1 + elif [ -L "$DIR" ]; then + (readlink "$DIR" | sha512sum -b | cut -c1-128) || return 1 + else + (sha512sum -b "$DIR" | cut -c1-128) || return 1 + fi +} + +copy_system_lib() { + local SRC_NAME=$1 + local DST_PATH=$2 + cp --remove-destination /lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/local/lib/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/local/lib64/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/local/lib/x86_64-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + cp --remove-destination /usr/local/lib/i386-linux-gnu/$SRC_NAME* "$DST_PATH" &> /dev/null + if ! (ls "$DST_PATH/$SRC_NAME"* &> /dev/null); then + echo "$SRC_NAME not found in system libraries" + return 1 + fi +} + +copy_system_gcc_libs() { + local DST_PATH=$1 + copy_system_lib libgcc "$DST_PATH" || return 1 + copy_system_lib libquadmath "$DST_PATH" || return 1 + copy_system_lib libgfortran "$DST_PATH" || return 1 + copy_system_lib libssp "$DST_PATH" || return 1 + copy_system_lib libstdc++ "$DST_PATH" || return 1 +} + +add_common_licenses() { + local FILE="$1" + local TARGET="$2" + + local LIC_PATH="/usr/share/common-licenses" + [ -d "$LIC_PATH" ] || return 0 + [[ ! "$FILE" = "$LIC_PATH/"* ]] || return 0 + ls -d1 "$LIC_PATH/"* | while read SUB_FILE; do + if grep -q "$SUB_FILE" "$FILE"; then + add_license "$SUB_FILE" "$SUB_FILE" "$TARGET" + fi + done +} + +add_license() { + local FILE="$1" + local FILE_IN_TITLE="$2" + local TARGET="$3" + if [ ! -z "$FILE_IN_TITLE" ]; then + echo "" >> "$TARGET" || return 1 + echo "-------------------------------------" >> "$TARGET" || return 1 + echo " File: $FILE_IN_TITLE" >> "$TARGET" || return 1 + echo "-------------------------------------" >> "$TARGET" || return 1 + echo "" >> "$TARGET" || return 1 + else + echo "" >> "$TARGET" || return 1 + echo "-------------------------------------" >> "$TARGET" || return 1 + echo "" >> "$TARGET" || return 1 + fi + cat "$FILE" >> "$TARGET" || return 1 + add_common_licenses "$FILE" "$TARGET" || return 1 +} + +copy_system_license() { + local SRC_NAMES=$1 + local DST_PATH=$2 + local SRC_NAME= + + for SRC_NAME in $SRC_NAMES; do + rm -f "$DST_PATH/license-$SRC_NAME" + done + for SRC_NAME in $SRC_NAMES; do + local TARGET="$DST_PATH/license-$SRC_NAME" + for SUFFIX in "" {0..9} "-"; do + local SUB_NAME="$SRC_NAME$SUFFIX" + if [ ! -z "$SUFFIX" ]; then + SUB_NAME="$SUB_NAME*" + fi + + for MASK in "/usr/share/doc/$SUB_NAME/copyright" \ + "/usr/share/licenses/$SUB_NAME" \ + "/usr/share/licenses/$SUB_NAME/*" \ + "/usr/share/doc/$SUB_NAME/*" \ + "/usr/local/share/doc/$SUB_NAME/copyright" + do + local FOUND= + ls -d1 $MASK 2>/dev/null | while read FILE; do + if [ -f "$FILE" ] && [[ "$FILE" != *.bz2 ]]; then + FOUND=1 + if ! add_license "$FILE" "$FILE" "$TARGET"; then + echo "Cannot add license file: $FILE -> $TARGET"; + return 1 + fi + fi + done + if [ ! -z "$FOUND" ]; then + break + fi + done + + if [ -z "$SUFFIX" ] && [ -f "$TARGET" ]; then + return 0 + fi + done + + if [ -f "$TARGET" ]; then + return 0 + fi + done + + echo "Cannot found any license for one of system packages: $SRC_NAMES (for $DST_PATH)" + return 1 +} + diff --git a/env-builder-data/build/script/common/manager.sh b/env-builder-data/build/script/common/manager.sh new file mode 100755 index 0000000..b4342ca --- /dev/null +++ b/env-builder-data/build/script/common/manager.sh @@ -0,0 +1,1114 @@ +#!/bin/bash + +############################################### +# +# Input environment variables +# +# PLATFORM - target platform (linux or windows) +# ARCH - bits (32 or 64) +# NATIVE_PLATFORM - folder name for store compiled utilities for build-time (debian, fedora, etc) +# NATIVE_ARCH - ^^^ bits (32 or 64) +# THREADS - amount of simultaneous threads for build process +# PACKET_BUILD_DIR - output directory (optional) +# +############################################### + +# check options + +if [ -z "$NATIVE_PLATFORM" ]; then + NATIVE_PLATFORM="default" +fi + +if [ -z "$NATIVE_ARCH" ]; then + NATIVE_ARCH=`uname -m` + if [ "$NATIVE_ARCH" = "x86_64" ]; then + NATIVE_ARCH="64" + elif [ "$NATIVE_ARCH" = "i686" ]; then + NATIVE_ARCH="32" + fi +fi + +if [ -z "$TARGET_PLATFORM" ]; then + TARGET_PLATFORM="$NATIVE_PLATFORM" +fi + +if [ -z "$ARCH" ]; then + ARCH="$NATIVE_ARCH" +fi + +if [ -z "$THREADS" ]; then + THREADS=8 +fi + +export NATIVE_PLATFORM +export NATIVE_ARCH +export PLATFORM +export ARCH +export THREADS + +# root + +ROOT_DIR=$(cd `dirname "$0"`; pwd) +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 +if [ -z "$PACKET_BUILD_DIR" ]; then + export PACKET_BUILD_DIR=$ROOT_DIR/packet +fi +export PACKET_DIR=$PACKET_BUILD_DIR/$PLATFORM-$ARCH +export NATIVE_PACKET_DIR=$PACKET_BUILD_DIR/$NATIVE_PLATFORM-$NATIVE_ARCH-native + +# toolchain + +export TOOLCHAIN_SCRIPT_DIR=$SCRIPT_DIR/toolchain +export NATIVE_TOOLCHAIN_SCRIPT="$TOOLCHAIN_SCRIPT_DIR/none.sh" +export TOOLCHAIN_SCRIPT="$TOOLCHAIN_SCRIPT_DIR/$PLATFORM-$ARCH.sh" +if [ ! -f "$TOOLCHAIN_SCRIPT" ]; then + TOOLCHAIN_SCRIPT=$NATIVE_TOOLCHAIN_SCRIPT +fi + +# work vars + +IS_NATIVE= +DRY_RUN= +FORCE= +CLEAN_BEFORE_DO= +NO_CHECK_DEPS= +declare -A COMPLETION_STATUS + +############################################### +# +# Fairy Tale +# +# Once upon time in faraway... +# +# Function dependency: +# +# 1. download +# | +# 2. unpack +# | +# | env^ +# | | +# 3. | envdeps +# | | | | +# env^^ | | | | +# | | | | | +# | env_native^ | | | | +# | | | | | | +# 4. envdeps_native | | | | +# | | | | | | | +# 5. | | build | | +# | | | | | | +# 7. | --install | (you see the direct connection 'build' with 'license', trust me) +# | | || | | +# 8. | | || env +# | | || | | +# | | || | envdeps* +# | | || | +# | | || envdeps_native** +# | | || +# 9. env_native | || +# | | || +# envdeps_native* | || +# | || +# 10. | license +# | | +# | | env_release^ +# | | | +# 11. | | envdeps_release +# | | | | +# 12. install_release | +# | | +# 13. env_release +# | +# envdeps_release* +# +############################################### + +FUNC_DEPS_download="" +FUNC_DEPS_unpack="download" +FUNC_DEPS_envdeps="-env" +FUNC_DEPS_envdeps_native="--env -env_native" +FUNC_DEPS_build="envdeps envdeps_native unpack" +FUNC_DEPS_install="envdeps envdeps_native build" +FUNC_DEPS_env="envdeps install" +FUNC_DEPS_env_native="envdeps_native" +FUNC_DEPS_license="build install" +FUNC_DEPS_envdeps_release="-env_release" +FUNC_DEPS_install_release="envdeps_release install license" +FUNC_DEPS_env_release="envdeps_release install_release" + + +# helpers + +source "$COMMON_SCRIPT_DIR/helpers.sh" + +# initial system vars + +unset VARS_TO_RESTORE +vars_clear "TC_" +vars_clear "INITIAL_" +vars_backup "INITIAL_" + +# internal functions + +message() { + local MESSAGE=$1 + echo " ------ $MESSAGE" +} + +try_do_nothing() { + if [ -z "$DRY_RUN" ]; then + return 1 + fi + set_done $1 $2 +} + +set_done() { + local PACKET=$1 + local FUNC=$2 + local COMPLETION_KEY="$PLATFORM:$ARCH:$PACKET:$FUNC" + if [ -z "$DRY_RUN" ]; then + touch "$PACKET_DIR/$PACKET/$FUNC.done" + fi + COMPLETION_STATUS[$COMPLETION_KEY]=complete +} + +set_undone_silent() { + local PACKET=$1 + local FUNC=$2 + local COMPLETION_KEY="$PLATFORM:$ARCH:$PACKET:$FUNC" + if [ -z "$DRY_RUN" ]; then + rm -f $PACKET_DIR/$PACKET/$FUNC.*.done + rm -f "$PACKET_DIR/$PACKET/$FUNC.done" + fi + COMPLETION_STATUS[$COMPLETION_KEY]=incomplete +} + +set_undone() { + local PACKET=$1 + local FUNC=$2 + message "$PACKET set_undone $FUNC" + set_undone_silent $PACKET $FUNC +} + +clean_packet_directory_silent() { + local PACKET=$1 + local FUNC=$2 + set_undone_silent $PACKET $FUNC + try_do_nothing $PACKET $FUNC && return 0 + rm -rf "$PACKET_DIR/$PACKET/$FUNC" +} + +clean_packet_directory() { + local PACKET=$1 + local FUNC=$2 + message "$PACKET clean $FUNC" + clean_packet_directory_silent $PACKET $FUNC +} + +check_packet_function() { + local PACKET=$1 + local FUNC=$2 + if [ ! -z "$FORCE" ]; then + return 1 + fi + if [ ! -f "$PACKET_DIR/$PACKET/$FUNC.done" ]; then + return 1 + fi +} + +prepare_build() { + if ! copy "$UNPACK_PACKET_DIR" "$BUILD_PACKET_DIR"; then + return 1 + fi +} + +prepare_install() { + if ls $BUILD_PACKET_DIR/version-* 1> /dev/null 2>&1; then + cp --remove-destination $BUILD_PACKET_DIR/version-* "$INSTALL_PACKET_DIR/" || true + fi +} + +prepare_license() { + rm -f "$LICENSE_PACKET_DIR/"* +} + +prepare_install_release() { + if ls $INSTALL_PACKET_DIR/version-* 1> /dev/null 2>&1; then + cp --remove-destination $INSTALL_PACKET_DIR/version-* "$INSTALL_RELEASE_PACKET_DIR/" || true + fi + mkdir -p "$INSTALL_RELEASE_PACKET_DIR/license" || return 1 + copy "$LICENSE_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR/license" || return 1 +} + +set_environment_vars() { + # restore env + for VAR in $VARS_TO_RESTORE; do + VAR_FROM="INITIAL_$VAR" + if [ -z ${!VAR_FROM+x} ]; then + unset $VAR + else + eval export $VAR='${!VAR_FROM}' + fi + done + + # set toolchain env + VARS_TO_RESTORE= + for VAR in $(allvars); do + if [[ "$VAR" = TC_* ]]; then + VARS_TO_RESTORE="$VARS_TO_RESTORE ${VAR#TC_}" + fi + done + vars_restore "TC_" "export" + + # set env + 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 ENVDEPS_NATIVE_PACKET_DIR="$CURRENT_PACKET_DIR/envdeps_native" + export BUILD_PACKET_DIR="$CURRENT_PACKET_DIR/build" + export LICENSE_PACKET_DIR="$CURRENT_PACKET_DIR/license" + 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 ENV_NATIVE_PACKET_DIR="$CURRENT_PACKET_DIR/env_native" + export ENVDEPS_RELEASE_PACKET_DIR="$CURRENT_PACKET_DIR/envdeps_release" + export ENV_RELEASE_PACKET_DIR="$CURRENT_PACKET_DIR/env_release" + + export PATH="\ +$ENVDEPS_NATIVE_PACKET_DIR/bin:\ +$ENV_NATIVE_PACKET_DIR/bin:\ +$ENVDEPS_PACKET_DIR/bin:\ +$ENV_PACKET_DIR/bin:\ +$TC_PATH" + + export LD_LIBRARY_PATH="\ +$ENVDEPS_NATIVE_PACKET_DIR/lib:\ +$ENVDEPS_NATIVE_PACKET_DIR/lib64\ +$ENV_NATIVE_PACKET_DIR/lib:\ +$ENV_NATIVE_PACKET_DIR/lib64:\ +$ENVDEPS_PACKET_DIR/lib:\ +$ENVDEPS_PACKET_DIR/lib64:\ +$ENV_PACKET_DIR/lib:\ +$ENV_PACKET_DIR/lib64:\ +$TC_LD_LIBRARY_PATH" + + export LDFLAGS="-L$ENVDEPS_PACKET_DIR/lib -L$ENVDEPS_PACKET_DIR/lib64 $TC_LDFLAGS" + export CFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CFLAGS" + export CPPFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CPPFLAGS" + export CXXFLAGS="-I$ENVDEPS_PACKET_DIR/include $TC_CXXFLAGS" + export PKG_CONFIG_PATH="$ENVDEPS_PACKET_DIR/lib/pkgconfig:$ENVDEPS_PACKET_DIR/lib64/pkgconfig:$ENVDEPS_PACKET_DIR/share/pkgconfig:$TC_PKG_CONFIG_PATH" + export PKG_CONFIG_LIBDIR="$ENVDEPS_PACKET_DIR/lib:$ENVDEPS_PACKET_DIR/lib64:$TC_PKG_CONFIG_LIBDIR" + export PKG_CONFIG_SYSROOT_DIR="/" + export XDG_DATA_DIRS="$ENVDEPS_PACKET_DIR/share:$TC_XDG_DATA_DIRS" + export ACLOCAL_PATH="$ENVDEPS_PACKET_DIR/share/aclocal:$TC_ACLOCAL_PATH" + export CMAKE_INCLUDE_PATH="$ENVDEPS_PACKET_DIR/include:$TC_CMAKE_INCLUDE_PATH" + export CMAKE_LIBRARY_PATH="$ENVDEPS_PACKET_DIR/lib:$ENVDEPS_PACKET_DIR/lib64:$TC_CMAKE_LIBRARY_PATH" +} + +call_packet_function() { + local NAME=$1 + local FUNC=$2 + local PREPARE_FUNC=$3 + local FINALIZE_FUNC=$4 + local COMPARE_RESULTS=$5 + + set_environment_vars $NAME + + local FUNC_NAME=pk$FUNC + local FUNC_CURRENT_PACKET_DIR=$CURRENT_PACKET_DIR/$FUNC + + message "$NAME $FUNC" + try_do_nothing $NAME $FUNC && return 0 + echo "${DRY_RUN_DONE[@]}" + + local PREV_HASH= + if [ "$COMPARE_RESULTS" = "compare_results" ]; then + if check_packet_function $NAME $FUNC; then + PREV_HASH=`sha512dir "$FUNC_CURRENT_PACKET_DIR"` + [ ! $? -eq 0 ] && return 1 + echo "sha512: $PREV_HASH" + fi + else + set_undone_silent $NAME $FUNC + fi + + mkdir -p $FUNC_CURRENT_PACKET_DIR + cd $FUNC_CURRENT_PACKET_DIR + + source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh + [ ! $? -eq 0 ] && return 1 + 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 + + if [ ! -z "$PREV_HASH" ]; then + local HASH=`sha512dir "$FUNC_CURRENT_PACKET_DIR"` + [ ! $? -eq 0 ] && return 1 + echo "sha512: $HASH" + if [ "$HASH" = "$PREV_HASH" ]; then + message "$NAME $FUNC - not changed" + return 0 + else + message "$NAME $FUNC - changed" + fi + fi + + set_done $NAME $FUNC +} + +foreach_deps() { + local NAME=$1 + local FUNC=$2 + local RECURSIVE=$3 + local NATIVE=$4 + local WAS_NATIVE=$IS_NATIVE + + source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh + [ ! $? -eq 0 ] && return 1 + source "$PACKET_SCRIPT_DIR/$NAME.sh" + [ ! $? -eq 0 ] && return 1 + if [ ! -z "$WAS_NATIVE" ]; then + DEPS="$DEPS $DEPS_NATIVE" + DEPS_NATIVE= + fi + + local CURRENT_DEPS=$DEPS + local CURRENT_DEPS_NATIVE=$DEPS_NATIVE + local PROCESS_SELF="" + if [ "$NATIVE" = "native" ]; then + CURRENT_DEPS=$DEPS_NATIVE + if [ ! -z "$TC_HOST" ]; then + PROCESS_SELF="process_self" + fi + fi + + for DEP in $CURRENT_DEPS; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; 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 + + if [ "$RECURSIVE" = "recursive" ]; then + for DEP in $CURRENT_DEPS_NATIVE; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o ! -z "$TC_HOST" ]; then + local DEP_LOCAL=$DEP + if ! native foreach_deps "$DEP_LOCAL" "$FUNC" "$RECURSIVE"; then + return 1 + fi + if ! native "$FUNC" "$DEP_LOCAL" "$NAME"; then + return 1 + fi + fi + done + fi +} + +set_toolchain() { + if [ "$1" = "native" ]; then + IS_NATIVE=1 + if [ ! "$2" = "silent" ]; then + echo " --- set toolchain $NATIVE_PLATFORM-$NATIVE_ARCH (native)" + fi + source $NATIVE_TOOLCHAIN_SCRIPT + else + IS_NATIVE= + if [ ! "$2" = "silent" ]; then + echo " --- set toolchain $PLATFORM-$ARCH (target)" + fi + source $NATIVE_TOOLCHAIN_SCRIPT + source $TOOLCHAIN_SCRIPT + fi +} + +is_complete() { + local NAME=$1 + local FUNC=$2 + + local WAS_NATIVE=$IS_NATIVE + local WAS_PLATFORM=$PLATFORM + local WAS_ARCH=$ARCH + local WAS_PACKET_DIR=$PACKET_DIR + local PROCESS_SELF="" + if [ ! -z "$TC_HOST" ]; then + PROCESS_SELF="process_self" + fi + + local SUBFUNCS_VAR_NAME=FUNC_DEPS_$FUNC + local SUBFUNCS=${!SUBFUNCS_VAR_NAME} + local COMPLETION_KEY="$PLATFORM:$ARCH:$NAME:$FUNC" + if [ ! -z ${COMPLETION_STATUS[$COMPLETION_KEY]} ]; then + if [ "${COMPLETION_STATUS[$COMPLETION_KEY]}" = "complete" ]; then + return 0 + else + return 1 + fi + fi + + COMPLETION_STATUS[$COMPLETION_KEY]=incomplete + + if ! check_packet_function $1 $2; then + return 1 + fi + if [ ! -z "$NO_CHECK_DEPS" ]; then + COMPLETION_STATUS[$COMPLETION_KEY]=complete + return 0 + fi + + source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh + [ ! $? -eq 0 ] && return 1 + source "$PACKET_SCRIPT_DIR/$NAME.sh" + [ ! $? -eq 0 ] && return 1 + if [ ! -z "$WAS_NATIVE" ]; then + DEPS="$DEPS $DEPS_NATIVE" + DEPS_NATIVE= + fi + + local FAIL= + local CURRENT_DEPS="$DEPS" + local CURRENT_DEPS_NATIVE="$DEPS_NATIVE" + for SUBFUNC in $SUBFUNCS; do + local SUBFUNC_LOCAL=$SUBFUNC + if [ "${SUBFUNC_LOCAL:0:2}" = "--" ]; then + if [ ! -z "$CURRENT_DEPS_NATIVE" ]; then + SUBFUNC_LOCAL=${SUBFUNC_LOCAL:2} + if [ -z "$WAS_NATIVE" ]; then + set_toolchain "native" "silent" + PLATFORM=$NATIVE_PLATFORM + ARCH=$NATIVE_ARCH + PACKET_DIR=$NATIVE_PACKET_DIR + fi + for DEP in $CURRENT_DEPS_NATIVE; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; then + local DEP_LOCAL=$DEP + if ! is_complete $DEP_LOCAL $SUBFUNC_LOCAL; then + FAIL=1 + break + fi + if [ "$WAS_PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$DEP_LOCAL/$SUBFUNC_LOCAL.done" ]; then + FAIL=1 + break + fi + fi + done + if [ -z "$WAS_NATIVE" ]; then + PLATFORM=$WAS_PLATFORM + ARCH=$WAS_ARCH + PACKET_DIR=$WAS_PACKET_DIR + set_toolchain "" "silent" + fi + if [ ! -z "$FAIL" ]; then + return 1 + fi + fi + elif [ "${SUBFUNC_LOCAL:0:1}" = "-" ]; then + SUBFUNC_LOCAL=${SUBFUNC_LOCAL:1} + for DEP in $CURRENT_DEPS; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" ]; then + local DEP_LOCAL=$DEP + if ! is_complete $DEP_LOCAL $SUBFUNC_LOCAL; then + return 1 + fi + if [ "$PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$DEP_LOCAL/$SUBFUNC_LOCAL.done" ]; then + return 1 + fi + fi + done + else + if ! is_complete $NAME $SUBFUNC_LOCAL; then + return 1 + fi + if [ "$PACKET_DIR/$NAME/$FUNC.done" -ot "$PACKET_DIR/$NAME/$SUBFUNC_LOCAL.done" ]; then + return 1 + fi + fi + done + + COMPLETION_STATUS[$COMPLETION_KEY]=complete +} + +prepare() { + local NAME=$1 + local FUNC=$2 + + local WAS_NATIVE=$IS_NATIVE + local WAS_PLATFORM=$PLATFORM + local WAS_ARCH=$ARCH + local WAS_PACKET_DIR=$PACKET_DIR + local PROCESS_SELF="" + if [ ! -z "$TC_HOST" ]; then + PROCESS_SELF="process_self" + fi + + local SUBFUNCS_VAR_NAME=FUNC_DEPS_$FUNC + local SUBFUNCS=${!SUBFUNCS_VAR_NAME} + + source $INCLUDE_SCRIPT_DIR/inc-pkall-none.sh + [ ! $? -eq 0 ] && return 1 + source "$PACKET_SCRIPT_DIR/$NAME.sh" + [ ! $? -eq 0 ] && return 1 + if [ ! -z "$WAS_NATIVE" ]; then + DEPS="$DEPS $DEPS_NATIVE" + DEPS_NATIVE= + fi + local FAIL= + local CURRENT_DEPS="$DEPS" + local CURRENT_DEPS_NATIVE="$DEPS_NATIVE" + for SUBFUNC in $SUBFUNCS; do + local SUBFUNC_LOCAL=$SUBFUNC + if [ "${SUBFUNC_LOCAL:0:2}" = "--" ]; then + if [ ! -z "$CURRENT_DEPS_NATIVE" ]; then + SUBFUNC_LOCAL=${SUBFUNC_LOCAL:2} + if [ -z "$WAS_NATIVE" ]; then + set_toolchain "native" + PLATFORM=$NATIVE_PLATFORM + ARCH=$NATIVE_ARCH + PACKET_DIR=$NATIVE_PACKET_DIR + fi + for DEP in $CURRENT_DEPS_NATIVE; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" -o "$PROCESS_SELF" = "process_self" ]; then + if ! $SUBFUNC_LOCAL $DEP; then + FAIL=1 + break + fi + fi + done + if [ -z "$WAS_NATIVE" ]; then + PLATFORM=$WAS_PLATFORM + ARCH=$WAS_ARCH + PACKET_DIR="$WAS_PACKET_DIR" + set_toolchain + fi + if [ ! -z "$FAIL" ]; then + return 1 + fi + fi + elif [ "${SUBFUNC_LOCAL:0:1}" = "-" ]; then + SUBFUNC_LOCAL=${SUBFUNC_LOCAL:1} + for DEP in $CURRENT_DEPS; do + if [ ! -z "$DEP" ] && [ "$DEP" != "$NAME" ]; then + if ! $SUBFUNC_LOCAL $DEP; then + return 1 + fi + fi + done + elif ! $SUBFUNC_LOCAL $NAME; then + return 1 + fi + done + + if [ ! -z "$CLEAN_BEFORE_DO" ]; then + if ! clean_packet_directory $NAME $FUNC; then + return 1 + fi + fi +} + +add_envdeps() { + if ! copy "$PACKET_DIR/$1/env" "$PACKET_DIR/$2/envdeps"; then + return 1 + fi +} + +add_envdeps_native() { + if ! copy "$PACKET_DIR/$1/env_native" "$PACKET_DIR/$2/envdeps_native"; then + return 1 + fi +} + +add_envdeps_native_cross() { + if ! copy "$NATIVE_PACKET_DIR/$1/env" "$PACKET_DIR/$2/envdeps_native"; then + return 1 + fi +} + +add_envdeps_release() { + if ! copy "$PACKET_DIR/$1/env_release" "$PACKET_DIR/$2/envdeps_release"; then + return 1 + fi +} + +# functions + +update() { + local NAME=$1 + prepare $NAME download || return 1 + call_packet_function $NAME download "" "" compare_results || return 1 +} + +download() { + local NAME=$1 + is_complete $NAME download && return 0 + prepare $NAME download || return 1 + call_packet_function $NAME download || return 1 +} + +unpack() { + local NAME=$1 + is_complete $NAME unpack && return 0 + prepare $NAME unpack || return 1 + call_packet_function $NAME unpack || return 1 +} + +envdeps() { + local NAME=$1 + is_complete $NAME envdeps && return 0 + prepare $NAME envdeps || return 1 + + message "$NAME envdeps" + try_do_nothing $NAME envdeps && return 0 + + 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 +} + +envdeps_native() { + local NAME=$1 + is_complete $NAME envdeps_native && return 0 + prepare $NAME envdeps_native || return 1 + + message "$NAME envdeps_native" + try_do_nothing $NAME envdeps_native && return 0 + + clean_packet_directory_silent $NAME envdeps_native + mkdir -p "$PACKET_DIR/$NAME/envdeps_native" + if ! foreach_deps $NAME add_envdeps_native; then + return 1 + fi + if ! foreach_deps $NAME add_envdeps_native_cross "" "native"; then + return 1 + fi + set_done $NAME envdeps_native +} + +build() { + local NAME=$1 + is_complete $NAME build && return 0 + prepare $NAME build || return 1 + call_packet_function $NAME build prepare_build || return 1 +} + +install() { + local NAME=$1 + is_complete $NAME install && return 0 + prepare $NAME install || return 1 + call_packet_function $NAME install prepare_install || return 1 +} + +env() { + local NAME=$1 + is_complete $NAME env && return 0 + prepare $NAME env || return 1 + + message "$NAME env" + try_do_nothing $NAME env && return 0 + + clean_packet_directory_silent $NAME env + mkdir -p "$PACKET_DIR/$NAME/env" + copy "$PACKET_DIR/$NAME/envdeps" "$PACKET_DIR/$NAME/env" || return 1 + copy "$PACKET_DIR/$NAME/install" "$PACKET_DIR/$NAME/env" || return 1 + + set_done $NAME env +} + +env_native() { + local NAME=$1 + is_complete $NAME env_native && return 0 + prepare $NAME env_native || return 1 + + message "$NAME env_native" + try_do_nothing $NAME env_native && return 0 + + clean_packet_directory_silent $NAME env_native + mkdir -p "$PACKET_DIR/$NAME/env_native" + if ! copy "$PACKET_DIR/$NAME/envdeps_native" "$PACKET_DIR/$NAME/env_native"; then + return 1 + fi + set_done $NAME env_native +} + +license() { + local NAME=$1 + is_complete $NAME license && return 0 + prepare $NAME license || return 1 + call_packet_function $NAME license prepare_license || return 1 +} + +envdeps_release() { + local NAME=$1 + is_complete $NAME envdeps_release && return 0 + prepare $NAME envdeps_release || return 1 + + message "$NAME envdeps_release" + try_do_nothing $NAME envdeps_release && return 0 + + 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 +} + +install_release() { + local NAME=$1 + is_complete $NAME install_release && return 0 + prepare $NAME install_release || return 1 + call_packet_function $NAME install_release prepare_install_release || return 1 +} + +env_release() { + local NAME=$1 + is_complete $NAME env_release && return 0 + prepare $NAME env_release || return 1 + + message "$NAME env_release" + try_do_nothing $NAME env_release && return 0 + + clean_packet_directory_silent $NAME env_release + mkdir -p "$PACKET_DIR/$NAME/env_release" + copy "$PACKET_DIR/$NAME/envdeps_release" "$PACKET_DIR/$NAME/env_release" || return 1 + copy "$PACKET_DIR/$NAME/install_release" "$PACKET_DIR/$NAME/env_release" || return 1 + + set_done $NAME env_release +} + + +############# + +clean_download() { + clean_packet_directory $1 download +} + +clean_unpack() { + clean_packet_directory $1 unpack +} + +clean_envdeps() { + clean_packet_directory $1 envdeps +} + +clean_envdeps_native() { + clean_packet_directory $1 envdeps_native +} + +clean_build() { + clean_packet_directory $1 build +} + +clean_install() { + clean_packet_directory $1 install +} + +clean_env() { + clean_packet_directory $1 env +} + +clean_env_native() { + clean_packet_directory $1 env_native +} + +clean_license() { + clean_packet_directory $1 license +} + +clean_envdeps_release() { + clean_packet_directory $1 envdeps_release +} + +clean_install_release() { + clean_packet_directory $1 install_release +} + +clean_env_release() { + clean_packet_directory $1 env_release +} + +clean_all_env() { + clean_envdeps $1 + clean_envdeps_native $1 + clean_install $1 + clean_env $1 + clean_env_native $1 + clean_license $1 + clean_envdeps_release $1 + clean_install_release $1 + clean_env_release $1 +} + +clean_all_install() { + clean_build $1 + clean_all_env $1 +} + +clean_all_unpack() { + clean_download $1 + clean_unpack $1 +} + +clean() { + message "$1 clean all" + try_do_nothing $NAME clean_all && return 0 + rm -rf "$PACKET_DIR/$1" +} + +############# + +set_undone_download() { + set_undone $1 download +} + +set_undone_unpack() { + set_undone $1 download +} + +set_undone_envdeps() { + set_undone $1 envdeps +} + +set_undone_envdeps_native() { + set_undone $1 envdeps_native +} + +set_undone_build() { + set_undone $1 build +} + +set_undone_install() { + set_undone $1 install +} + +set_undone_env() { + set_undone $1 env +} + +set_undone_env_native() { + set_undone $1 env_native +} + +set_undone_license() { + set_undone $1 license +} + +set_undone_envdeps_release() { + set_undone $1 envdeps_release +} + +set_undone_install_release() { + set_undone $1 install_release +} + +set_undone_env_release() { + set_undone $1 env_release +} + +set_undone_all_env() { + set_undone_envdeps $1 + set_undone_envdeps_native $1 + set_undone_install $1 + set_undone_env $1 + set_undone_env_native $1 + set_undone_license $1 + set_undone_envdeps_release $1 + set_undone_install_release $1 + set_undone_env_release $1 +} + +set_undone_all_install() { + set_undone_build $1 + set_undone_all_env $1 +} + +set_undone_all_unpack() { + set_undone_download $1 + set_undone_unpack $1 +} + +set_undone_all() { + set_undone_all_unpack $1 + set_undone_all_install $1 +} + +############# + +with_deps() { + if ! foreach_deps "$2" "$1" "recursive"; then + return 1 + fi + if ! foreach_deps "$2" "$1" "recursive" "native"; then + return 1 + fi + if ! "$1" "$2"; then + return 1 + fi +} + +shell() { + echo "Set environment for $1" + set_environment_vars $1 + cd $PACKET_DIR/$1 + if [ -z "${*:2}" ]; then + /bin/bash -i + else + "${@:2}" + fi +} + +dry_run() { + DRY_RUN=1 + "$@" +} + +no_check_deps() { + NO_CHECK_DEPS=1 + "$@" +} + +force() { + FORCE=1 + "$@" +} + +clean_before_do() { + CLEAN_BEFORE_DO=1 + "$@" +} + +native() { + local ARGS="$@" + local LOCAL_ERROR=0 + if [ ! -z "$IS_NATIVE" ]; then + $ARGS + else + local WAS_PLATFORM=$PLATFORM + local WAS_ARCH=$ARCH + local WAS_PACKET_DIR=$PACKET_DIR + + set_toolchain "native" + PLATFORM=$NATIVE_PLATFORM + ARCH=$NATIVE_ARCH + PACKET_DIR=$NATIVE_PACKET_DIR + if [ ! -z "$NAME" ]; then + set_environment_vars $NAME + fi + + $ARGS + LOCAL_ERROR=$? + + PLATFORM=$WAS_PLATFORM + ARCH=$WAS_ARCH + PACKET_DIR=$WAS_PACKET_DIR + set_toolchain + if [ ! -z "$NAME" ]; then + set_environment_vars $NAME + fi + fi + return $LOCAL_ERROR +} + +native_at_place() { + local LOCAL_ERROR=0 + if [ ! -z "$IS_NATIVE" ]; then + "$@" + else + local WAS_PLATFORM=$PLATFORM + local WAS_ARCH=$ARCH + + set_toolchain "native" + PLATFORM=$NATIVE_PLATFORM + ARCH=$NATIVE_ARCH + if [ ! -z "$NAME" ]; then + set_environment_vars $NAME + fi + + "$@" + LOCAL_ERROR=$? + + PLATFORM=$WAS_PLATFORM + ARCH=$WAS_ARCH + set_toolchain + if [ ! -z "$NAME" ]; then + set_environment_vars $NAME + fi + fi + return $LOCAL_ERROR +} + +foreach_packet() { + local COMMAND=$1 + local FILE= + ls -1 "$PACKET_SCRIPT_DIR" | grep -e \\.sh$ | while read FILE; do + if ! $COMMAND "${FILE:0:-3}" ${@:2}; then + return 1 + fi + done +} + +chain() { + local ARG + local CNT=1 + for ARG in "$@"; do + if [ "${@:CNT:1}" = "chain" ]; then + break; + fi + CNT=$((CNT+1)) + done + if ! "${@:0:CNT}"; then return 1; fi + if ! "${@:CNT}"; then return 1; fi +} + +with_envvar() { + local LOCAL_ENVVAR_NAME="$1" + local LOCAL_ENVVAR_VALUE="$2" + local LOCAL_ENVVAR_PREV="${!LOCAL_ENVVAR_NAME}" + eval export $LOCAL_ENVVAR_NAME="$LOCAL_ENVVAR_VALUE" + if ! "${@:3}"; then + eval export $1="$LOCAL_ENVVAR_PREV" + return 1 + fi + eval export $1="$LOCAL_ENVVAR_PREV" +} + +set_toolchain +"$@" + diff --git a/env-builder-data/build/script/include/inc-pkall-default.sh b/env-builder-data/build/script/include/inc-pkall-default.sh new file mode 100644 index 0000000..218c5b4 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkall-default.sh @@ -0,0 +1,13 @@ + +# PK_URL +# PK_VERSION +# PK_ARCHIVE +# PK_DIRNAME +# PK_CONFIGURE_OPTIONS +# PK_CFLAGS +# PK_CPPFLAGS +# PK_LDFLAGS +# PK_CONFIGURE_OPTIONS_DEFAULT + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkallinstall-default.sh diff --git a/env-builder-data/build/script/include/inc-pkall-git.sh b/env-builder-data/build/script/include/inc-pkall-git.sh new file mode 100644 index 0000000..d94eb2c --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkall-git.sh @@ -0,0 +1,12 @@ + +# PK_URL +# PK_VERSION +# PK_DIRNAME +# PK_CONFIGURE_OPTIONS +# PK_CFLAGS +# PK_CPPFLAGS +# PK_CONFIGURE_OPTIONS_DEFAULT +# PK_GIT_CHECKOUT + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkallinstall-default.sh diff --git a/env-builder-data/build/script/include/inc-pkall-none.sh b/env-builder-data/build/script/include/inc-pkall-none.sh new file mode 100644 index 0000000..7c77131 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkall-none.sh @@ -0,0 +1,82 @@ +DEPS= +DEPS_NATIVE= + +vars_clear "PK_" + +PK_URL= +PK_VERSION= +PK_ARCHIVE= +PK_DIRNAME= +PK_CONFIGURE_OPTIONS= +PK_CFLAGS= +PK_CPPFLAGS= +PK_LDFLAGS= +PK_GIT_CHECKOUT= +PK_LICENSE_FILES= + +PK_CONFIGURE_OPTIONS_DEFAULT= + +if [ ! -z "$HOST" ]; then + PK_CONFIGURE_OPTIONS_DEFAULT=" \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + --host=$HOST " +fi + +PK_CONFIGURE_OPTIONS_DEFAULT=" \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + --prefix=$INSTALL_PACKET_DIR \ + --disable-static \ + --enable-shared " + + +pkhelper_patch() { + local FILE_PATH="$1" + local FILE_NAME="$2" + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/$FILE_PATH/$FILE_NAME" "$FILE_PATH/" || return 1 + patch "$FILE_PATH/$FILE_NAME" "$FILES_PACKET_DIR/$FILE_NAME.patch" || return 1 +} + + +pkdownload() { + return 0 +} + +pkunpack() { + return 0 +} + +pkbuild() { + return 0 +} + +pklicense() { + return 0 +} + +pkinstall() { + return 0 +} + +pkinstall_release() { + return 0 +} + +pkhook_version() { + echo "$NAME" | cut -d'-' -f 2- +} + +pkhook_prebuild() { + return 0 +} + +pkhook_postlicense() { + return 0 +} + +pkhook_postinstall() { + return 0 +} + +pkhook_postinstall_release() { + return 0 +} diff --git a/env-builder-data/build/script/include/inc-pkallinstall-default.sh b/env-builder-data/build/script/include/inc-pkallinstall-default.sh new file mode 100644 index 0000000..44bdb1f --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkallinstall-default.sh @@ -0,0 +1,7 @@ + +# PK_DIRNAME + +source $INCLUDE_SCRIPT_DIR/inc-pkbuild-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pklicense-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh diff --git a/env-builder-data/build/script/include/inc-pkallunpack-default.sh b/env-builder-data/build/script/include/inc-pkallunpack-default.sh new file mode 100644 index 0000000..2d55f80 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkallunpack-default.sh @@ -0,0 +1,7 @@ + +# PK_URL +# PK_VERSION +# PK_ARCHIVE + +source $INCLUDE_SCRIPT_DIR/inc-pkdownload-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkunpack-default.sh diff --git a/env-builder-data/build/script/include/inc-pkallunpack-git.sh b/env-builder-data/build/script/include/inc-pkallunpack-git.sh new file mode 100644 index 0000000..6f53c1b --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkallunpack-git.sh @@ -0,0 +1,8 @@ + +# PK_URL +# PK_VERSION +# PK_DIRNAME +# PK_GIT_CHECKOUT + +source $INCLUDE_SCRIPT_DIR/inc-pkdownload-git.sh +source $INCLUDE_SCRIPT_DIR/inc-pkunpack-git.sh diff --git a/env-builder-data/build/script/include/inc-pkbuild-default.sh b/env-builder-data/build/script/include/inc-pkbuild-default.sh new file mode 100644 index 0000000..8f88c2f --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkbuild-default.sh @@ -0,0 +1,29 @@ + +# PK_DIRNAME +# PK_CONFIGURE_OPTIONS +# PK_CONFIGURE_OPTIONS_DEFAULT +# PK_CFLAGS +# PK_CPPFLAGS +# PK_LDFLAGS + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + if ! pkhook_prebuild; then + return 1 + fi + + if ! check_packet_function $NAME build.configure; then + CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \ + ./configure \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.configure + fi + + if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \ + make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/include/inc-pkdownload-default.sh b/env-builder-data/build/script/include/inc-pkdownload-default.sh new file mode 100644 index 0000000..1b38bc3 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkdownload-default.sh @@ -0,0 +1,9 @@ + +# PK_URL +# PK_ARCHIVE + +pkdownload() { + wget -c "$PK_URL" -O "$PK_ARCHIVE" \ + || curl -L "$PK_URL" -o "$PK_ARCHIVE" \ + || return 1 +} diff --git a/env-builder-data/build/script/include/inc-pkdownload-git.sh b/env-builder-data/build/script/include/inc-pkdownload-git.sh new file mode 100644 index 0000000..8f00edb --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkdownload-git.sh @@ -0,0 +1,26 @@ + +# PK_URL +# PK_DIRNAME +# PK_GIT_CHECKOUT + +pkdownload() { + if [ -d "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME/.git" ]; then + cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 + git fetch || return 1 + if [ "$PK_GIT_CHECKOUT" = "" ]; then + git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) || return 1 + else + git reset --hard "$PK_GIT_CHECKOUT" || return 1 + fi + git submodule init || true + git submodule update || true + else + git clone "$PK_URL" || return 1 + cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" || return 1 + if [ ! "$PK_GIT_CHECKOUT" = "" ]; then + git reset --hard "$PK_GIT_CHECKOUT" || return 1 + fi + git submodule init || true + git submodule update || true + fi +} diff --git a/env-builder-data/build/script/include/inc-pkinstall-default.sh b/env-builder-data/build/script/include/inc-pkinstall-default.sh new file mode 100644 index 0000000..567ab46 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkinstall-default.sh @@ -0,0 +1,14 @@ + +# PK_DIRNAME + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! make install; then + return 1 + fi + + cd "$INSTALL_PACKET_DIR" + if ! pkhook_postinstall; then + return 1 + fi +} diff --git a/env-builder-data/build/script/include/inc-pkinstall_release-default.sh b/env-builder-data/build/script/include/inc-pkinstall_release-default.sh new file mode 100644 index 0000000..01cd993 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkinstall_release-default.sh @@ -0,0 +1,17 @@ + +pkinstall_release() { + copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR" || return 1 + + rm -rf "$INSTALL_RELEASE_PACKET_DIR/include" + remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a + remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib64" *.a + rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/aclocal" + rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/devhelp" + rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/doc" + rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/gtk-doc" + rm -rf "$INSTALL_RELEASE_PACKET_DIR/share/man" + + if ! pkhook_postinstall_release; then + return 1 + fi +} diff --git a/env-builder-data/build/script/include/inc-pklicense-default.sh b/env-builder-data/build/script/include/inc-pklicense-default.sh new file mode 100644 index 0000000..8689e04 --- /dev/null +++ b/env-builder-data/build/script/include/inc-pklicense-default.sh @@ -0,0 +1,47 @@ + +# PK_DIRNAME +# PK_LICENSE_FILES + +pklicense() { + local TARGET="$LICENSE_PACKET_DIR/license-$NAME" + rm -f "$TARGET" + + local FILES=" \ + AUTHORS \ + AUTHORS.txt \ + COPYING \ + COPYING.txt \ + LICENSE \ + LICENSE.txt \ + License.txt \ + COPYRIGHT \ + Copyright \ + Copyright.txt \ + CREDITS \ + CREDITS.txt " + if [ ! -z "$PK_LICENSE_FILES" ]; then + FILES="$PK_LICENSE_FILES" + fi + + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + local FILE= + for FILE in $FILES; do + if [ -f "$FILE" ]; then + add_license "$FILE" "$FILE" "$TARGET" || (echo "Cannot copy license file: $FILE"; return 1) + elif [ -f "$FILES_PACKET_DIR/$FILE" ]; then + add_license "$FILES_PACKET_DIR/$FILE" "" "$TARGET" || (echo "Cannot copy license file: $FILE"; return 1) + elif [ ! -z "$PK_LICENSE_FILES" ]; then + echo "Cannot copy license file: $FILE" + return 1 + fi + done + + if [ ! -f "$TARGET" ]; then + echo "Cannot copy any license"; + return 1 + fi + + if ! pkhook_postlicense; then + return 1 + fi +} diff --git a/env-builder-data/build/script/include/inc-pkunpack-default.sh b/env-builder-data/build/script/include/inc-pkunpack-default.sh new file mode 100644 index 0000000..cfcf91e --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkunpack-default.sh @@ -0,0 +1,27 @@ + +# PK_VERSION +# 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 + + if [ -z "$PK_VERSION" ]; then + PK_VERSION="$(pkhook_version)" + [ $? -eq 0 ] || return 1 + fi + echo "$PK_VERSION" > "$UNPACK_PACKET_DIR/version-$NAME" + [ $? -eq 0 ] || return 1 + return 0 +} \ No newline at end of file diff --git a/env-builder-data/build/script/include/inc-pkunpack-git.sh b/env-builder-data/build/script/include/inc-pkunpack-git.sh new file mode 100644 index 0000000..a04cecc --- /dev/null +++ b/env-builder-data/build/script/include/inc-pkunpack-git.sh @@ -0,0 +1,21 @@ + +# PK_VERSION +# PK_DIRNAME + +pkunpack() { + if ! (copy "$DOWNLOAD_PACKET_DIR" "$UNPACK_PACKET_DIR" \ + && rm -f -r "$UNPACK_PACKET_DIR/$PK_DIRNAME/.git"); then + return 1 + fi + + if [ -z "$PK_VERSION" ]; then + PK_VERSION="$(pkhook_version)" + [ $? -eq 0 ] || return 1 + fi + cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME" + local COMMIT=`git rev-parse HEAD` + [ $? -eq 0 ] || return 1 + echo "$PK_VERSION-$COMMIT" > "$UNPACK_PACKET_DIR/version-$NAME" + [ $? -eq 0 ] || return 1 + return 0 +} diff --git a/env-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh b/env-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh new file mode 100644 index 0000000..cf0e5df --- /dev/null +++ b/env-builder-data/build/script/packet/adwaitaicontheme-3.24.0.sh @@ -0,0 +1,10 @@ +DEPS="rsvg-2.40.16 gtk-3.22.12" + +PK_DIRNAME="adwaita-icon-theme-3.24.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/adwaita-icon-theme/3.24/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--disable-gtk2-engine" +PK_LICENSE_FILES="AUTHORS COPYING COPYING_CCBYSA3 COPYING_LGPL" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/appimagekit-master.sh b/env-builder-data/build/script/packet/appimagekit-master.sh new file mode 100644 index 0000000..b920db5 --- /dev/null +++ b/env-builder-data/build/script/packet/appimagekit-master.sh @@ -0,0 +1,33 @@ +DEPS="png-1.6.26" +DEPS_NATIVE="cmake-3.6.2" + +PK_DIRNAME="AppImageKit" +PK_URL="https://github.com/probonopd/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="d5102de21952217e2f9d0d2119442f843e0fa4dd" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.configure; then + if ! cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PACKET_DIR .; then + return 1 + fi + set_done $NAME build.configure + fi + + if ! make -j${THREADS}; then + return 1 + fi +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/bin" + if ! (cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppImageAssistant" "$INSTALL_PACKET_DIR/bin/" \ + && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppRun" "$INSTALL_PACKET_DIR/bin/" \ + && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/desktopintegration" "$INSTALL_PACKET_DIR/bin/" \ + && chmod a+x "$INSTALL_PACKET_DIR/bin/desktopintegration"); then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/atk-2.22.0.sh b/env-builder-data/build/script/packet/atk-2.22.0.sh new file mode 100644 index 0000000..9cb5097 --- /dev/null +++ b/env-builder-data/build/script/packet/atk-2.22.0.sh @@ -0,0 +1,8 @@ +DEPS="glib-2.50.0" +#DEPS_NATIVE="gobjectintrospection-1.50.0" + +PK_DIRNAME="atk-2.22.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/atk/2.22/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/atkmm-2.24.2.sh b/env-builder-data/build/script/packet/atkmm-2.24.2.sh new file mode 100644 index 0000000..c9b225f --- /dev/null +++ b/env-builder-data/build/script/packet/atkmm-2.24.2.sh @@ -0,0 +1,7 @@ +DEPS="atk-2.22.0 glibmm-2.50.0" + +PK_DIRNAME="atkmm-2.24.2" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/atkmm/2.24/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/atspi2-2.22.0.sh b/env-builder-data/build/script/packet/atspi2-2.22.0.sh new file mode 100644 index 0000000..62aeabf --- /dev/null +++ b/env-builder-data/build/script/packet/atspi2-2.22.0.sh @@ -0,0 +1,7 @@ +DEPS="glib-2.50.0" + +PK_DIRNAME="at-spi2-core-2.22.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/at-spi2-core/2.22/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/atspi2atk-2.22.0.sh b/env-builder-data/build/script/packet/atspi2atk-2.22.0.sh new file mode 100644 index 0000000..5b6048e --- /dev/null +++ b/env-builder-data/build/script/packet/atspi2atk-2.22.0.sh @@ -0,0 +1,7 @@ +DEPS="atk-2.22.0 atspi2-2.22.0" + +PK_DIRNAME="at-spi2-atk-2.22.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/at-spi2-atk/2.22/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/automake-1.15.sh b/env-builder-data/build/script/packet/automake-1.15.sh new file mode 100644 index 0000000..79fb484 --- /dev/null +++ b/env-builder-data/build/script/packet/automake-1.15.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="automake-1.15" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://ftp.gnu.org/gnu/automake/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/berkeleydb-5.3.28.sh b/env-builder-data/build/script/packet/berkeleydb-5.3.28.sh new file mode 100644 index 0000000..c6013e2 --- /dev/null +++ b/env-builder-data/build/script/packet/berkeleydb-5.3.28.sh @@ -0,0 +1,24 @@ +DEPS="" + +PK_DIRNAME="db-5.3.28/build_unix" +PK_ARCHIVE="db-5.3.28.tar.gz" +PK_URL="http://download.oracle.com/berkeley-db/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if ! check_packet_function $NAME build.cunfigure; then + CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + ../dist/configure \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.cunfigure + fi + + if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/blas-3.7.0.files/COPYING b/env-builder-data/build/script/packet/blas-3.7.0.files/COPYING new file mode 100644 index 0000000..5ea056c --- /dev/null +++ b/env-builder-data/build/script/packet/blas-3.7.0.files/COPYING @@ -0,0 +1,9 @@ +The reference BLAS is a freely-available software package. It is available from netlib via anonymous ftp and the World Wide Web. Thus, it can be included in commercial software packages (and has been). We only ask that proper credit be given to the authors. + +Like all software, it is copyrighted. It is not trademarked, but we do ask the following: + + If you modify the source for these routines we ask that you change the name of the routine and comment the changes made to the original. + + We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support. + +http://www.netlib.org/blas diff --git a/env-builder-data/build/script/packet/blas-3.7.0.sh b/env-builder-data/build/script/packet/blas-3.7.0.sh new file mode 100644 index 0000000..28aaea7 --- /dev/null +++ b/env-builder-data/build/script/packet/blas-3.7.0.sh @@ -0,0 +1,33 @@ +DEPS="" + +PK_DIRNAME="BLAS-3.7.0" +PK_ARCHIVE="blas-3.7.0.tgz" +PK_URL="http://www.netlib.org/blas/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + +rm -f make.inc +cat > make.inc << EOF +SHELL = /bin/sh +FORTRAN = ${FORTRAN:-gfortran} +OPTS = -O3 +DRVOPTS = \$(OPTS) +NOOPT = +LOADER = \$(FORTRAN) +LOADOPTS = +ARCH = ${AR:-ar} +ARCHFLAGS = cr +RANLIB = ${RANLIB:-ranlib} +BLASLIB = libblas.a +EOF + + make || return 1 +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/lib" + cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/libblas.a" "$INSTALL_PACKET_DIR/lib/" || return 1 +} diff --git a/env-builder-data/build/script/packet/boost-1.61.0.sh b/env-builder-data/build/script/packet/boost-1.61.0.sh new file mode 100644 index 0000000..6973790 --- /dev/null +++ b/env-builder-data/build/script/packet/boost-1.61.0.sh @@ -0,0 +1,35 @@ +DEPS="zlib-1.2.11 bzip2-1.0.6" + +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" +PK_LICENSE_FILES="LICENSE_1_0.txt" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! check_packet_function $NAME build.configure; then + local LOCAL_PREFIX=$INSTALL_PACKET_DIR + native_at_place ./bootstrap.sh --prefix=$LOCAL_PREFIX --without-libraries=python || return 1 + set_done $NAME build.configure + fi + + local LOCAL_OPTIONS= + if [ "$PLATFORM" = "win" ]; then + LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam" + echo "using gcc : win : $CXX : $CFLAGS $CXXFLAGS $LDFLAGS ;" > user-config.jam + fi + ./b2 -j${THREADS} $LOCAL_OPTIONS || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + local LOCAL_OPTIONS= + if [ "$PLATFORM" = "win" ]; then + LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam" + fi + ./b2 $LOCAL_OPTIONS install || return 1 + rm -rf "$INSTALL_RELEASE_PACKET_DIR/include" + remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a +} diff --git a/env-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch b/env-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch new file mode 100644 index 0000000..ee75350 --- /dev/null +++ b/env-builder-data/build/script/packet/bzip2-1.0.6.files/Makefile.patch @@ -0,0 +1,22 @@ +15c15 +< SHELL=/bin/sh +--- +> SHELL?=/bin/sh +18,21c18,21 +< CC=gcc +< AR=ar +< RANLIB=ranlib +< LDFLAGS= +--- +> CC?=gcc +> AR?=ar +> RANLIB?=ranlib +> LDFLAGS?= +24c24 +< CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) +--- +> CFLAGS+=-Wall -Winline -O2 -g -fPIC $(BIGFILES) +27c27 +< PREFIX=/usr/local +--- +> PREFIX?=/usr/local diff --git a/env-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch b/env-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch new file mode 100644 index 0000000..7af0f7b --- /dev/null +++ b/env-builder-data/build/script/packet/bzip2-1.0.6.files/bzip2.c.patch @@ -0,0 +1,4 @@ +131c131 +< # include +--- +> # include diff --git a/env-builder-data/build/script/packet/bzip2-1.0.6.sh b/env-builder-data/build/script/packet/bzip2-1.0.6.sh new file mode 100644 index 0000000..383d19b --- /dev/null +++ b/env-builder-data/build/script/packet/bzip2-1.0.6.sh @@ -0,0 +1,28 @@ + +PK_DIRNAME="bzip2-1.0.6" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://fossies.org/linux/misc/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/Makefile" ./ || return 1 + patch "Makefile" "$FILES_PACKET_DIR/Makefile.patch" || return 1 + + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/bzip2.c" ./ || return 1 + patch "bzip2.c" "$FILES_PACKET_DIR/bzip2.c.patch" || return 1 + + PREFIX="$INSTALL_PACKET_DIR" make -j${THREADS} libbz2.a || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + mkdir -p "$INSTALL_PACKET_DIR/include" + cp -f bzlib.h "$INSTALL_PACKET_DIR/include/" || return 1 + + mkdir -p "$INSTALL_PACKET_DIR/lib" + cp -f libbz2.a "$INSTALL_PACKET_DIR/lib/"|| return 1 +} diff --git a/env-builder-data/build/script/packet/cairo-1.15.4.sh b/env-builder-data/build/script/packet/cairo-1.15.4.sh new file mode 100644 index 0000000..d96d6ad --- /dev/null +++ b/env-builder-data/build/script/packet/cairo-1.15.4.sh @@ -0,0 +1,12 @@ +DEPS="png-1.6.26 pixman-0.34.0 fontconfig-2.11.0 glib-2.50.0" + +PK_DIRNAME="cairo-1.15.4" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://www.cairographics.org/snapshots/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$PLATFORM" = "linux" ] || [ ! -z "$IS_NATIVE" ]; then + DEPS="$DEPS xcbfull-1.12" +fi diff --git a/env-builder-data/build/script/packet/cairomm-1.12.0.sh b/env-builder-data/build/script/packet/cairomm-1.12.0.sh new file mode 100644 index 0000000..7ecc6ae --- /dev/null +++ b/env-builder-data/build/script/packet/cairomm-1.12.0.sh @@ -0,0 +1,11 @@ +DEPS="cairo-1.15.4 sigcpp-2.10.0" + +PK_DIRNAME="cairomm-1.12.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.cairographics.org/releases/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$PLATFORM" = "win" ]; then + PK_CONFIGURE_OPTIONS="CXXFLAGS=-DM_PI=3.14159265358979323846" +fi \ No newline at end of file diff --git a/env-builder-data/build/script/packet/cmake-3.6.2.sh b/env-builder-data/build/script/packet/cmake-3.6.2.sh new file mode 100644 index 0000000..670f42b --- /dev/null +++ b/env-builder-data/build/script/packet/cmake-3.6.2.sh @@ -0,0 +1,12 @@ +DEPS="" + +PK_DIRNAME="cmake-3.6.2" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://cmake.org/files/v3.6/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--prefix=$INSTALL_PACKET_DIR" +if [ ! -z "$HOST" ]; then + PK_CONFIGURE_OPTIONS_DEFAULT="$PK_CONFIGURE_OPTIONS_DEFAULT --host=$HOST" +fi + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/croco-0.6.11.sh b/env-builder-data/build/script/packet/croco-0.6.11.sh new file mode 100644 index 0000000..6187963 --- /dev/null +++ b/env-builder-data/build/script/packet/croco-0.6.11.sh @@ -0,0 +1,9 @@ +DEPS="glib-2.50.0 xml-2.9.4" + +PK_DIRNAME="libcroco-0.6.11" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/libcroco/0.6/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + diff --git a/env-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh b/env-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh new file mode 100644 index 0000000..00109c3 --- /dev/null +++ b/env-builder-data/build/script/packet/dlfcnwin32-1.1.1.sh @@ -0,0 +1,23 @@ + +PK_DIRNAME="dlfcn-win32-1.1.1" +PK_ARCHIVE="v1.1.1.tar.gz" +PK_URL="https://github.com/dlfcn-win32/dlfcn-win32/archive/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + if ! check_packet_function $NAME build.configure; then + cc="$CC" ./configure \ + --prefix="$INSTALL_PACKET_DIR" \ + --disable-static \ + --enable-shared \ + || return 1 + set_done $NAME build.configure + fi + + make -j${THREADS} || return 1 +} + \ No newline at end of file diff --git a/env-builder-data/build/script/packet/doxygen-1.8.8.sh b/env-builder-data/build/script/packet/doxygen-1.8.8.sh new file mode 100644 index 0000000..1500c69 --- /dev/null +++ b/env-builder-data/build/script/packet/doxygen-1.8.8.sh @@ -0,0 +1,9 @@ +DEPS="graphviz-2.40.1" + +PK_DIRNAME="doxygen-1.8.8" +PK_ARCHIVE="$PK_DIRNAME.src.tar.gz" +PK_URL="http://ftp.stack.nl/pub/users/dimitri/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--prefix $INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/epoxy-master.sh b/env-builder-data/build/script/packet/epoxy-master.sh new file mode 100644 index 0000000..6dd7855 --- /dev/null +++ b/env-builder-data/build/script/packet/epoxy-master.sh @@ -0,0 +1,16 @@ +DEPS="" + +PK_DIRNAME="libepoxy" +PK_URL="https://github.com/anholt/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/1.4.2" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if ! check_packet_function $NAME build.cunfigure; then + ./autogen.sh --host=$HOST --prefix=$INSTALL_PACKET_DIR || return 1 + set_done $NAME build.cunfigure + fi + make -j${THREADS} || return 1 +} diff --git a/env-builder-data/build/script/packet/expat-2.2.5.sh b/env-builder-data/build/script/packet/expat-2.2.5.sh new file mode 100644 index 0000000..ec561a9 --- /dev/null +++ b/env-builder-data/build/script/packet/expat-2.2.5.sh @@ -0,0 +1,6 @@ + +PK_DIRNAME="expat-2.2.5" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://github.com/libexpat/libexpat/releases/download/R_2_2_5/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/ffi-3.2.1.sh b/env-builder-data/build/script/packet/ffi-3.2.1.sh new file mode 100644 index 0000000..01552f3 --- /dev/null +++ b/env-builder-data/build/script/packet/ffi-3.2.1.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="libffi-3.2.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="ftp://sourceware.org/pub/libffi/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/ffmpeg-3.1.5.sh b/env-builder-data/build/script/packet/ffmpeg-3.1.5.sh new file mode 100644 index 0000000..5c9fccf --- /dev/null +++ b/env-builder-data/build/script/packet/ffmpeg-3.1.5.sh @@ -0,0 +1,42 @@ +# + sdl ? +# + yasm +# + lame ? +# + ogg +# + theora +# + vorbis +# + x264 + +DEPS="lame-3.99.5 ogg-1.3.2 theora-1.1.1 vorbis-1.3.5 x264-master sdl-1.2.15" +DEPS_NATIVE="yasm-1.3.0" + +PK_DIRNAME="ffmpeg-3.1.5" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="http://ffmpeg.org/releases/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT=" \ + --prefix=$INSTALL_PACKET_DIR \ + --disable-static \ + --enable-shared" + +PK_CONFIGURE_OPTIONS=" + --disable-doc \ + --enable-rpath \ + --enable-gpl \ + --enable-libx264 \ + --enable-libmp3lame \ + --enable-libtheora \ + --enable-libvorbis" + +if [ "$PLATFORM" = "win" ]; then + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS \ + --arch=x86_$ARCH \ + --target-os=mingw$ARCH \ + --cross-prefix=$HOST- \ + --host-cc=$HOST-gcc \ + --host-ld=$HOST-gcc \ + --enable-cross-compile" +fi + +PK_LICENSE_FILES="CREDITS LICENSE.md COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 COPYING.LGPLv3" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/fftw-3.3.5.sh b/env-builder-data/build/script/packet/fftw-3.3.5.sh new file mode 100644 index 0000000..cd29881 --- /dev/null +++ b/env-builder-data/build/script/packet/fftw-3.3.5.sh @@ -0,0 +1,9 @@ +DEPS="fftwsingle-3.3.5" + +PK_DIRNAME="fftw-3.3.5" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://fftw.org/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--enable-double" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/fftwsingle-3.3.5.sh b/env-builder-data/build/script/packet/fftwsingle-3.3.5.sh new file mode 100644 index 0000000..310b104 --- /dev/null +++ b/env-builder-data/build/script/packet/fftwsingle-3.3.5.sh @@ -0,0 +1,9 @@ +DEPS="" + +PK_DIRNAME="fftw-3.3.5" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://fftw.org/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--enable-single" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/fontconfig-2.11.0.sh b/env-builder-data/build/script/packet/fontconfig-2.11.0.sh new file mode 100644 index 0000000..df237b6 --- /dev/null +++ b/env-builder-data/build/script/packet/fontconfig-2.11.0.sh @@ -0,0 +1,12 @@ +DEPS="freetype-2.8.1 expat-2.2.5" + +PK_DIRNAME="fontconfig-2.11.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.freedesktop.org/software/fontconfig/release/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkhook_prebuild() { + rm -rf test + ln -s src test +} diff --git a/env-builder-data/build/script/packet/freeglut-3.0.0.sh b/env-builder-data/build/script/packet/freeglut-3.0.0.sh new file mode 100644 index 0000000..fdf6d8e --- /dev/null +++ b/env-builder-data/build/script/packet/freeglut-3.0.0.sh @@ -0,0 +1,29 @@ +DEPS_NATIVE="cmake-3.6.2" + +PK_DIRNAME="freeglut-3.0.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://prdownloads.sourceforge.net/freeglut/$PK_ARCHIVE?download" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.cunfigure; then + local LOCAL_OPTIONS= + if [ ! -z "$HOST" ]; then + LOCAL_OPTIONS="$LOCAL_OPTIONS -DGNU_HOST=$HOST" + fi + if [ "$PLATFORM" = "win" ]; then + LOCAL_OPTIONS="$LOCAL_OPTIONS -DCMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=$INSTALL_PACKET_DIR \ + $LOCAL_OPTIONS . \ + || return 1 + set_done $NAME build.cunfigure + fi + + make -j${THREADS} || return 1 +} + diff --git a/env-builder-data/build/script/packet/freetype-2.8.1.sh b/env-builder-data/build/script/packet/freetype-2.8.1.sh new file mode 100644 index 0000000..ba7b3a4 --- /dev/null +++ b/env-builder-data/build/script/packet/freetype-2.8.1.sh @@ -0,0 +1,9 @@ +DEPS="png-1.6.26" + +PK_DIRNAME="freetype-2.8.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://sourceforge.net/projects/freetype/files/freetype2/2.8.1/$PK_ARCHIVE" + +PK_LICENSE_FILES="docs/FTL.TXT" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh b/env-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh new file mode 100644 index 0000000..cf5bbd2 --- /dev/null +++ b/env-builder-data/build/script/packet/gdkpixbuf-2.36.0.sh @@ -0,0 +1,10 @@ +DEPS="jpeg-9b png-1.6.26 tiff-4.0.6 glib-2.50.0" +#DEPS_NATIVE="gobjectintrospection-1.50.0" + +PK_DIRNAME="gdk-pixbuf-2.36.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/gdk-pixbuf/2.36/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--enable-relocations=yes" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/glew-2.0.0.sh b/env-builder-data/build/script/packet/glew-2.0.0.sh new file mode 100644 index 0000000..a95a188 --- /dev/null +++ b/env-builder-data/build/script/packet/glew-2.0.0.sh @@ -0,0 +1,53 @@ +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" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if [ "$PLATFORM" = "win" ]; then +cat > "config/Makefile.mingw-$PLATFORM-$ARCH" << EOF +NAME := glew32 +HOST := $HOST +CC := $CC +LD := $LD +LN := +STRIP := +LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32 $LDFLAGS +CFLAGS.EXTRA += -fno-builtin -fno-stack-protector +WARN = -Wall -W +POPT = -O2 +BIN.SUFFIX = .exe +LIB.SONAME = lib\$(NAME).dll +LIB.DEVLNK = lib\$(NAME).dll.a +LIB.SHARED = \$(NAME).dll +LIB.STATIC = lib\$(NAME).a +LDFLAGS.SO = -shared -soname \$(LIB.SONAME) --out-implib lib/\$(LIB.DEVLNK) +EOF + + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR SYSTEM=mingw-$PLATFORM-$ARCH make -j${THREADS}; then + return 1 + fi + else + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make -j${THREADS}; then + return 1 + fi + fi +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if [ "$PLATFORM" = "win" ]; then + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR SYSTEM=mingw-$PLATFORM-$ARCH make install; then + return 1 + fi + else + if ! GLEW_PREFIX=$INSTALL_PACKET_DIR GLEW_DEST=$INSTALL_PACKET_DIR make install; then + return 1 + fi + fi +} diff --git a/env-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch b/env-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch new file mode 100644 index 0000000..3858ce6 --- /dev/null +++ b/env-builder-data/build/script/packet/glib-2.50.0.files/gstrfuncs.c.patch @@ -0,0 +1,4 @@ +1275c1275 +< #if defined(G_OS_WIN32) +--- +> #if defined(G_OS_WIN32) && 0 diff --git a/env-builder-data/build/script/packet/glib-2.50.0.sh b/env-builder-data/build/script/packet/glib-2.50.0.sh new file mode 100644 index 0000000..8530cb5 --- /dev/null +++ b/env-builder-data/build/script/packet/glib-2.50.0.sh @@ -0,0 +1,18 @@ +DEPS="zlib-1.2.11 ffi-3.2.1" +DEPS_NATIVE="glib-2.50.0" + +PK_DIRNAME="glib-2.50.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/glib/2.50/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--with-pcre=internal --disable-compile-warnings" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + + +pkhook_prebuild() { + if [ "$PLATFORM" = "win" ]; then + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/glib/gstrfuncs.c" "glib" || return 1 + patch "glib/gstrfuncs.c" "$FILES_PACKET_DIR/gstrfuncs.c.patch" || return 1 + fi +} diff --git a/env-builder-data/build/script/packet/glibmm-2.50.0.sh b/env-builder-data/build/script/packet/glibmm-2.50.0.sh new file mode 100644 index 0000000..511a3a4 --- /dev/null +++ b/env-builder-data/build/script/packet/glibmm-2.50.0.sh @@ -0,0 +1,10 @@ +DEPS="sigcpp-2.10.0 glib-2.50.0" + +PK_DIRNAME="glibmm-2.50.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/glibmm/2.50/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" + +#PK_CONFIGURE_OPTIONS="CXXFLAGS=\"-std=c++11 -pthread\"" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh b/env-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh new file mode 100644 index 0000000..9a5e3e6 --- /dev/null +++ b/env-builder-data/build/script/packet/gnomethemesstandard-3.22.3.sh @@ -0,0 +1,9 @@ +DEPS="rsvg-2.40.16 gtk-3.22.12" + +PK_DIRNAME="gnome-themes-standard-3.22.3" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/gnome-themes-standard/3.22/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--disable-gtk2-engine" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh b/env-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh new file mode 100644 index 0000000..9236cb6 --- /dev/null +++ b/env-builder-data/build/script/packet/gobjectintrospection-1.50.0.sh @@ -0,0 +1,9 @@ +DEPS="glib-2.50.0" + +PK_DIRNAME="gobject-introspection-1.50.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/gobject-introspection/1.50/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPL COPYING.LGPL" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + diff --git a/env-builder-data/build/script/packet/graphviz-2.40.1.sh b/env-builder-data/build/script/packet/graphviz-2.40.1.sh new file mode 100644 index 0000000..446ebbd --- /dev/null +++ b/env-builder-data/build/script/packet/graphviz-2.40.1.sh @@ -0,0 +1,8 @@ +# TODO: find deps +DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 atspi2atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" + +PK_DIRNAME="graphviz-2.40.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.graphviz.org/pub/graphviz/stable/SOURCES/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gstreamer-0.10.36.sh b/env-builder-data/build/script/packet/gstreamer-0.10.36.sh new file mode 100644 index 0000000..dd3ef39 --- /dev/null +++ b/env-builder-data/build/script/packet/gstreamer-0.10.36.sh @@ -0,0 +1,7 @@ +DEPS="glib-2.50.0" + +PK_DIRNAME="gstreamer-0.10.36" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://gstreamer.freedesktop.org/src/gstreamer/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh b/env-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh new file mode 100644 index 0000000..afb9ec8 --- /dev/null +++ b/env-builder-data/build/script/packet/gstreamerpluginsbase-0.10.36.sh @@ -0,0 +1,8 @@ +DEPS="gstreamer-0.10.36" + +PK_DIRNAME="gst-plugins-base-0.10.36" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://gstreamer.freedesktop.org/src/gst-plugins-base/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch b/env-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch new file mode 100644 index 0000000..8c52ff6 --- /dev/null +++ b/env-builder-data/build/script/packet/gtk-3.22.12.files/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch @@ -0,0 +1,35 @@ +From 07bbd9b206f9a8712e1d77a6f86e260023738247 Mon Sep 17 00:00:00 2001 +From: Christoph Reiter +Date: Thu, 28 Sep 2017 12:02:03 +0200 +Subject: [PATCH] gtkwindow: Don't force enable CSD under Windows + +CSD look a bit out of place under Windows, especially +when the application doesn't use the headerbar and the CSD +doesn't add any value. + +Instead let the application decide, like under X11. +It can still be force enabled through GTK_CSD=1 +--- + gtk/gtkwindow.c | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c +index 9f1e52ab04..7c6d874afb 100644 +--- a/gtk/gtkwindow.c ++++ b/gtk/gtkwindow.c +@@ -6107,12 +6107,6 @@ gtk_window_should_use_csd (GtkWindow *window) + return TRUE; + #endif + +-#ifdef GDK_WINDOWING_WIN32 +- if (g_strcmp0 (csd_env, "0") != 0 && +- GDK_IS_WIN32_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window)))) +- return TRUE; +-#endif +- + return (g_strcmp0 (csd_env, "1") == 0); + } + +-- +2.14.1 + diff --git a/env-builder-data/build/script/packet/gtk-3.22.12.sh b/env-builder-data/build/script/packet/gtk-3.22.12.sh new file mode 100644 index 0000000..c83cfdb --- /dev/null +++ b/env-builder-data/build/script/packet/gtk-3.22.12.sh @@ -0,0 +1,41 @@ +DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" +DEPS_NATIVE="gtk-3.22.12" + +PK_DIRNAME="gtk+-3.22.12" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/gtk+/3.22/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$PLATFORM" = "linux" ] || [ ! -z "$IS_NATIVE" ]; then + DEPS="$DEPS atspi2atk-2.22.0" +fi + +if [ "$PLATFORM" = "win" ]; then + PK_CONFIGURE_OPTIONS="--enable-introspection=no" +fi + +pkhook_prebuild() { + if [ "$PLATFORM" = "win" ]; then + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/gtk/gtkwindow.c" "gtk/gtkwindow.c" || return 1 + patch -p1 -i "$FILES_PACKET_DIR/0001-gtkwindow-Don-t-force-enable-CSD-under-Windows.patch" || return 1 + fi +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + local LOCAL_BIN="$BUILD_PACKET_DIR/$PK_DIRNAME/gtk" + local LOCAL_BIN_NATIVE="$ENVDEPS_NATIVE_PACKET_DIR/bin" + if [ "$PLATFORM" = "win" ] && [ ! -f "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" ]; then + mv "$LOCAL_BIN/gtk-query-immodules-3.0.exe" "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" || return 1 + cp "$LOCAL_BIN_NATIVE/gtk-query-immodules-3.0" "$LOCAL_BIN/gtk-query-immodules-3.0.exe" + mv "$LOCAL_BIN/gtk-update-icon-cache.exe" "$LOCAL_BIN/gtk-update-icon-cache.exe.orig" + cp "$LOCAL_BIN_NATIVE/gtk-update-icon-cache" "$LOCAL_BIN/gtk-update-icon-cache.exe" + fi + make install || return 1 + if [ "$PLATFORM" = "win" ]; then + cp "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1 + cp "$LOCAL_BIN/gtk-update-icon-cache.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1 + fi +} + diff --git a/env-builder-data/build/script/packet/gtkmm-3.22.0.sh b/env-builder-data/build/script/packet/gtkmm-3.22.0.sh new file mode 100644 index 0000000..e1556d5 --- /dev/null +++ b/env-builder-data/build/script/packet/gtkmm-3.22.0.sh @@ -0,0 +1,13 @@ +# GTK packets: +# gtkmm, atkmm, cairomm, pangomm, glibmm, sigcpp +# gtk +# adwaitaicontheme gnomethemesstandard + +DEPS="gtk-3.22.12 atkmm-2.24.2 cairomm-1.12.0 pangomm-2.40.1 adwaitaicontheme-3.24.0 gnomethemesstandard-3.22.3" + +PK_DIRNAME="gtkmm-3.22.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/gtkmm/3.22/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/harfbuzz-1.3.2.sh b/env-builder-data/build/script/packet/harfbuzz-1.3.2.sh new file mode 100644 index 0000000..7ea5786 --- /dev/null +++ b/env-builder-data/build/script/packet/harfbuzz-1.3.2.sh @@ -0,0 +1,7 @@ +DEPS="fontconfig-2.11.0 glib-2.50.0" + +PK_DIRNAME="harfbuzz-1.3.2" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://www.freedesktop.org/software/harfbuzz/release/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/imagemagick-6.8.7.sh b/env-builder-data/build/script/packet/imagemagick-6.8.7.sh new file mode 100644 index 0000000..f811568 --- /dev/null +++ b/env-builder-data/build/script/packet/imagemagick-6.8.7.sh @@ -0,0 +1,19 @@ +DEPS="jpeg-9b png-1.6.26 tiff-4.0.6 xml-2.9.4 fftw-3.3.5" + +PK_DIRNAME="ImageMagick-6.8.7-10" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="http://www.imagemagick.org/download/releases/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS=" \ + --without-perl \ + --without-x \ + --with-threads \ + --with-magick_plus_plus" + +if [ "$PLATFORM" = "win" ]; then + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --without-modules" +else + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --with-modules" +fi + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/jack-0.125.0.sh b/env-builder-data/build/script/packet/jack-0.125.0.sh new file mode 100644 index 0000000..ccf5263 --- /dev/null +++ b/env-builder-data/build/script/packet/jack-0.125.0.sh @@ -0,0 +1,8 @@ +DEPS="" + +PK_DIRNAME="jack-audio-connection-kit-0.125.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://jackaudio.org/downloads/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPL COPYING.LGPL" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/jasper-1.900.13.sh b/env-builder-data/build/script/packet/jasper-1.900.13.sh new file mode 100644 index 0000000..90e5fe8 --- /dev/null +++ b/env-builder-data/build/script/packet/jasper-1.900.13.sh @@ -0,0 +1,9 @@ +DEPS="jpeg-9b freeglut-3.0.0" + +PK_DIRNAME="jasper-1.900.13" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.ece.uvic.ca/~frodo/jasper/software/$PK_ARCHIVE" + +PK_CFLAGS="-std=c99" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/jpeg-9b.sh b/env-builder-data/build/script/packet/jpeg-9b.sh new file mode 100644 index 0000000..3ba6497 --- /dev/null +++ b/env-builder-data/build/script/packet/jpeg-9b.sh @@ -0,0 +1,8 @@ +DEPS="" + +PK_DIRNAME="jpeg-9b" +PK_ARCHIVE="jpegsrc.v9b.tar.gz" +PK_URL="http://ijg.org/files/$PK_ARCHIVE" +PK_LICENSE_FILES="README" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/jsonc-0.12.1.sh b/env-builder-data/build/script/packet/jsonc-0.12.1.sh new file mode 100644 index 0000000..b9503d1 --- /dev/null +++ b/env-builder-data/build/script/packet/jsonc-0.12.1.sh @@ -0,0 +1,19 @@ +DEPS="" + +PK_DIRNAME="json-c-0.12.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://s3.amazonaws.com/json-c_releases/releases/$PK_ARCHIVE" + +if [ "$PLATFORM" = "win" ]; then + PK_CFLAGS="-Wno-error=unknown-pragmas" + PK_LDFLAGS="-ladvapi32 -lgettextlib" +fi + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkhook_prebuild() { + if [ ! -f "Makefile.in.orig" ]; then + mv Makefile.in Makefile.in.orig + fi + cat Makefile.in.orig | sed -e 's| -Werror | |g' > Makefile.in +} \ No newline at end of file diff --git a/env-builder-data/build/script/packet/lame-3.99.5.sh b/env-builder-data/build/script/packet/lame-3.99.5.sh new file mode 100644 index 0000000..0271b23 --- /dev/null +++ b/env-builder-data/build/script/packet/lame-3.99.5.sh @@ -0,0 +1,11 @@ +DEPS="" + +PK_DIRNAME="lame-3.99.5" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://sourceforge.net/projects/lame/files/lame/3.99/$PK_ARCHIVE/download" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$ARCH" = "32" ]; then + PK_CFLAGS="-msse" +fi \ No newline at end of file diff --git a/env-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch b/env-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch new file mode 100644 index 0000000..a67dfd1 --- /dev/null +++ b/env-builder-data/build/script/packet/libtool-2.4.6.files/libtool.m4.patch @@ -0,0 +1,4 @@ +3476c3476 +< lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' +--- +> lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pei-x86-64)' diff --git a/env-builder-data/build/script/packet/libtool-2.4.6.sh b/env-builder-data/build/script/packet/libtool-2.4.6.sh new file mode 100644 index 0000000..c911aeb --- /dev/null +++ b/env-builder-data/build/script/packet/libtool-2.4.6.sh @@ -0,0 +1,11 @@ +DEPS="" + +PK_DIRNAME="libtool-2.4.6" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://ftpmirror.gnu.org/libtool/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkhook_postinstall() { + patch "share/aclocal/libtool.m4" "$FILES_PACKET_DIR/libtool.m4.patch" || return 1 +} diff --git a/env-builder-data/build/script/packet/lz4-master.sh b/env-builder-data/build/script/packet/lz4-master.sh new file mode 100644 index 0000000..49050af --- /dev/null +++ b/env-builder-data/build/script/packet/lz4-master.sh @@ -0,0 +1,22 @@ +DEPS="" + +PK_DIRNAME="lz4" +PK_URL="https://github.com/Cyan4973/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/v1.7.5" +PK_LICENSE_FILES="LICENSE lib/LICENSE programs/COPYING tests/COPYING examples/COPYING" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.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/env-builder-data/build/script/packet/lzma-5.2.3.sh b/env-builder-data/build/script/packet/lzma-5.2.3.sh new file mode 100644 index 0000000..192d2e8 --- /dev/null +++ b/env-builder-data/build/script/packet/lzma-5.2.3.sh @@ -0,0 +1,8 @@ +DEPS="" + +PK_DIRNAME="xz-5.2.3" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://tukaani.org/xz/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/lzo-2.10.sh b/env-builder-data/build/script/packet/lzo-2.10.sh new file mode 100644 index 0000000..3f49ee9 --- /dev/null +++ b/env-builder-data/build/script/packet/lzo-2.10.sh @@ -0,0 +1,18 @@ +DEPS="" + +PK_DIRNAME="lzo-2.10" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.oberhumer.com/opensource/lzo/download/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT=" \ + --prefix=$INSTALL_PACKET_DIR \ + --enable-static \ + --enable-shared " + +if [ ! -z "$HOST" ]; then + PK_CONFIGURE_OPTIONS_DEFAULT=" \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + --host=$HOST " +fi + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/mlt-6.2.0.sh b/env-builder-data/build/script/packet/mlt-6.2.0.sh new file mode 100644 index 0000000..16822ca --- /dev/null +++ b/env-builder-data/build/script/packet/mlt-6.2.0.sh @@ -0,0 +1,53 @@ +# + ffmpeg +# + xml +# + fftw +# + samplerate +# ? sdl +# ? sox +# + jack +# + glib + +DEPS="ffmpeg-3.1.5 xml-2.9.4 fftw-3.3.5 samplerate-0.1.9 sdl-1.2.15 sox-14.4.2 glib-2.50.0" + +PK_DIRNAME="mlt-6.2.0" +PK_ARCHIVE="v6.2.0.tar.gz" +PK_URL="https://github.com/mltframework/mlt/archive/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS=" \ + --enable-gpl \ + --enable-gpl3 \ + --disable-decklink \ + --disable-gtk2 \ + --disable-opengl \ + --disable-qt \ + --disable-rtaudio" + +if [ "$PLATFORM" = "linux" ]; then + DEPS="$DEPS jack-0.125.0" +fi + +if [ "$PLATFORM" = "win" ]; then + DEPS="$DEPS dlfcnwin32-1.1.1" + + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-os=MinGW" + if [ "$ARCH" = "32" ]; then + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=i686" + else + PK_CONFIGURE_OPTIONS="$PK_CONFIGURE_OPTIONS --target-arch=x86_$ARCH" + fi +fi + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkhook_postinstall() { + if [ "$PLATFORM" = "win" ]; then + mkdir -p "bin" + mkdir -p "bin/lib" + mkdir -p "bin/share" + mv "libmlt++-3.dll" "bin/" + mv "libmlt-6.dll" "bin/" + mv "melt" "bin/melt.exe" + mv "lib/mlt" "bin/lib/" + mv "share/mlt" "bin/share/" + fi +} diff --git a/env-builder-data/build/script/packet/mypaintlib-master.sh b/env-builder-data/build/script/packet/mypaintlib-master.sh new file mode 100644 index 0000000..3bbdb21 --- /dev/null +++ b/env-builder-data/build/script/packet/mypaintlib-master.sh @@ -0,0 +1,12 @@ +DEPS="jsonc-0.12.1 glib-2.50.0" +DEPS_NATIVE="automake-1.15" + +PK_DIRNAME="libmypaint" +PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/testing" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkhook_prebuild() { + ./autogen.sh || return 1 +} diff --git a/env-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch b/env-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch new file mode 100644 index 0000000..b5bf9eb --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.files/InstallerOptions.cpp.patch @@ -0,0 +1,4 @@ +18a19,21 +> #ifndef min +> #define min(a,b) (((a) < (b)) ? (a) : (b)) +> #endif diff --git a/env-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch b/env-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch new file mode 100644 index 0000000..d50c4b1 --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.files/crossmingw.py.patch @@ -0,0 +1,2 @@ +60a61 +> i686-w64-mingw32- diff --git a/env-builder-data/build/script/packet/nsis-2.50.files/gnu.patch b/env-builder-data/build/script/packet/nsis-2.50.files/gnu.patch new file mode 100644 index 0000000..588195f --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.files/gnu.patch @@ -0,0 +1,6 @@ +95a96,97 +> makensis_env.Append(LINKFLAGS = ['-static-libgcc']) +> makensis_env.Append(LINKFLAGS = ['-static-libstdc++']) +119a120,121 +> plugin_env.Append(LINKFLAGS = ['-static-libgcc']) +> plugin_env.Append(LINKFLAGS = ['-static-libstdc++']) diff --git a/env-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch b/env-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch new file mode 100644 index 0000000..f5c07c7 --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.files/makensisw.h.patch @@ -0,0 +1,2 @@ +25d24 +< #define _WIN32_IE 0x0400 diff --git a/env-builder-data/build/script/packet/nsis-2.50.files/util.h.patch b/env-builder-data/build/script/packet/nsis-2.50.files/util.h.patch new file mode 100644 index 0000000..52cb5e3 --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.files/util.h.patch @@ -0,0 +1,2 @@ +19a20 +> #include diff --git a/env-builder-data/build/script/packet/nsis-2.50.sh b/env-builder-data/build/script/packet/nsis-2.50.sh new file mode 100644 index 0000000..e2181ef --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-2.50.sh @@ -0,0 +1,45 @@ +DEPS="zlib-1.2.11" +DEPS_NATIVE="scons-3.0.1" + +PK_DIRNAME="nsis-2.50-src" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://sourceforge.net/projects/nsis/files/NSIS%202/2.50/$PK_ARCHIVE" + +#TODO: hardcoded path to mingw binaries +#TODO: untracked dependency for zlib win32 + +PK_PATH="/usr/local/i686-w64-mingw32/sys-root/bin:$PATH" +PK_ZLIB_W32="$PACKET_BUILD_DIR/win-32/zlib-1.2.11/env" +PK_NSIS_MAX_STRLEN=131072 + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + pkhelper_patch Contrib/InstallOptions InstallerOptions.cpp || return 1 + pkhelper_patch Contrib/Makensisw makensisw.h || return 1 + pkhelper_patch SCons/Config gnu || return 1 + pkhelper_patch SCons/Tools crossmingw.py || return 1 + pkhelper_patch Source util.h || return 1 + + LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS" \ + PATH="$PK_PATH" scons \ + PREFIX="$INSTALL_PACKET_DIR" \ + ZLIB_W32="$PK_ZLIB_W32" \ + SKIPUTILS="NSIS Menu" \ + NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ + || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + LDFLAGS="-static-libgcc -static-libstdc++ $LDFLAGS" \ + PATH="$PK_PATH" scons \ + PREFIX="$INSTALL_PACKET_DIR" \ + ZLIB_W32="$PK_ZLIB_W32" \ + SKIPUTILS="NSIS Menu" \ + NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ + install \ + || return 1 +} diff --git a/env-builder-data/build/script/packet/nsis-3.02.1.sh b/env-builder-data/build/script/packet/nsis-3.02.1.sh new file mode 100644 index 0000000..dd55af5 --- /dev/null +++ b/env-builder-data/build/script/packet/nsis-3.02.1.sh @@ -0,0 +1,36 @@ +DEPS="zlib-1.2.11" +DEPS_NATIVE="scons-3.0.1" + +PK_DIRNAME="nsis-3.02.1-src" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="http://prdownloads.sourceforge.net/nsis/$PK_ARCHIVE" + +#TODO: hardcoded path to mingw binaries +#TODO: untracked dependency for zlib win32 + +PK_PATH="/usr/local/i686-w64-mingw32/sys-root/bin:$PATH" +PK_ZLIB_W32="$PACKET_BUILD_DIR/win-32/zlib-1.2.11/env" +PK_NSIS_MAX_STRLEN=131072 + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + PATH="$PK_PATH" scons \ + PREFIX="$INSTALL_PACKET_DIR" \ + ZLIB_W32="$PK_ZLIB_W32" \ + SKIPUTILS="NSIS Menu" \ + NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ + || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + PATH="$PK_PATH" scons \ + PREFIX="$INSTALL_PACKET_DIR" \ + ZLIB_W32="$PK_ZLIB_W32" \ + SKIPUTILS="NSIS Menu" \ + NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \ + install \ + || return 1 +} diff --git a/env-builder-data/build/script/packet/ogg-1.3.2.sh b/env-builder-data/build/script/packet/ogg-1.3.2.sh new file mode 100644 index 0000000..75b199f --- /dev/null +++ b/env-builder-data/build/script/packet/ogg-1.3.2.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="libogg-1.3.2" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://downloads.xiph.org/releases/ogg/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/openblas-master.sh b/env-builder-data/build/script/packet/openblas-master.sh new file mode 100644 index 0000000..0710eb4 --- /dev/null +++ b/env-builder-data/build/script/packet/openblas-master.sh @@ -0,0 +1,43 @@ +DEPS="" + +PK_DIRNAME="OpenBLAS" +PK_URL="https://github.com/xianyi/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/v0.2.19" +PK_LICENSE_FILES="LICENSE CONTRIBUTORS.md BACKERS.md" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + local LOCAL_BINARY_OPTION= + if [ "$ARCH" = "32" ]; then + LOCAL_BINARY_OPTION="BINARY=$ARCH" + fi + +rm -f Makefile.rule +cat > Makefile.rule << EOF +PREFIX = ${INSTALL_PACKET_DIR} +VERSION = 0.2.20.dev +CC = ${CC:-gcc} +FC = ${FORTRAN:-gfortran} +TARGET = generic +${LOCAL_BINARY_OPTION} +HOSTCC = PATH=${INITIAL_PATH} /usr/bin/gcc +USE_THREAD = 1 +NUM_THREADS = 24 +BUILD_LAPACK_DEPRECATED = 1 +NO_WARMUP = 1 +NO_AFFINITY = 1 +COMMON_PROF = -pg +EOF + + make -j${THREADS} libs netlib shared || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! PREFIX=${INSTALL_PACKET_DIR} make install; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh b/env-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh new file mode 100755 index 0000000..128beb8 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-appimage.files/launch-opentoonz-appimage.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +OLDDIR=`pwd` +cd `dirname "$0"` +SCRIPT_DIR=`pwd` +BASE_DIR=`dirname "$SCRIPT_DIR"` + +export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib/pulseaudio:$BASE_DIR/lib64:$LD_LIBRARY_PATH" +export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb +export FONTCONFIG_PATH=/etc/fonts + +if [ "$1" = "--appimage-exec" ]; then + if ! "${@:2}"; then + cd "$OLDDIR" + exit 1 + fi +else + if ! "./launch-opentoonz.sh.wrapper" "$@"; then + cd "$OLDDIR" + exit 1 + fi +fi +cd "$OLDDIR" diff --git a/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop b/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop new file mode 100644 index 0000000..1117838 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=OpenToonz +Exec=launch-opentoonz-appimage.sh +Icon=opentoonz +Categories=Graphics; diff --git a/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png b/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png new file mode 100644 index 0000000..88e0274 Binary files /dev/null and b/env-builder-data/build/script/packet/opentoonz-appimage.files/opentoonz.png differ diff --git a/env-builder-data/build/script/packet/opentoonz-appimage.sh b/env-builder-data/build/script/packet/opentoonz-appimage.sh new file mode 100644 index 0000000..2fca3f7 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-appimage.sh @@ -0,0 +1,39 @@ +DEPS="opentoonz-master" +DEPS_NATIVE="appimagekit-master" + +PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ +PK_APPDIR_NAME="opentoonz" + +pkinstall() { + # copy files from envdeps (install requires envdeps explicit) + + local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + mkdir -p "$APPDIR/usr" + mkdir -p "$APPDIR/usr/bin" + mkdir -p "$APPDIR/usr/lib" + cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 + cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/launch-opentoonz.sh.wrapper" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/launch-opentoonz-appimage.sh" "$APPDIR/usr/bin" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/opentoonz.desktop" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/" || return 1 + mkdir -p "$APPDIR/usr/share/icons/default/128x128/apps/" + cp --remove-destination "$FILES_PACKET_DIR/opentoonz.png" "$APPDIR/usr/share/icons/default/128x128/apps/opentoonz.png" || return 1 +} + +pkinstall_release() { + if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then + return 1 + fi + + # copy files from envdeps_release (install_release requires envdeps_release explicit) + + local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 + + # clean boost + rm -f $APPDIR/usr/lib/libboost_* || return 1 + + (cd "$INSTALL_RELEASE_PACKET_DIR" && tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir") || return 1 + AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + rm -rf "$APPDIR" +} diff --git a/env-builder-data/build/script/packet/opentoonz-debug.files b/env-builder-data/build/script/packet/opentoonz-debug.files new file mode 120000 index 0000000..087c56b --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-debug.files @@ -0,0 +1 @@ +opentoonz-master.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/opentoonz-debug.sh b/env-builder-data/build/script/packet/opentoonz-debug.sh new file mode 100644 index 0000000..adea28a --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-debug.sh @@ -0,0 +1,3 @@ +source "$PACKET_SCRIPT_DIR/opentoonz-master.sh" + +PK_CONFIGURE_OPTIONS="-DCMAKE_BUILD_TYPE=Debug" diff --git a/env-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh b/env-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh new file mode 100755 index 0000000..0dd165e --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-master.files/launch-opentoonz.sh @@ -0,0 +1,87 @@ +#!/bin/sh + +OLDDIR=`pwd` +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +cd "$OLDDIR" +BASE_DIR=`dirname "$SCRIPT_DIR"` + +export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib64:$LD_LIBRARY_PATH" +export XCURSOR_PATH="$BASE_DIR/share/icons:$XCURSOR_PATH:/usr/local/share/icons:/usr/share/icons" +export QT_XKB_CONFIG_ROOT="$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb" + +# fix stuff +CONFIG_DIR="$HOME/.config/OpenToonz" +if [ ! -d "$CONFIG_DIR" ]; then + echo "fix config: copy stuff". + mkdir -p "$CONFIG_DIR" + cp -r "$BASE_DIR/share/opentoonz/stuff" "$CONFIG_DIR" + + echo "fix config: create SystemVar.ini" + cat << EOF > "$CONFIG_DIR/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/fxs" +TOONZLIBRARY="$HOME/.config/OpenToonz/stuff/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 + +else + # fix paths + INI="$HOME/.config/OpenToonz/SystemVar.ini" + if [ -e "$INI" ]; then + [ -e "$INI.bak" ] || cp "$INI" "$INI.bak" + + # fix path to fxs + FX_PATH_OLD="$CONFIG_DIR/stuff/projects/fxs" + FX_PATH_NEW="$CONFIG_DIR/stuff/fxs" + FX_LINE_OLD="TOONZFXPRESETS=\"$FX_PATH_OLD\"" + FX_LINE_NEW="TOONZFXPRESETS=\"$FX_PATH_NEW\"" + if [ ! -z "`grep "$FX_LINE_OLD" "$INI"`" ] \ + && ( [ ! -d "$FX_PATH_OLD" ] || [ -z "`ls -A "$FX_PATH_OLD"`" ] ); then + echo "fix config: fix path to fxs" + cat "$INI" \ + | sed "s|$FX_LINE_OLD|$FX_LINE_NEW|g" \ + > "$INI.out" + cp "$INI.out" "$INI" + rm -f "$INI.out" + fi + + # fix path to library + LIBRARY_PATH_OLD="$CONFIG_DIR/stuff/projects/library" + LIBRARY_PATH_NEW="$CONFIG_DIR/stuff/library" + LIBRARY_LINE_OLD="TOONZLIBRARY=\"$LIBRARY_PATH_OLD\"" + LIBRARY_LINE_NEW="TOONZLIBRARY=\"$LIBRARY_PATH_NEW\"" + if [ ! -z "`grep "$LIBRARY_LINE_OLD" "$INI"`" ] \ + && ( [ ! -d "$LIBRARY_PATH_OLD" ] || [ -z "`ls -A "$LIBRARY_PATH_OLD"`" ] ); then + echo "fix config: fix path to library" + cat "$INI" \ + | sed "s|$LIBRARY_LINE_OLD|$LIBRARY_LINE_NEW|g" \ + > "$INI.out" + cp "$INI.out" "$INI" + rm -f "$INI.out" + fi + fi + + # update library + echo "update stuff" + mkdir -p "$CONFIG_DIR/stuff/config" + mkdir -p "$CONFIG_DIR/stuff/profiles" + cp -ur "$BASE_DIR/share/opentoonz/stuff/library" "$CONFIG_DIR/stuff/" + cp -ur "$BASE_DIR/share/opentoonz/stuff/config/qss" "$CONFIG_DIR/stuff/config/" + cp -ur "$BASE_DIR/share/opentoonz/stuff/config/loc" "$CONFIG_DIR/stuff/config/" + cp -ur "$BASE_DIR/share/opentoonz/stuff/profiles/layouts" "$CONFIG_DIR/stuff/profiles/" + cp -ur "$BASE_DIR/share/opentoonz/stuff/config/current.txt" "$CONFIG_DIR/stuff/config/" +fi + +cd "$BASE_DIR/bin" +if ! ./opentoonz "$@"; then + cd "$OLDDIR" + exit 1 +fi +cd "$OLDDIR" diff --git a/env-builder-data/build/script/packet/opentoonz-master.sh b/env-builder-data/build/script/packet/opentoonz-master.sh new file mode 100644 index 0000000..07ae132 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-master.sh @@ -0,0 +1,121 @@ +DEPS="jpeg-9b png-1.6.26 lz4-master lzo-2.10 lzma-5.2.3 glew-2.0.0 freeglut-3.0.0 superlu-5.2.1 openblas-master boost-1.61.0 qt-5.9.2 mypaintlib-master" +DEPS_NATIVE="cmake-3.6.2" + +PK_DIRNAME="opentoonz" +PK_URL="https://github.com/opentoonz/$PK_DIRNAME.git" +PK_LICENSE_FILES="README.md LICENSE.txt thirdparty/tiff-4.0.3/COPYRIGHT stuff/library/mypaint?brushes/Licenses.txt" + +PK_CONFIGURE_OPTIONS= + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +if [ "$PLATFORM" = "linux" ]; then + DEPS="$DEPS usb-1.0.20 sdl-2.0.5" +fi + +pkhook_version() { + local LOCAL_FILENAME="$PK_DIRNAME/toonz/sources/include/tversion.h" + LANG=C LC_NUMERIC=C printf "%0.1f.%g\\n" \ + `cat "$LOCAL_FILENAME" | grep applicationVersion -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ + `cat "$LOCAL_FILENAME" | grep applicationRevision -m1 | cut -d "=" -f 2 | cut -d ";" -f 1` \ + || return 1 +} + +pkbuild() { + local LOCAL_OPTIONS= + local LOCAL_CMAKE_OPTIONS= + local LOCAL_PNG_LIB="libpng16.so" + local LOCAL_GLUT_LIB="libglut.so" + if [ ! -z "$HOST" ]; then + LOCAL_OPTIONS="--host=$HOST" + fi + if [ "$PLATFORM" = "win" ]; then + LOCAL_CMAKE_OPTIONS="$LOCAL_CMAKE_OPTIONS -DCMAKE_SYSTEM_NAME=Windows" + LOCAL_PNG_LIB="libpng16.dll.a" + LOCAL_GLUT_LIB="libfreeglut.dll.a" + 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 + CFLAGS="$CFLAGS -fPIC" ./configure $LOCAL_OPTIONS || return 1 + set_done $NAME build.libtiff.configure + fi + make clean + make -j${THREADS} || return 1 + set_done $NAME build.libtiff + fi + + rm -rf "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" + 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_PREFIX_PATH="$ENVDEPS_PACKET_DIR" \ + -DCMAKE_MODULE_PATH="$ENVDEPS_NATIVE_PACKET_DIR/share/cmake-3.6.2/Modules" \ + -DCMAKE_INSTALL_PREFIX="$INSTALL_PACKET_DIR" \ + -DPNG_PNG_INCLUDE_DIR="$ENVDEPS_PACKET_DIR/include" \ + -DPNG_LIBRARY="$ENVDEPS_PACKET_DIR/lib/$LOCAL_PNG_LIB" \ + -DGLUT_LIB="$ENVDEPS_PACKET_DIR/lib/$LOCAL_GLUT_LIB" \ + $LOCAL_CMAKE_OPTIONS \ + $PK_CONFIGURE_OPTIONS \ + ../sources; \ + then + return 1 + fi + set_done $NAME build.configure + fi + + make -j${THREADS} || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" + make install || return 1 + if [ "$PLATFORM" = "win" ]; then + true + #cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff-5.dll" "$INSTALL_PACKET_DIR/bin/" || return 1 + #cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiffxx-5.dll" "$INSTALL_PACKET_DIR/bin/" || return 1 + else + cp --remove-destination "$FILES_PACKET_DIR/launch-opentoonz.sh" "$INSTALL_PACKET_DIR/bin" || return 1 + cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.so* "$INSTALL_PACKET_DIR/lib" || return 1 + cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/tiff-4.0.3/libtiff/.libs/libtiffxx.so* "$INSTALL_PACKET_DIR/lib" || return 1 + fi + + if [ "$PLATFORM" = "win" ]; then + local TARGET="$INSTALL_PACKET_DIR/bin/" + + local LOCAL_DIR="/usr/local/$HOST/sys-root/$HOST/lib/" + cp "$LOCAL_DIR"/libgcc*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libstdc*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libquadmath*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libgfortran*.dll "$TARGET" || return 1 + + local LOCAL_DIR="/usr/local/$HOST/sys-root/bin/" + cp "$LOCAL_DIR"/libwinpthread*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libgettextlib*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libintl*.dll "$TARGET" || return 1 + cp "$LOCAL_DIR"/libiconv*.dll "$TARGET" || return 1 + + # add icon + cp "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/sources/toonz/toonz.ico" "$TARGET" || return 1 + else + local TARGET="$INSTALL_PACKET_DIR/lib/" + copy_system_gcc_libs "$TARGET" || return 1 + copy_system_lib libudev "$TARGET" || return 1 + fi +} + +pkhook_postlicense() { + local TARGET="$LICENSE_PACKET_DIR" + if [ "$PLATFORM" = "win" ]; then + local LOCAL_DIR="/usr/$HOST/sys-root/mingw/bin/" + copy_system_license gcc "$TARGET" || return 1 + copy_system_license mingw-w64 "$TARGET" || return 1 + copy_system_license gettext "$TARGET" || return 1 + copy_system_license iconv "$TARGET" || return 1 + else + copy_system_license gcc "$TARGET" || return 1 + copy_system_license libudev "$TARGET" || return 1 + fi +} diff --git a/env-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi b/env-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi new file mode 100644 index 0000000..9cd6d15 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-nsis.files/opentoonz.nsi @@ -0,0 +1,213 @@ +;-------------------------------- +; Requires files: +; config.nsh +; files-install.nsh +; files-uninstall.nsh +; files-stuff-install.nsh +; files-stuff-uninstall.nsh + +; Defines which will set by 'config.nsh': +; PK_NAME - XxxxxXxxxx - name without spaces +; PK_NAME_FULL - Xxxxx Xxxxxxxxxx - full name, may be with spaces +; PK_ARCH - XX - architecture, 32 or 64 +; PK_VERSION - X.X - first two numbers of version +; PK_VERSION_FULL - X.X.X-xxxxx-xxxxx - full version, without spaces +; PK_EXECUTABLE - xxx\XxxxXxxx-xxx_xxx.exe - subpath to executable file +; PK_ICON - xxx\XxxxXxxx-xxx_xxx.ico - subpath to icon file (may be *.exe) + +!include "config.nsh" + +;-------------------------------- + +!include "MUI2.nsh" + +;second directory selection + +;-------------------------------- + +; The name of the installer +Name "${PK_NAME_FULL} ${PK_VERSION_FULL}" + +; The file to write +OutFile "${PK_NAME}-${PK_VERSION_FULL}.exe" + +; The default installation directory and registry +InstallDir "$PROGRAMFILES${PK_ARCH}\${PK_NAME}" +Var STUFFDIR + +; Request application privileges for Windows Vista +RequestExecutionLevel admin + +!insertmacro MUI_LANGUAGE "English" + +!define MUI_ABORTWARNING + +!define SHCNE_ASSOCCHANGED 0x8000000 +!define SHCNF_IDLIST 0 + +!define PRODUCT_REG_KEY "Software\${PK_NAME}" +!define PRODUCT_STUFF_KEY "${PRODUCT_REG_KEY}\${PK_NAME}\${PK_VERSION}" +!define PRODUCT_UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PK_NAME}" +!define PRODUCT_UNINSTALL_KEY2 "Software\Microsoft\Windows\CurrentVersion\Uninstall\{D9A9B1A3-9370-4BE9-9C8F-7B52EEECB973}_is1" +!define PRODUCT_UNINSTALL_EXE "uninstall-${PK_NAME}.exe" + +;-------------------------------- + +; Pages + +!insertmacro MUI_PAGE_COMPONENTS + +!define MUI_PAGE_CUSTOMFUNCTION_LEAVE InstDirPageLeave +!insertmacro MUI_PAGE_DIRECTORY + +Function InstDirPageLeave + StrCpy $STUFFDIR "C:\${PK_NAME} ${PK_VERSION} stuff" +FunctionEnd + +!define MUI_DIRECTORYPAGE_VARIABLE $STUFFDIR +!define MUI_DIRECTORYPAGE_TEXT_TOP "Choose stuff directory for ${PK_NAME}..." +!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "Stuff Directory:" +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + +;-------------------------------- +; Installer +;-------------------------------- + +Section "${PK_NAME_FULL} (required)" + SetRegView ${PK_ARCH} + + SectionIn RO + + SetOutPath "$INSTDIR" + !include "files-install.nsh" + + SetOutPath "$STUFFDIR" + !include "files-stuff-install.nsh" + + WriteRegStr HKLM "${PRODUCT_REG_KEY}" "Path" "$INSTDIR" + WriteRegStr HKLM "${PRODUCT_REG_KEY}" "Version" "${PK_VERSION_FULL}" + + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZROOT" "$STUFFDIR" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZPROJECTS" "$STUFFDIR\projects" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZCACHEROOT" "$STUFFDIR\cache" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZCONFIG" "$STUFFDIR\config" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZPROFILES" "$STUFFDIR\profiles" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZFXPRESETS" "$STUFFDIR\fxs" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZLIBRARY" "$STUFFDIR\library" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "TOONZSTUDIOPALETTE" "$STUFFDIR\studiopalette" + WriteRegStr HKLM "${PRODUCT_STUFF_KEY}" "FARMROOT" "" + + ; Write the uninstall keys for Windows + WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayName" "${PK_NAME_FULL}" + WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayVersion" "${PK_VERSION_FULL}" + WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" '"$INSTDIR\${PRODUCT_UNINSTALL_EXE}"' + WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoModify" 1 + WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoRepair" 1 + + System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)' + + SetOutPath "$INSTDIR" + WriteUninstaller "${PRODUCT_UNINSTALL_EXE}" +SectionEnd + +; Optional section (can be disabled by the user) +Section "Start Menu Shortcuts" + SetRegView ${PK_ARCH} + + SetOutPath "$INSTDIR\bin" + + SetShellVarContext All + CreateDirectory "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)" + CreateShortCut "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\Uninstall ${PK_NAME}.lnk" "$INSTDIR\uninstall-${PK_NAME}.exe" "" "$INSTDIR\uninstall-${PK_NAME}.exe" 0 + CreateShortCut "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\${PK_NAME}.lnk" "$INSTDIR\${PK_EXECUTABLE}" "" "$INSTDIR\${PK_ICON}" 0 +SectionEnd + +Section "Desktop Icon" + SetRegView ${PK_ARCH} + + SetOutPath "$INSTDIR\bin" + + SetShellVarContext All + CreateShortCut "$DESKTOP\${PK_NAME_FULL}.lnk" "$INSTDIR\${PK_EXECUTABLE}" "" "$INSTDIR\${PK_ICON}" 0 +SectionEnd + +;-------------------------------- +; Uninstaller +;-------------------------------- + +Section "Uninstall" + SetRegView ${PK_ARCH} + + ReadRegStr $INSTDIR HKLM "${PRODUCT_REG_KEY}" "Path" + ReadRegStr $STUFFDIR HKLM "${PRODUCT_REG_KEY}\${PK_NAME}\${PK_VERSION}" "TOONZROOT" + + ; Remove registry keys + DeleteRegKey HKLM "${PRODUCT_REG_KEY}" + DeleteRegKey HKLM "${PRODUCT_UNINSTALL_KEY}" + + ; Remove files and uninstaller + !include "files-stuff-uninstall.nsh" + !include "files-uninstall.nsh" + Delete "$INSTDIR\${PRODUCT_UNINSTALL_EXE}" + + ; Remove shortcuts, if any + SetShellVarContext All + Delete "$DESKTOP\${PK_NAME_FULL}.lnk" + Delete "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\${PK_NAME}.lnk" + Delete "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)\Uninstall ${PK_NAME}.lnk" + + ; Remove directories used + RMDir "$SMPROGRAMS\${PK_NAME} (${PK_ARCH}bit)" + RMDir "$STUFFDIR" + RMDir "$INSTDIR" + + System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)' +SectionEnd + +Function .onInit + + SetRegView ${PK_ARCH} + + ; Check previous installation + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" + StrCmp $R0 "" 0 oops + + ; Check previous installation 2 + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" + StrCmp $R0 "" 0 oops + + SetRegView 32 + + ; Check previous installation + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" + StrCmp $R0 "" 0 oops + + ; Check previous installation 2 + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" + StrCmp $R0 "" 0 oops + + SetRegView 64 + + ; Check previous installation + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY}" "UninstallString" + StrCmp $R0 "" 0 oops + + ; Check previous installation 2 + ReadRegStr $R0 HKLM "${PRODUCT_UNINSTALL_KEY2}" "UninstallString" + StrCmp $R0 "" 0 oops + + BringToFront + Return + +oops: + MessageBox MB_YESNO|MB_ICONEXCLAMATION "Another version of OpenToonz appears to be installed, we recommend to make backup of the Stuff directory and uninstall another version first. Do you wish to continue with installation of this version anyway?" IDNO cancel + BringToFront + Return + +cancel: + Abort +FunctionEnd diff --git a/env-builder-data/build/script/packet/opentoonz-nsis.sh b/env-builder-data/build/script/packet/opentoonz-nsis.sh new file mode 100644 index 0000000..c45f2df --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-nsis.sh @@ -0,0 +1,75 @@ +DEPS="opentoonz-master" +DEPS_NATIVE="nsis-2.50" + +pkfunc_register_file() { + local FILE=$1 + local WIN_FILE=$(echo "$FILE" | sed "s|\/|\\\\|g") + ! [ -L "$FILE" ] || return 0 + + if [ "${FILE:0:8}" = "./files-" ]; then + true # skip + elif [ "${FILE:0:24}" = "./share/opentoonz/stuff/" ]; then + if [ -d "$FILE" ]; then + echo "CreateDirectory \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-install.nsh" + foreachfile "$FILE" pkfunc_register_file + echo "RMDir \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-uninstall.nsh" + else + echo "File \"/oname=${WIN_FILE:24}\" \"${WIN_FILE:2}\"" >> "files-stuff-install.nsh" + echo "Delete \"\$STUFFDIR\\${WIN_FILE:24}\"" >> "files-stuff-uninstall.nsh" + fi + elif [ "${FILE:0:2}" = "./" ]; then + if [ -d "$FILE" ]; then + echo "CreateDirectory \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-install.nsh" + foreachfile "$FILE" pkfunc_register_file + echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" + else + echo "File \"/oname=${WIN_FILE:2}\" \"${WIN_FILE:2}\"" >> "files-install.nsh" + echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" + fi + else + foreachfile $FILE pkfunc_register_file + fi +} + +pkinstall_release() { + # create temporary dir + rm -rf "$INSTALL_RELEASE_PACKET_DIR/installer" + mkdir -p "$INSTALL_RELEASE_PACKET_DIR/installer" + cd "$INSTALL_RELEASE_PACKET_DIR/installer" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-opentoonz-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # create file lists + echo "create file lists" + pkfunc_register_file . + echo "created" + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/opentoonz.nsi" "./" || return 1 + + # create config.nsh (see opentoons.nsi) + cat > config.nsh << EOF +!define PK_NAME "OpenToonz" +!define PK_NAME_FULL "OpenToonz Morevna Edition (${ARCH}bit)" +!define PK_ARCH "${ARCH}" +!define PK_VERSION "${LOCAL_VERSION2}" +!define PK_VERSION_FULL "${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}" +!define PK_EXECUTABLE "bin\\\${PK_NAME}.exe" +!define PK_ICON "bin\\toonz.ico" +EOF + + # let's go + makensis opentoonz.nsi || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + mv installer/*.exe ./ || return 1 + rm -rf "installer" +} diff --git a/env-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat b/env-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat new file mode 100755 index 0000000..6a738c5 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-portable.files/opentoonz.bat @@ -0,0 +1,2 @@ +cd "%~dp0\" +start "" "%~dp0\bin\OpenToonz.exe" diff --git a/env-builder-data/build/script/packet/opentoonz-portable.sh b/env-builder-data/build/script/packet/opentoonz-portable.sh new file mode 100644 index 0000000..584feb4 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-portable.sh @@ -0,0 +1,30 @@ +DEPS="opentoonz-master" + +pkinstall_release() { + # create temporary dir + rm -rf "$INSTALL_RELEASE_PACKET_DIR/portable" + mkdir -p "$INSTALL_RELEASE_PACKET_DIR/portable" + cd "$INSTALL_RELEASE_PACKET_DIR/portable" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-opentoonz-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/opentoonz.bat" "./" || return 1 + + # portable stuff + mv "./share/opentoonz/stuff" "./portablestuff" || return 1 + + # let's go + zip -r "../opentoonz-${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}.zip" ./ || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -rf "portable" +} diff --git a/env-builder-data/build/script/packet/opentoonz-testing.files b/env-builder-data/build/script/packet/opentoonz-testing.files new file mode 120000 index 0000000..087c56b --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testing.files @@ -0,0 +1 @@ +opentoonz-master.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/opentoonz-testing.sh b/env-builder-data/build/script/packet/opentoonz-testing.sh new file mode 100644 index 0000000..f9bc7ae --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testing.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/opentoonz-master.sh" + +PK_DIRNAME="opentoonz" +PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/testing" diff --git a/env-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh new file mode 100755 index 0000000..23ea415 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/launch-opentoonz-appimage.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +OLDDIR=`pwd` +cd `dirname "$0"` +SCRIPT_DIR=`pwd` +BASE_DIR=`dirname "$SCRIPT_DIR"` + +export LD_LIBRARY_PATH="$BASE_DIR/lib:$BASE_DIR/lib/opentoonz:$BASE_DIR/lib/pulseaudio:$BASE_DIR/lib64:$LD_LIBRARY_PATH" +export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb + +if [ "$1" = "--appimage-exec" ]; then + if ! "${@:2}"; then + cd "$OLDDIR" + exit 1 + fi +else + if ! "./launch-opentoonz.sh.wrapper" "$@"; then + cd "$OLDDIR" + exit 1 + fi +fi +cd "$OLDDIR" diff --git a/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop new file mode 100644 index 0000000..e30ba4d --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=OpenToonz (Morevna Edition) +Exec=launch-opentoonz-appimage.sh +Icon=opentoonz +Categories=Graphics diff --git a/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png new file mode 100644 index 0000000..6a7b998 Binary files /dev/null and b/env-builder-data/build/script/packet/opentoonz-testingappimage.files/opentoonz.png differ diff --git a/env-builder-data/build/script/packet/opentoonz-testingappimage.sh b/env-builder-data/build/script/packet/opentoonz-testingappimage.sh new file mode 100644 index 0000000..f6d4bfe --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingappimage.sh @@ -0,0 +1,3 @@ +source "$PACKET_SCRIPT_DIR/opentoonz-appimage.sh" + +DEPS="opentoonz-testing" diff --git a/env-builder-data/build/script/packet/opentoonz-testingnsis.files b/env-builder-data/build/script/packet/opentoonz-testingnsis.files new file mode 120000 index 0000000..688ae12 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingnsis.files @@ -0,0 +1 @@ +opentoonz-nsis.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/opentoonz-testingnsis.sh b/env-builder-data/build/script/packet/opentoonz-testingnsis.sh new file mode 100644 index 0000000..c77cd22 --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingnsis.sh @@ -0,0 +1,3 @@ +source "$PACKET_SCRIPT_DIR/opentoonz-nsis.sh" + +DEPS=`echo "$DEPS" | sed "s|opentoonz-master|opentoonz-testing|g"` diff --git a/env-builder-data/build/script/packet/opentoonz-testingportable.files b/env-builder-data/build/script/packet/opentoonz-testingportable.files new file mode 120000 index 0000000..6cf394c --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingportable.files @@ -0,0 +1 @@ +opentoonz-portable.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/opentoonz-testingportable.sh b/env-builder-data/build/script/packet/opentoonz-testingportable.sh new file mode 100644 index 0000000..c5a48df --- /dev/null +++ b/env-builder-data/build/script/packet/opentoonz-testingportable.sh @@ -0,0 +1,3 @@ +source "$PACKET_SCRIPT_DIR/opentoonz-portable.sh" + +DEPS=`echo "$DEPS" | sed "s|opentoonz-master|opentoonz-testing|g"` diff --git a/env-builder-data/build/script/packet/pango-1.40.3.sh b/env-builder-data/build/script/packet/pango-1.40.3.sh new file mode 100644 index 0000000..5281763 --- /dev/null +++ b/env-builder-data/build/script/packet/pango-1.40.3.sh @@ -0,0 +1,8 @@ +DEPS="harfbuzz-1.3.2 fontconfig-2.11.0 glib-2.50.0 cairo-1.15.4" +#DEPS_NATIVE="gobjectintrospection-1.50.0" + +PK_DIRNAME="pango-1.40.3" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/pango/1.40/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/pangomm-2.40.1.sh b/env-builder-data/build/script/packet/pangomm-2.40.1.sh new file mode 100644 index 0000000..1316b98 --- /dev/null +++ b/env-builder-data/build/script/packet/pangomm-2.40.1.sh @@ -0,0 +1,8 @@ +DEPS="pango-1.40.3 glibmm-2.50.0 cairomm-1.12.0" + +PK_DIRNAME="pangomm-2.40.1" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/pangomm/2.40/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.tools" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/papagayong-appimage.files/launch.sh b/env-builder-data/build/script/packet/papagayong-appimage.files/launch.sh new file mode 100755 index 0000000..1506fe5 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-appimage.files/launch.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` + +export LD_LIBRARY_PATH="${BASE_DIR}/lib:${BASE_DIR}/lib64:$LD_LIBRARY_PATH" +export XDG_DATA_DIRS="${BASE_DIR}/share:$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" +export GSETTINGS_SCHEMA_DIR="${BASE_DIR}/share/glib-2.0/schemas/" +export PYTHONHOME=$BASE_DIR +export FONTCONFIG_PATH=/etc/fonts + +#sed "s?@ROOTDIR@/modules?${BASE_DIR}/lib/pango/1.6.0/modules?" < $ETC_DIR/pango/pango.modules.in > $USER_CONFIG_DIR/pango/pango.modules +if [ -e ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in ]; then + export GDK_PIXBUF_MODULE_FILE="${USER_CONFIG_DIR}/gdk-pixbuf.loaders" + sed "s?@ROOTDIR@/loaders?${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders?" < ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in > $GDK_PIXBUF_MODULE_FILE +fi + +export APPIMAGE_ROOT="$BASE_DIR" +if [ ! -z "$APPIMAGE_WORKDIR" ]; then + if ! cd "$APPIMAGE_WORKDIR"; then + echo "Cannot change directory to \"$APPIMAGE_WORKDIR\" (APPIMAGE_WORKDIR)" + exit 1 + fi +fi + +if [ "$1" = "--appimage-exec" ]; then + if ! "${@:2}"; then + exit 1 + fi +elif [ -z "$2" ]; then + if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then + exit 1 + fi +elif [ "$1" -eq "--remove-appimage-desktop-integration" ]; then + if ! "$BASE_DIR/bin/papagayong.wrapper" "$@"; then + exit 1 + fi +else + if ! "$BASE_DIR/bin/papagayong" "$@"; then + exit 1 + fi +fi diff --git a/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong b/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong new file mode 100755 index 0000000..baf04f1 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong @@ -0,0 +1,5 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +cd "$SCRIPT_DIR/../opt/papagayong" +"$SCRIPT_DIR/python3" papagayo-ng.py "$@" diff --git a/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop b/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop new file mode 100644 index 0000000..2518dfc --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-appimage.files/papagayong.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Papagayo NG +Comment=Lipsync tool +Exec=launch.sh +Icon=papagayong +Terminal=false +Type=Application +Categories=Graphics;Application; +MimeType=application/x-papagayo;application/x-extension-pgo; +X-Desktop-File-Install-Version=0.15 diff --git a/env-builder-data/build/script/packet/papagayong-appimage.sh b/env-builder-data/build/script/packet/papagayong-appimage.sh new file mode 100644 index 0000000..d97a02e --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-appimage.sh @@ -0,0 +1,51 @@ +DEPS="papagayong-testing" +DEPS_NATIVE="appimagekit-master" + +PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ +PK_APPDIR_NAME="papagayong" + +pkinstall() { + # copy files from envdeps (install requires envdeps explicit) + + local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + mkdir -p "$APPDIR/usr" + mkdir -p "$APPDIR/usr/bin" + mkdir -p "$APPDIR/usr/lib" + + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/papagayong.wrapper"|| return 1 + + cp --remove-destination "$FILES_PACKET_DIR/papagayong.desktop" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/papagayong" "$APPDIR/usr/bin/" || return 1 + + copy_system_gcc_libs "$APPDIR/usr/lib/" || return 1 + copy_system_lib libudev "$APPDIR/usr/lib/" || return 1 + copy_system_lib libpng12 "$APPDIR/usr/lib/" || return 1 + copy_system_lib libffi "$APPDIR/usr/lib/" || return 1 + copy_system_lib libdb "$APPDIR/usr/lib/" || return 1 + copy_system_lib libpcre "$APPDIR/usr/lib/" || return 1 + copy_system_lib libdirect "$APPDIR/usr/lib/" || return 1 + copy_system_lib libfusion "$APPDIR/usr/lib/" || return 1 + copy_system_lib libbz2 "$APPDIR/usr/lib/" || return 1 +} + +pkinstall_release() { + if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then + return 1 + fi + + # copy files from envdeps_release (install_release requires envdeps_release explicit) + + local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 + cp "$APPDIR/usr/share/icons/default/128x128/apps/papagayong.png" "$APPDIR/" || return 1 + + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 + tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 + rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + + rm -rf "$APPDIR" +} diff --git a/env-builder-data/build/script/packet/papagayong-master.files/build-win.sh b/env-builder-data/build/script/packet/papagayong-master.files/build-win.sh new file mode 100755 index 0000000..50bbf35 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-master.files/build-win.sh @@ -0,0 +1,75 @@ +#!/bin/bash + +# QUICK HACK: + +set -e + +PK_DIRNAME="papagayo-ng" + +PREBUILT_URL="https://github.com/morevnaproject/papagayo-ng/releases/download/v1.4.0/papagayo-ng-1.4.0-win.zip" +PREBUILT_ZIP="papagayo-ng-1.4.0-win.zip" +PREBUILT_DIR="papagayo-ng-1.4.0-win" + +VERSION=$(grep "export VERSION=" "$UNPACK_PACKET_DIR/$PK_DIRNAME/util/package-linux.sh" | cut -d\' -f 2) +TARGET_DIR="papagayo-ng-$VERSION-win" + +foreachfile() { + local FILE=$1 + local COMMAND=$2 + if [ ! -e "$FILE" ]; then + return 1 + fi + if [ -d "$FILE" ]; then + ls -A1 "$FILE" | while read SUBFILE; do + if ! $COMMAND "$FILE/$SUBFILE" ${@:3}; then + return 1 + fi + done + fi +} + +nsis_register_file() { + local FILE=$1 + local WIN_FILE=$(echo "$FILE" | sed "s|\/|\\\\|g") + + if [ "${FILE:0:2}" = "./" ]; then + if [ -d "$FILE" ]; then + foreachfile "$FILE" nsis_register_file + echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" + else + echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "files-uninstall.nsh" + fi + else + foreachfile $FILE nsis_register_file + fi +} + +if [ ! -f "$BUILD_PACKET_DIR/papagayo-ng-$VERSION-win-installer.exe" ] \ +|| [ "$BUILD_PACKET_DIR/papagayo-ng-$VERSION-win-installer.exe" -ot "$CURRENT_PACKET_DIR/unpack.done" ]; then + mkdir -p "$BUILD_PACKET_DIR/prebuilt" + + cd "$BUILD_PACKET_DIR/prebuilt" + wget -c "$PREBUILT_URL" + rm -rf "$TARGET_DIR" + unzip "$PREBUILT_ZIP" + + cd "$BUILD_PACKET_DIR" + rm -f "$TARGET_DIR.zip" + rm -rf "$TARGET_DIR" + mv "prebuilt/$PREBUILT_DIR" "$TARGET_DIR" + + cd "$BUILD_PACKET_DIR/$TARGET_DIR" + rm -rf papagayo-ng + ln -s "$UNPACK_PACKET_DIR/$PK_DIRNAME" papagayo-ng + cp "$FILES_PACKET_DIR/papagayo-ng.nsi" . + cp "$FILES_PACKET_DIR/papagayo-ng.bat" . + touch "files-uninstall.nsh" + nsis_register_file . + makensis papagayo-ng.nsi + + cd "$BUILD_PACKET_DIR" + zip -r "$TARGET_DIR.zip" "$TARGET_DIR" + rm -rf "$TARGET_DIR" + mv "papagayo-ng-installer.exe" "papagayo-ng-$VERSION-win-installer.exe" +fi + diff --git a/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat b/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat new file mode 100644 index 0000000..30974b5 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.bat @@ -0,0 +1,3 @@ +%~d0 +cd "%~dp0" +python.exe papagayo-ng\papagayo-ng.py %* diff --git a/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi b/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi new file mode 100644 index 0000000..7303092 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-master.files/papagayo-ng.nsi @@ -0,0 +1,62 @@ +OutFile "..\papagayo-ng-installer.exe" +InstallDir "$PROGRAMFILES\Papagayo-NG" +Name "Papagayo-NG" + +SetCompressor /final lzma +!include MUI2.nsh + +Icon "papagayo-ng\papagayo-ng.ico" +UninstallIcon "papagayo-ng\papagayo-ng.ico" + +LicenseData "papagayo-ng\gpl.txt" +!insertmacro MUI_PAGE_LICENSE "papagayo-ng\gpl.txt" + +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + +Section "Papagayo-NG (required)" + SectionIn RO + WriteRegStr HKLM "Software\$(^Name)" "Path" "$INSTDIR" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "DisplayName" "$(^Name)" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "UninstallString" "$INSTDIR\uninstall.exe" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "HelpLink" "https://github.com/morevnaproject/papagayo-ng" + + WriteRegStr HKCR ".pgo" "" "Papagayo.Document" + WriteRegStr HKCR "Papagayo.Document" "" "Papagayo Document" + WriteRegStr HKCR "Papagayo.Document\DefaultIcon" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" + WriteRegStr HKCR "Papagayo.Document\shell\open\command" "" '"$INSTDIR\papagayo-ng.bat" "%1"' + + SetOutPath $INSTDIR + File /r /x papagayo-ng.nsi * + WriteUninstaller "uninstall.exe" +SectionEnd + +Section "Start Menu Shortcuts" + SetShellVarContext all + CreateDirectory "$SMPROGRAMS\$(^Name)" + CreateShortCut "$SMPROGRAMS\$(^Name)\$(^Name).lnk" "$INSTDIR\papagayo-ng.bat" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" + CreateShortCut "$SMPROGRAMS\$(^Name)\Uninstall $(^Name).lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico" +SectionEnd + +Section "Uninstall" + Var /GLOBAL testkey + + DeleteRegKey HKLM "Software\$(^Name)\" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" + + ReadRegStr $testkey HKCR "Papagayo.Document\DefaultIcon" "" + StrCmp $testkey "$INSTDIR\papagayo-ng\papagayo-ng.ico" 0 +2 + DeleteRegKey HKCR "Papagayo.Document\DefaultIcon" + + ReadRegStr $testkey HKCR "Papagayo.Document\shell\open\command" "" + StrCmp $testkey '"$INSTDIR\papagayo-ng.bat" "%1"' 0 +2 + DeleteRegKey HKCR "Papagayo.Document\shell\open\command" + + !include "files-uninstall.nsh" + Delete "$INSTDIR\uninstall.exe" + RMDir "$INSTDIR" +SectionEnd + diff --git a/env-builder-data/build/script/packet/papagayong-master.files/papagayo.xml b/env-builder-data/build/script/packet/papagayong-master.files/papagayo.xml new file mode 100644 index 0000000..94ece23 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-master.files/papagayo.xml @@ -0,0 +1,7 @@ + + + + Papagayo Project + + + \ No newline at end of file diff --git a/env-builder-data/build/script/packet/papagayong-master.sh b/env-builder-data/build/script/packet/papagayong-master.sh new file mode 100644 index 0000000..7a49a0d --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-master.sh @@ -0,0 +1,31 @@ +DEPS="wxphoenix-master python3pyaudio-master" + +if [ "$PLATFORM" = "win" ]; then + DEPS_NATIVE="nsis-2.50" +fi + +PK_DIRNAME="papagayo-ng" +PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git" + +PK_LICENSE_FILES="readme.txt gpl.txt" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + return 0 +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/opt" + local TARGET="$INSTALL_PACKET_DIR/opt/papagayong" + rm -rf "$TARGET" + cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME" "$TARGET" || return 1 + + mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps" + mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes" + mkdir -p "$INSTALL_PACKET_DIR/share/mime" + cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps/papagayong.png" || return 1 + #cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes/application-x-papagayo.png" || return 1 + cp "$FILES_PACKET_DIR/papagayo.xml" "$INSTALL_PACKET_DIR/share/mime/" || return 1 + return 0 +} diff --git a/env-builder-data/build/script/packet/papagayong-testing.files b/env-builder-data/build/script/packet/papagayong-testing.files new file mode 120000 index 0000000..a3e9471 --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-testing.files @@ -0,0 +1 @@ +papagayong-master.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/papagayong-testing.sh b/env-builder-data/build/script/packet/papagayong-testing.sh new file mode 100644 index 0000000..93a3c4b --- /dev/null +++ b/env-builder-data/build/script/packet/papagayong-testing.sh @@ -0,0 +1,3 @@ +source "$PACKET_SCRIPT_DIR/papagayong-master.sh" + +PK_GIT_CHECKOUT="origin/testing" diff --git a/env-builder-data/build/script/packet/pixman-0.34.0.sh b/env-builder-data/build/script/packet/pixman-0.34.0.sh new file mode 100644 index 0000000..b9cfeba --- /dev/null +++ b/env-builder-data/build/script/packet/pixman-0.34.0.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="pixman-0.34.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.cairographics.org/releases/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch b/env-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch new file mode 100644 index 0000000..dea9349 --- /dev/null +++ b/env-builder-data/build/script/packet/png-1.6.26.files/libpng.pc.in.patch @@ -0,0 +1,2 @@ +8a9 +> Requires: zlib diff --git a/env-builder-data/build/script/packet/png-1.6.26.sh b/env-builder-data/build/script/packet/png-1.6.26.sh new file mode 100644 index 0000000..abc7ee9 --- /dev/null +++ b/env-builder-data/build/script/packet/png-1.6.26.sh @@ -0,0 +1,11 @@ +DEPS="zlib-1.2.11" + +PK_DIRNAME="libpng-1.6.26" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://download.sourceforge.net/libpng/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkhook_prebuild() { + pkhelper_patch . libpng.pc.in +} diff --git a/env-builder-data/build/script/packet/portaudio-19.6.0.sh b/env-builder-data/build/script/packet/portaudio-19.6.0.sh new file mode 100644 index 0000000..0feb2fa --- /dev/null +++ b/env-builder-data/build/script/packet/portaudio-19.6.0.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="portaudio" +PK_ARCHIVE="pa_stable_v19_20140130.tgz" +PK_URL="http://www.portaudio.com/archives/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/pulseaudio-11.1.sh b/env-builder-data/build/script/packet/pulseaudio-11.1.sh new file mode 100644 index 0000000..6f32c69 --- /dev/null +++ b/env-builder-data/build/script/packet/pulseaudio-11.1.sh @@ -0,0 +1,9 @@ +DEPS="sndfile-1.0.28 speexdsp-1.2rc3" + +PK_DIRNAME="pulseaudio-11.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://freedesktop.org/software/pulseaudio/releases/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--without-caps" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/python-3.6.0.sh b/env-builder-data/build/script/packet/python-3.6.0.sh new file mode 100644 index 0000000..e79fe08 --- /dev/null +++ b/env-builder-data/build/script/packet/python-3.6.0.sh @@ -0,0 +1,14 @@ +DEPS="" + +PK_DIRNAME="Python-3.6.0" +PK_ARCHIVE="$PK_DIRNAME.tgz" +PK_URL="https://www.python.org/ftp/python/3.6.0/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + make install || return 1 + cd "$INSTALL_PACKET_DIR/bin" || return 1 + ln -s python3 python || return 1 +} \ No newline at end of file diff --git a/env-builder-data/build/script/packet/python3pyaudio-master.sh b/env-builder-data/build/script/packet/python3pyaudio-master.sh new file mode 100644 index 0000000..64d6c6d --- /dev/null +++ b/env-builder-data/build/script/packet/python3pyaudio-master.sh @@ -0,0 +1,24 @@ +DEPS="python-3.6.0 portaudio-19.6.0" + +PK_DIRNAME="pyaudio" +PK_URL="https://people.csail.mit.edu/hubert/git/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/v0.2.11" +PK_LICENSE_FILES="README" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + return 0 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ + python3 \ + setup.py \ + install \ + --prefix=$INSTALL_PACKET_DIR \ + || return 1 +} diff --git a/env-builder-data/build/script/packet/python3requests-master.sh b/env-builder-data/build/script/packet/python3requests-master.sh new file mode 100644 index 0000000..9771338 --- /dev/null +++ b/env-builder-data/build/script/packet/python3requests-master.sh @@ -0,0 +1,24 @@ +DEPS="python-3.6.0" + +PK_DIRNAME="requests" +PK_URL="https://github.com/kennethreitz/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/v2.17.3" +PK_LICENSE_FILES="AUTHORS.rst LICENSE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + return 0 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \ + python3 \ + setup.py \ + install \ + --prefix=$INSTALL_PACKET_DIR \ + || return 1 +} diff --git a/env-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch b/env-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch new file mode 100644 index 0000000..5f3e189 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.files/direct2d.pro.patch @@ -0,0 +1,4 @@ +8c8 +< LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lVersion -lgdi32 +--- +> LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lversion -lgdi32 diff --git a/env-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch b/env-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch new file mode 100644 index 0000000..6caaaf3 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.files/gl.hpp.patch @@ -0,0 +1,5 @@ +25,26c25 +< #elif __QT__ && QT_VERSION >= 0x050000 +< #define GL_GLEXT_PROTOTYPES +--- +> #elif defined(__QT__) diff --git a/env-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch b/env-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch new file mode 100644 index 0000000..d98e3d1 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.files/idc.pro.patch @@ -0,0 +1,2 @@ +1d0 +< option(host_build) diff --git a/env-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch b/env-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch new file mode 100644 index 0000000..510b391 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.files/qmake.conf.patch @@ -0,0 +1,7 @@ +53,56c53 +< equals(QMAKE_HOST.os, Windows) { +< QMAKE_LINK_OBJECT_MAX = 10 +< QMAKE_LINK_OBJECT_SCRIPT = object_script +< } +--- +> QMAKE_LINK_OBJECT_MAX = 1 diff --git a/env-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch b/env-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch new file mode 100644 index 0000000..a3c40b6 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.files/socketcanbackend.cpp.patch @@ -0,0 +1,8 @@ +76a77,83 +> #ifndef CANFD_BRS +> # define CANFD_BRS 0x01 /* bit rate switch (second bitrate for payload data) */ +> #endif +> #ifndef CANFD_ESI +> # define CANFD_ESI 0x02 /* error state indicator of the transmitting node */ +> #endif +> diff --git a/env-builder-data/build/script/packet/qt-5.9.2.sh b/env-builder-data/build/script/packet/qt-5.9.2.sh new file mode 100644 index 0000000..2fc4f81 --- /dev/null +++ b/env-builder-data/build/script/packet/qt-5.9.2.sh @@ -0,0 +1,93 @@ +DEPS="png-1.6.26 glib-2.50.0" + +if [ "$PLATFORM" = "linux" ]; then + DEPS="$DEPS pulseaudio-11.1" +fi + +PK_DIRNAME="qt-everywhere-opensource-src-5.9.2" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="http://download.qt.io/official_releases/qt/5.9/5.9.2/single/$PK_ARCHIVE" +PK_LICENSE_FILES="LICENSE.LGPLv21" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$PLATFORM" = "linux" ]; then + DEPS="$DEPS xcbfull-1.12" +fi + + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! check_packet_function $NAME build.configure; then + local LOCAL_OPTIONS= + if [ "$PLATFORM" = "win" ]; then + rm -f "qtbase/mkspecs/win32-g++/qmake.conf" || return 1 + patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtbase/mkspecs/win32-g++/qmake.conf" \ + -i "$FILES_PACKET_DIR/qmake.conf.patch" -o - \ + > "qtbase/mkspecs/win32-g++/qmake.conf" + + rm -f "qtactiveqt/src/tools/idc/idc.pro" || return 1 + patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtactiveqt/src/tools/idc/idc.pro" \ + -i "$FILES_PACKET_DIR/idc.pro.patch" -o - \ + > "qtactiveqt/src/tools/idc/idc.pro" + + rm -f "qtbase/src/plugins/platforms/direct2d/direct2d.pro" || return 1 + patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtbase/src/plugins/platforms/direct2d/direct2d.pro" \ + -i "$FILES_PACKET_DIR/direct2d.pro.patch" -o - \ + > "qtbase/src/plugins/platforms/direct2d/direct2d.pro" + + #rm -f "qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" || return 1 + #patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" \ + # -i "$FILES_PACKET_DIR/gl.hpp.patch" -o - \ + # > "qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/gl.hpp" + + LOCAL_OPTIONS=" \ + -xplatform win32-g++ \ + -device-option CROSS_COMPILE=$HOST- \ + -opengl desktop \ + -no-feature-geoservices_mapboxgl " + fi + + rm -f "qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" || return 1 + patch "$UNPACK_PACKET_DIR/$PK_DIRNAME/qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" \ + -i "$FILES_PACKET_DIR/socketcanbackend.cpp.patch" -o - \ + > "qtserialbus/src/plugins/canbus/socketcan/socketcanbackend.cpp" + + native_at_place with_envvar PATH "$PATH" \ + ./configure \ + -prefix "$INSTALL_PACKET_DIR" \ + $LOCAL_OPTIONS \ + -release \ + -shared \ + -opensource -confirm-license \ + -nomake examples \ + || return 1 + + set_done $NAME build.configure + fi + + native_at_place with_envvar PATH "$PATH" make -j${THREADS} || \ + native_at_place with_envvar PATH "$PATH" make || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + native_at_place with_envvar PATH "$PATH" make install || return 1 + +cat << EOF > "$INSTALL_PACKET_DIR/bin/qt.conf" +[Paths] +Prefix=.. +EOF + + if [ ! $? -eq 0 ]; then + return 1 + fi +} + +pkhook_postinstall_release() { + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -rf "examples" || return 1 + rm -rf "mkspecs" || return 1 + rm -rf "doc" || return 1 +} \ No newline at end of file diff --git a/env-builder-data/build/script/packet/rsvg-2.40.16.sh b/env-builder-data/build/script/packet/rsvg-2.40.16.sh new file mode 100644 index 0000000..da49de3 --- /dev/null +++ b/env-builder-data/build/script/packet/rsvg-2.40.16.sh @@ -0,0 +1,26 @@ +DEPS="croco-0.6.11 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3" + +if [ "$PLATFORM" = "win" ]; then + DEPS_NATIVE="gdkpixbuf-2.36.0" +fi + +PK_DIRNAME="librsvg-2.40.16" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/librsvg/2.40/$PK_ARCHIVE" +PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +PK_CONFIGURE_OPTIONS="--enable-introspection=no" + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + make install || return 1 + local GDK_API_VERSION=`ls $ENVDEPS_PACKET_DIR/lib/gdk-pixbuf-2.0/ | grep 2` + if [ -z "$GDK_API_VERSION" ]; then + return 1 + fi + local GDK_LOADERS="$INSTALL_PACKET_DIR/lib/gdk-pixbuf-2.0/$GDK_API_VERSION/loaders" + mkdir -p "$GDK_LOADERS" || return 1 + cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/gdk-pixbuf-loader/.libs/libpixbufloader-svg."* "$GDK_LOADERS/" || return 1 +} diff --git a/env-builder-data/build/script/packet/samplerate-0.1.9.sh b/env-builder-data/build/script/packet/samplerate-0.1.9.sh new file mode 100644 index 0000000..0a5968d --- /dev/null +++ b/env-builder-data/build/script/packet/samplerate-0.1.9.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="libsamplerate-0.1.9" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.mega-nerd.com/SRC/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/scons-3.0.1.sh b/env-builder-data/build/script/packet/scons-3.0.1.sh new file mode 100644 index 0000000..22a5625 --- /dev/null +++ b/env-builder-data/build/script/packet/scons-3.0.1.sh @@ -0,0 +1,14 @@ +PK_DIRNAME="scons-3.0.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://prdownloads.sourceforge.net/scons/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + return 0 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + python setup.py install --prefix="$INSTALL_PACKET_DIR" || return 1 +} diff --git a/env-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch b/env-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch new file mode 100644 index 0000000..b241b22 --- /dev/null +++ b/env-builder-data/build/script/packet/sdl-1.2.15.files/SDL_x11sym.h.patch @@ -0,0 +1,4 @@ +168c168 +< SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return) +--- +> SDL_X11_SYM(int,_XData32,(Display *dpy,register const long *data,unsigned len),(dpy,data,len),return) diff --git a/env-builder-data/build/script/packet/sdl-1.2.15.sh b/env-builder-data/build/script/packet/sdl-1.2.15.sh new file mode 100644 index 0000000..6f99e25 --- /dev/null +++ b/env-builder-data/build/script/packet/sdl-1.2.15.sh @@ -0,0 +1,29 @@ +DEPS="" + +PK_DIRNAME="SDL-1.2.15" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if ! check_packet_function $NAME build.cunfigure; then + if [ "$PLATFORM" = "fedora" ]; then + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/src/video/x11/SDL_x11sym.h" "src/video/x11" || return 1 + patch "src/video/x11/SDL_x11sym.h" "$FILES_PACKET_DIR/SDL_x11sym.h.patch" || return 1 + fi + CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + ./configure \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.cunfigure + fi + if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/sdl-2.0.5.sh b/env-builder-data/build/script/packet/sdl-2.0.5.sh new file mode 100644 index 0000000..4a8bb74 --- /dev/null +++ b/env-builder-data/build/script/packet/sdl-2.0.5.sh @@ -0,0 +1,12 @@ +DEPS="" + +PK_DIRNAME="SDL2-2.0.5" +## !!! SDL 2.0.7 produces linker errors with MinGW builds: +# /usr/local/x86_64-w64-mingw32/sys-root/lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main': +# /install-mingw/build/crt-x86_64-w64-mingw32/../../download/mingw-w64-v5.0.3/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain' +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sdl-2.0.9.sh b/env-builder-data/build/script/packet/sdl-2.0.9.sh new file mode 100644 index 0000000..53de70e --- /dev/null +++ b/env-builder-data/build/script/packet/sdl-2.0.9.sh @@ -0,0 +1,12 @@ +DEPS="" + +PK_DIRNAME="SDL2-2.0.9" +## !!! SDL 2.0.7 produces linker errors with MinGW builds: +# /usr/local/x86_64-w64-mingw32/sys-root/lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main': +# /install-mingw/build/crt-x86_64-w64-mingw32/../../download/mingw-w64-v5.0.3/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain' +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sdl_mixer-2.0.1.sh b/env-builder-data/build/script/packet/sdl_mixer-2.0.1.sh new file mode 100644 index 0000000..14a51df --- /dev/null +++ b/env-builder-data/build/script/packet/sdl_mixer-2.0.1.sh @@ -0,0 +1,9 @@ +DEPS="sdl-2.0.5" + +PK_DIRNAME="SDL2_mixer-2.0.1" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/projects/SDL_mixer/release/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sdl_mixer-2.0.4.sh b/env-builder-data/build/script/packet/sdl_mixer-2.0.4.sh new file mode 100644 index 0000000..bc945a8 --- /dev/null +++ b/env-builder-data/build/script/packet/sdl_mixer-2.0.4.sh @@ -0,0 +1,9 @@ +DEPS="sdl-2.0.9" + +PK_DIRNAME="SDL2_mixer-2.0.4" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://www.libsdl.org/projects/SDL_mixer/release/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sigcpp-2.10.0.sh b/env-builder-data/build/script/packet/sigcpp-2.10.0.sh new file mode 100644 index 0000000..8ede73f --- /dev/null +++ b/env-builder-data/build/script/packet/sigcpp-2.10.0.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="libsigc++-2.10.0" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/libsigc++/2.10/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sndfile-1.0.28.sh b/env-builder-data/build/script/packet/sndfile-1.0.28.sh new file mode 100644 index 0000000..79650c0 --- /dev/null +++ b/env-builder-data/build/script/packet/sndfile-1.0.28.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="libsndfile-1.0.28" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.mega-nerd.com/libsndfile/files/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/sox-14.4.2.sh b/env-builder-data/build/script/packet/sox-14.4.2.sh new file mode 100644 index 0000000..ced5992 --- /dev/null +++ b/env-builder-data/build/script/packet/sox-14.4.2.sh @@ -0,0 +1,8 @@ +DEPS="png-1.6.26" + +PK_DIRNAME="sox-14.4.2" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://sourceforge.net/projects/sox/files/sox/14.4.2/$PK_ARCHIVE/download" +PK_LICENSE_FILES="AUTHORS COPYING LICENSE.GPL LICENSE.LGPL" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/speexdsp-1.2rc3.sh b/env-builder-data/build/script/packet/speexdsp-1.2rc3.sh new file mode 100644 index 0000000..201d64f --- /dev/null +++ b/env-builder-data/build/script/packet/speexdsp-1.2rc3.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="speexdsp-1.2rc3" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://downloads.us.xiph.org/releases/speex/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c b/env-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c new file mode 100644 index 0000000..b24ad13 --- /dev/null +++ b/env-builder-data/build/script/packet/superlu-5.2.1.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/env-builder-data/build/script/packet/superlu-5.2.1.sh b/env-builder-data/build/script/packet/superlu-5.2.1.sh new file mode 100644 index 0000000..cf9b6c7 --- /dev/null +++ b/env-builder-data/build/script/packet/superlu-5.2.1.sh @@ -0,0 +1,41 @@ +DEPS="blas-3.7.0" + +PK_DIRNAME="SuperLU_5.2.1" +PK_ARCHIVE="superlu_5.2.1.tar.gz" +PK_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + +rm -f make.inc +cat > make.inc << EOF +SuperLUroot = $BUILD_PACKET_DIR/$PK_DIRNAME +SUPERLULIB = \$(SuperLUroot)/lib/libsuperlu.a +BLASDEF = -DUSE_VENDOR_BLAS +BLASLIB = \$(LDFLAGS) -lblas -lgfortran +TMGLIB = libtmglib.a +LIBS = \$(SUPERLULIB) \$(BLASLIB) +ARCH = ${AR:-ar} +ARCHFLAGS = cr +RANLIB = ${RANLIB:-ranlib} +CC = ${CC:-gcc} +CFLAGS = -O3 -fPIC +NOOPTS = -fPIC +FORTRAN = ${FORTRAN:-gfortran} +FFLAGS = -O2 -fPIC +LOADER = \$(CC) +LOADOPTS = +CDEFS = -DAdd_ +EOF + + cp --remove-destination "$FILES_PACKET_DIR/mc64ad.c" "$BUILD_PACKET_DIR/$PK_DIRNAME/SRC/" || return 1 + make lib || return 1 +} + +pkinstall() { + cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/lib" "$INSTALL_PACKET_DIR" || return 1 + mkdir -p "$INSTALL_PACKET_DIR/include/superlu" + cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/SRC/*.h "$INSTALL_PACKET_DIR/include/superlu" || return 1 +} diff --git a/env-builder-data/build/script/packet/synfigcore-debug.sh b/env-builder-data/build/script/packet/synfigcore-debug.sh new file mode 100644 index 0000000..6cc6b87 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigcore-debug.sh @@ -0,0 +1,6 @@ +source "$PACKET_SCRIPT_DIR/synfigcore-master.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigetl-master|synfigetl-debug|g"` +PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/debug" +PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/env-builder-data/build/script/packet/synfigcore-master.sh b/env-builder-data/build/script/packet/synfigcore-master.sh new file mode 100644 index 0000000..dea975d --- /dev/null +++ b/env-builder-data/build/script/packet/synfigcore-master.sh @@ -0,0 +1,99 @@ +# automake +# intltool +# libdb-dev - libdb already installed - required +# bzip2 - required +# libasound2-dev - required +# libffi-dev - libffi5 already installed - glib +# libdbus-1-dev - atspi2 +# libxtst-dev - atspi2 + +# uuid-dev - libuuid1 already installed - gilib via libmount-dev +# libpciaccess-dev - libpciaccess0 already installed + +# libncurses-dev - gettext +# libtinfo-dev - gettext +# libunistring-dev - gettext + +# libjasper-dev +# libdirectfb-dev +# python-dev + +# libxml-parser-perl + + + +# + jpeg +# + tiff +# glib - from glibmm +# harfbuzz - not used in core - pango +# fontconfig - from the system +# pixman - from cairo +# + cairo +# + pango - also from cairo +# croco - not used in core - for gettext +# + jack +# mesa - opengl not used in this build +# sigcpp - from glibmm +# + glibmm +# + xmlpp +# + mlt +# + imagemagick +# ogg - not used in core - ffmpeg, vorbis, theora +# vorbis - not used in core - ffmpeg +# samplerate - not used in core - mlt +# sox - not used in core - mlt +# lame - not used in core - ffmpeg +# theora - not used in core - ffmpeg +# x264 - not used in core - ffmpeg +# faac - not used in core - mlt +# yasm - not used in core - ffmpeg +# + ffmpeg +# sdl - not used in core - ffmpeg, mlt +# + fftw +# + boost +# . m4 - from autoconf +# . autoconf - from automake +# . automake - from intltool +# . tool (libtool) - from the system +# . gettext - from intltool +# . intltool - from the system + +DEPS=" \ + synfigetl-master \ + jpeg-9b tiff-4.0.6 fftw-3.3.5 imagemagick-6.8.7 \ + ffmpeg-3.1.5 mlt-6.2.0 \ + boost-1.61.0 cairo-1.15.4 pango-1.40.3 \ + glibmm-2.50.0 xmlpp-2.40.1 " +DEPS_NATIVE="libtool-2.4.6" + +PK_DIRNAME="synfig" +PK_URL="https://github.com/synfig/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/testing" +PK_LICENSE_FILES="synfig-core/AUTHORS synfig-core/README" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core" || return 1 + if ! check_packet_function $NAME build.configure; then + ./bootstrap.sh || return 1 + CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + ./configure \ + --host=$HOST \ + --prefix=$INSTALL_PACKET_DIR \ + --sysconfdir=$INSTALL_PACKET_DIR/etc \ + --with-boost-libdir=$ENVDEPS_PACKET_DIR/lib \ + --without-opengl \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.configure + fi + make -j${THREADS} || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core" + if ! make install; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/synfigetl-debug.sh b/env-builder-data/build/script/packet/synfigetl-debug.sh new file mode 100644 index 0000000..2245a5d --- /dev/null +++ b/env-builder-data/build/script/packet/synfigetl-debug.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/synfigetl-master.sh" + +PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/debug" +PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/env-builder-data/build/script/packet/synfigetl-master.sh b/env-builder-data/build/script/packet/synfigetl-master.sh new file mode 100644 index 0000000..46678dd --- /dev/null +++ b/env-builder-data/build/script/packet/synfigetl-master.sh @@ -0,0 +1,31 @@ +DEPS="" +DEPS_NATIVE="libtool-2.4.6" + +PK_DIRNAME="synfig" +PK_URL="https://github.com/synfig/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/testing" +PK_LICENSE_FILES="ETL/AUTHORS ETL/README" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/ETL" || return 1 + if ! check_packet_function $NAME build.configure; then + autoreconf --install --force || return 1 + ./configure \ + --host=$HOST \ + --prefix=$INSTALL_PACKET_DIR \ + --sysconfdir=$INSTALL_PACKET_DIR/etc \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.configure + fi + make -j${THREADS} || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME/ETL" + if ! make install; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh b/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh new file mode 100755 index 0000000..ad5cd4b --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-appimage.files/launch.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` + +# Check if this system have JACK installed +if ! (which jackd &>/dev/null); then + # No JACK, so disable this functionality. + # (The bundled libjack won't work correctly anyway). + export SYNFIG_DISABLE_JACK=1 + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${BASE_DIR}/lib.extra/jack" +fi + +export USER_CONFIG_DIR=$HOME/.config/synfig + +export LD_LIBRARY_PATH="${BASE_DIR}/lib:${BASE_DIR}/lib64:$LD_LIBRARY_PATH" +export XDG_DATA_DIRS="${BASE_DIR}/share:$XDG_DATA_DIRS:/usr/local/share/:/usr/share/" +export XDG_CONFIG_DIRS="$HOME/.config/synfig:$XDG_CONFIG_DIRS" +export XCURSOR_PATH="${BASE_DIR}/share/icons:$XCURSOR_PATH:/usr/local/share/icons:/usr/share/icons" +export GSETTINGS_SCHEMA_DIR="${BASE_DIR}/share/glib-2.0/schemas/" +export QT_XKB_CONFIG_ROOT=$QT_XKB_CONFIG_ROOT:/usr/local/share/X11/xkb:/usr/share/X11/xkb +export FONTCONFIG_PATH=/etc/fonts + +export SYNFIG_ROOT="${BASE_DIR}" +export SYNFIG_GTK_THEME="Adwaita" +export SYNFIG_MODULE_LIST="${BASE_DIR}/etc/synfig_modules.cfg" +export MLT_DATA="${BASE_DIR}/share/mlt/" +export MLT_REPOSITORY="${BASE_DIR}/lib/mlt/" + +MAGICK_DIR="$(cd .. && ls -1d "${BASE_DIR}/lib/ImageMagick-"*)" +export MAGICK_CONFIGURE_PATH="${MAGICK_DIR}/config-Q16/" +export MAGICK_CODER_MODULE_PATH="${MAGICK_DIR}/modules-Q16/coders/" +export MAGICK_CODER_FILTER_PATH="${MAGICK_DIR}/modules-Q16/filters/" + +# Create install-location-dependent config files for Pango and GDK image loaders +# We have to do this every time because its possible that SYSPREFIX has changed + +[ -e "$USER_CONFIG_DIR" ] || mkdir -p "$USER_CONFIG_DIR" + +#sed "s?@ROOTDIR@/modules?${BASE_DIR}/lib/pango/1.6.0/modules?" < $ETC_DIR/pango/pango.modules.in > $USER_CONFIG_DIR/pango/pango.modules +if [ -e ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in ]; then + export GDK_PIXBUF_MODULE_FILE="${USER_CONFIG_DIR}/gdk-pixbuf.loaders" + sed "s?@ROOTDIR@/loaders?${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders?" < ${BASE_DIR}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache.in > $GDK_PIXBUF_MODULE_FILE +fi + +export APPIMAGE_ROOT="$BASE_DIR" +if [ ! -z "$APPIMAGE_WORKDIR" ]; then + if ! cd "$APPIMAGE_WORKDIR"; then + echo "Cannot change directory to \"$APPIMAGE_WORKDIR\" (APPIMAGE_WORKDIR)" + exit 1 + fi +fi + +if [ "$1" = "--appimage-exec" ]; then + if ! "${@:2}"; then + exit 1 + fi +elif [ -z "$2" ]; then + if ! "$BASE_DIR/bin/synfigstudio.wrapper" "$@"; then + exit 1 + fi +else + if ! "$BASE_DIR/bin/synfig" "$@"; then + exit 1 + fi +fi diff --git a/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop b/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop new file mode 100644 index 0000000..8b6f303 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Synfig Studio +Exec=launch.sh +Icon=synfigstudio +Categories=Graphics; +MimeType=application/x-sif; diff --git a/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png b/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png new file mode 100644 index 0000000..3f09db5 Binary files /dev/null and b/env-builder-data/build/script/packet/synfigstudio-appimage.files/synfigstudio.png differ diff --git a/env-builder-data/build/script/packet/synfigstudio-appimage.sh b/env-builder-data/build/script/packet/synfigstudio-appimage.sh new file mode 100644 index 0000000..9d92fae --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-appimage.sh @@ -0,0 +1,72 @@ +DEPS="synfigstudio-master" +DEPS_NATIVE="appimagekit-master" + +PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/ +PK_APPDIR_NAME="synfigstudio" + +pkinstall() { + # copy files from envdeps (install requires envdeps explicit) + + local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + mkdir -p "$APPDIR/usr" + mkdir -p "$APPDIR/usr/bin" + mkdir -p "$APPDIR/usr/lib" + + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1 + cp --remove-destination "$ENVDEPS_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/synfigstudio.wrapper"|| return 1 + + cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.desktop" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/synfigstudio.png" "$APPDIR/" || return 1 + cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1 +} + +pkinstall_release() { + if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then + return 1 + fi + + # copy files from envdeps_release (install_release requires envdeps_release explicit) + + local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir" + copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1 + + mkdir -p "$APPDIR/usr/share/icons/default/128x128/apps/" + cp "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/synfig_icon.png" "$APPDIR/usr/share/icons/default/128x128/apps/synfigstudio.png" || return 1 + mkdir -p "$APPDIR/usr/share/icons/default/128x128/mimetypes/" + cp "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/sif_icon.png" "$APPDIR/usr/share/icons/default/128x128/mimetypes/application-x-sif.png" || return 1 + + # clean bin + #rm -f "$APPDIR/usr/bin/"* || return 1 + #cp "$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir/usr/bin/"* "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/melt" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/identify" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/ffmpeg" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfig" "$APPDIR/usr/bin/" || return 1 + #cp "$ENVDEPS_RELEASE_PACKET_DIR/bin/synfigstudio" "$APPDIR/usr/bin/" || return 1 + + # clean boost + rm -f "$APPDIR/usr/lib/libboost_"* || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_chrono."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_filesystem."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_program_options."* "$APPDIR/usr/lib/" || return 1 + cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libboost_system."* "$APPDIR/usr/lib/" || return 1 + + # clean examples + rm -rf "$APPDIR/share/synfig/examples" || return 1 + + # move jack + mkdir -p "$APPDIR/usr/lib.extra/jack" + (cp "$ENVDEPS_RELEASE_PACKET_DIR/lib/libjack"* "$APPDIR/usr/lib.extra/jack" &> /dev/null) \ + || (cp "$ENVDEPS_RELEASE_PACKET_DIR/lib64/libjack"* "$APPDIR/usr/lib.extra/jack" &> /dev/null) + rm -f "$APPDIR/usr/bin/jack"* + rm -f "$APPDIR/usr/lib/libjack"* + rm -f "$APPDIR/usr/lib64/libjack"* + + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -f "$PK_APPDIR_NAME.tar.gz" || return 1 + tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1 + rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1 + + rm -rf "$APPDIR" +} diff --git a/env-builder-data/build/script/packet/synfigstudio-debug.files b/env-builder-data/build/script/packet/synfigstudio-debug.files new file mode 120000 index 0000000..4360cbb --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debug.files @@ -0,0 +1 @@ +synfigstudio-master.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/synfigstudio-debug.sh b/env-builder-data/build/script/packet/synfigstudio-debug.sh new file mode 100644 index 0000000..87b01d6 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debug.sh @@ -0,0 +1,6 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-master.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigcore-master|synfigcore-debug|g"` +PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="origin/debug" +PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/env-builder-data/build/script/packet/synfigstudio-debugappimage.files b/env-builder-data/build/script/packet/synfigstudio-debugappimage.files new file mode 120000 index 0000000..e805e8c --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugappimage.files @@ -0,0 +1 @@ +synfigstudio-appimage.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/synfigstudio-debugappimage.sh b/env-builder-data/build/script/packet/synfigstudio-debugappimage.sh new file mode 100644 index 0000000..af2b039 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugappimage.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-appimage.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` +PK_URL="https://github.com/blackwarthog/synfig.git" +PK_GIT_CHECKOUT="origin/debug" diff --git a/env-builder-data/build/script/packet/synfigstudio-debugnsis.files b/env-builder-data/build/script/packet/synfigstudio-debugnsis.files new file mode 120000 index 0000000..b812b53 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugnsis.files @@ -0,0 +1 @@ +synfigstudio-nsis.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/synfigstudio-debugnsis.sh b/env-builder-data/build/script/packet/synfigstudio-debugnsis.sh new file mode 100644 index 0000000..88ba494 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugnsis.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-nsis.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` +PK_URL="https://github.com/blackwarthog/synfig.git" +PK_GIT_CHECKOUT="origin/debug" diff --git a/env-builder-data/build/script/packet/synfigstudio-debugportable.files b/env-builder-data/build/script/packet/synfigstudio-debugportable.files new file mode 120000 index 0000000..460bddf --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugportable.files @@ -0,0 +1 @@ +synfigstudio-portable.files \ No newline at end of file diff --git a/env-builder-data/build/script/packet/synfigstudio-debugportable.sh b/env-builder-data/build/script/packet/synfigstudio-debugportable.sh new file mode 100644 index 0000000..8c33f9d --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-debugportable.sh @@ -0,0 +1,2 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-portable.sh" +DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` diff --git a/env-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache b/env-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache new file mode 100644 index 0000000..6983509 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-master.files/loaders.cache @@ -0,0 +1,118 @@ +# GdkPixbuf Image Loader Modules file +# Automatically generated file, do not edit +# Created by gdk-pixbuf-query-loaders.exe from gdk-pixbuf-2.36.0 +# +# LoaderDir = ../lib/gdk-pixbuf-2.0/2.10.0/loaders/ +# +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll" +"ani" 4 "gdk-pixbuf" "Windows animated cursor" "LGPL" +"application/x-navi-animation" "" +"ani" "" +"RIFF ACON" " xxxx " 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-bmp.dll" +"bmp" 5 "gdk-pixbuf" "BMP" "LGPL" +"image/bmp" "image/x-bmp" "image/x-MS-bmp" "" +"bmp" "" +"BM" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-emf.dll" +"emf" 4 "gdk-pixbuf" "EMF" "LGPL" +"application/emf" "application/x-emf" "image/x-emf" "image/x-mgx-emf" "" +"emf" "" +"\001" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-gif.dll" +"gif" 5 "gdk-pixbuf" "GIF" "LGPL" +"image/gif" "" +"gif" "" +"GIF8" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-ico.dll" +"ico" 4 "gdk-pixbuf" "Windows icon" "LGPL" +"image/x-icon" "image/x-ico" "" +"ico" "cur" "" +" \001 " "zz znz" 100 +" \002 " "zz znz" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-jpeg.dll" +"jpeg" 5 "gdk-pixbuf" "JPEG" "LGPL" +"image/jpeg" "" +"jpeg" "jpe" "jpg" "" +"\377\330" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-tiff.dll" +"tiff" 5 "gdk-pixbuf" "TIFF" "LGPL" +"image/tiff" "" +"tiff" "tif" "" +"MM *" " z " 100 +"II* " " z" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-wmf.dll" +"wmf" 4 "gdk-pixbuf" "WMF" "LGPL" +"image/x-wmf" "" +"wmf" "apm" "" +"\327\315\306\232" "" 100 +"\001" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll" +"icns" 4 "gdk-pixbuf" "MacOS X icon" "GPL" +"image/x-icns" "" +"icns" "" +"icns" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll" +"png" 5 "gdk-pixbuf" "PNG" "LGPL" +"image/png" "" +"png" "" +"\211PNG\r\n\032\n" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll" +"pnm" 4 "gdk-pixbuf" "PNM/PBM/PGM/PPM" "LGPL" +"image/x-portable-anymap" "image/x-portable-bitmap" "image/x-portable-graymap" "image/x-portable-pixmap" "" +"pnm" "pbm" "pgm" "ppm" "" +"P1" "" 100 +"P2" "" 100 +"P3" "" 100 +"P4" "" 100 +"P5" "" 100 +"P6" "" 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll" +"qtif" 4 "gdk-pixbuf" "QuickTime" "LGPL" +"image/x-quicktime" "image/qtif" "" +"qtif" "qif" "" +"abcdidsc" "xxxx " 100 +"abcdidat" "xxxx " 100 + +"../lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll" +"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL" +"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" "" +"svg" "svgz" "svg.gz" "" +" > "$TARGET_INSTALL" + foreachfile "$FILE" pkfunc_register_file + echo "RMDir \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" + else + echo "File \"/oname=${WIN_FILE:2}\" \"${WIN_FILE:2}\"" >> "$TARGET_INSTALL" + echo "Delete \"\$INSTDIR\\${WIN_FILE:2}\"" >> "$TARGET_UNINSTALL" + fi + fi +} + +# download portable python and pass downloaded files through all build phases +pkdownload() { + wget -c --no-check-certificate "$PK_PYTHON_URL" -O "$PK_PYTHON_ARCHIVE" || return 1 +} + +pkunpack() { + unzip "$DOWNLOAD_PACKET_DIR/$PK_PYTHON_ARCHIVE" || return 1 +} + +pkinstall() { + copy "$BUILD_PACKET_DIR" "$INSTALL_PACKET_DIR" || return 1 +} + +pkinstall_release() { + local LOCAL_INSTALLER_DIR="$INSTALL_RELEASE_PACKET_DIR/installer" + local LOCAL_CACHE_DIR="$INSTALL_RELEASE_PACKET_DIR/cache" + + # create temporary dir + rm -rf "$LOCAL_INSTALLER_DIR" + mkdir -p "$LOCAL_INSTALLER_DIR" + cd "$LOCAL_INSTALLER_DIR" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/lib/" "./bin/lib/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/share/" "./bin/share/" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/"*.dll "./bin/" || return 1 + for FILE in animate composite convert ffmpeg ffprobe gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders gio-querymodules melt sox synfig synfigstudio; do + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/${FILE}.exe" "./bin/" || return 1 + done + copy "$ENVDEPS_RELEASE_PACKET_DIR/etc/" "./etc/" || return 1 + [ -d "./lib/gdk-pixbuf-2.0/2.10.0/loaders" ] || mkdir -p "./lib/gdk-pixbuf-2.0/2.10.0/loaders" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders/"*.dll "./lib/gdk-pixbuf-2.0/2.10.0/loaders" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" "./lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" || return 1 + [ -d "./lib/gtk-3.0/3.0.0/immodules" ] || mkdir -p "./lib/gtk-3.0/3.0.0/immodules" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gtk-3.0/3.0.0/immodules/"*.dll "./lib/gtk-3.0/3.0.0/immodules" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/lib/ImageMagick-6.8.7/" "./lib/ImageMagick-6.8.7/" || return 1 + [ -d "./lib/synfig/modules" ] || mkdir -p "./lib/synfig/modules" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/synfig/modules/"*.dll "./lib/synfig/modules" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/"*.dll "./lib" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/license/" "./license/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/fontconfig/" "./share/fontconfig/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/glib-2.0/schemas/" "./share/glib-2.0/schemas/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/gtk-3.0/" "./share/gtk-3.0/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/icons/" "./share/icons/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/ImageMagick-6/" "./share/ImageMagick-6/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/locale/" "./share/locale/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime/" "./share/mime/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime-info/" "./share/mime-info/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/" "./share/pixmaps/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/synfig/" "./share/synfig/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/themes/" "./share/xml/" || return 1 + + # move examples + mv "./share/synfig/examples" "./" || return 1 + + # add portable python + copy "$INSTALL_PACKET_DIR/$PK_PYTHON_DIRNAME" "$LOCAL_INSTALLER_DIR/python" || return 1 + cd "$LOCAL_INSTALLER_DIR" || return 1 + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # create file lists + echo "create file lists" + touch files-install.nsh + touch files-ffmpeg-install.nsh + touch files-examples-install.nsh + touch files-uninstall.nsh + pkfunc_register_file . + echo "created" + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/synfigstudio.nsi" "./" || return 1 + + # create config.nsh (see opentoons.nsi) + cat > config.nsh << EOF +!define PK_NAME "synfigstudio" +!define PK_DIR_NAME "Synfig" +!define PK_NAME_FULL "Synfig Studio (${ARCH}bit)" +!define PK_ARCH "${ARCH}" +!define PK_VERSION "${LOCAL_VERSION2}" +!define PK_VERSION_FULL "${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}" +!define PK_EXECUTABLE "bin\\synfigstudio.exe" +!define PK_ICON "share\\pixmaps\\synfig_icon.ico" +!define PK_DOCUMENT_ICON "share\\pixmaps\\sif_icon.ico" +!define PK_LICENSE ".\\license\\license-synfigstudio-master" +EOF + + # let's go + makensis synfigstudio.nsi || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + mv "$LOCAL_INSTALLER_DIR"/*.exe ./ || return 1 + rm -rf "$LOCAL_INSTALLER_DIR" +} diff --git a/env-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat b/env-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat new file mode 100755 index 0000000..713bb57 --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat @@ -0,0 +1,3 @@ +cd "%~dp0\" +set SYNFIG_USER_SETTINGS=%~dp0\config +start "" "%~dp0\bin\synfigstudio.exe" diff --git a/env-builder-data/build/script/packet/synfigstudio-portable.sh b/env-builder-data/build/script/packet/synfigstudio-portable.sh new file mode 100644 index 0000000..6e6411c --- /dev/null +++ b/env-builder-data/build/script/packet/synfigstudio-portable.sh @@ -0,0 +1,80 @@ +DEPS="synfigstudio-master" + +PK_PYTHON_DIRNAME="python" +PK_PYTHON_ARCHIVE="portable-python-3.2.5.1.zip" +PK_PYTHON_URL="https://download.tuxfamily.org/synfig/packages/sources/$PK_PYTHON_ARCHIVE" + +# download portable python and pass downloaded files through all build phases +pkdownload() { + wget -c --no-check-certificate "$PK_PYTHON_URL" -O "$PK_PYTHON_ARCHIVE" || return 1 +} + +pkunpack() { + unzip "$DOWNLOAD_PACKET_DIR/$PK_PYTHON_ARCHIVE" || return 1 +} + +pkinstall() { + copy "$BUILD_PACKET_DIR" "$INSTALL_PACKET_DIR" || return 1 +} + +pkinstall_release() { + # create temporary dir + rm -rf "$INSTALL_RELEASE_PACKET_DIR/portable" + mkdir -p "$INSTALL_RELEASE_PACKET_DIR/portable" + cd "$INSTALL_RELEASE_PACKET_DIR/portable" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/lib/" "./bin/lib/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/bin/share/" "./bin/share/" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/"*.dll "./bin/" || return 1 + for FILE in animate composite convert ffmpeg ffprobe gdk-pixbuf-csource gdk-pixbuf-pixdata gdk-pixbuf-query-loaders gio-querymodules melt sox synfig synfigstudio; do + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/bin/${FILE}.exe" "./bin/" || return 1 + done + copy "$ENVDEPS_RELEASE_PACKET_DIR/etc/" "./etc/" || return 1 + [ -d "./lib/gdk-pixbuf-2.0/2.10.0/loaders" ] || mkdir -p "./lib/gdk-pixbuf-2.0/2.10.0/loaders" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders/"*.dll "./lib/gdk-pixbuf-2.0/2.10.0/loaders" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" "./lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" || return 1 + [ -d "./lib/gtk-3.0/3.0.0/immodules" ] || mkdir -p "./lib/gtk-3.0/3.0.0/immodules" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/gtk-3.0/3.0.0/immodules/"*.dll "./lib/gtk-3.0/3.0.0/immodules" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/lib/ImageMagick-6.8.7/" "./lib/ImageMagick-6.8.7/" || return 1 + [ -d "./lib/synfig/modules" ] || mkdir -p "./lib/synfig/modules" + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/synfig/modules/"*.dll "./lib/synfig/modules" || return 1 + cp -rf "$ENVDEPS_RELEASE_PACKET_DIR/lib/"*.dll "./lib" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/license/" "./license/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/fontconfig/" "./share/fontconfig/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/glib-2.0/schemas/" "./share/glib-2.0/schemas/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/gtk-3.0/" "./share/gtk-3.0/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/icons/" "./share/icons/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/ImageMagick-6/" "./share/ImageMagick-6/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/locale/" "./share/locale/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime/" "./share/mime/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/mime-info/" "./share/mime-info/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/pixmaps/" "./share/pixmaps/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/synfig/" "./share/synfig/" || return 1 + copy "$ENVDEPS_RELEASE_PACKET_DIR/share/themes/" "./share/xml/" || return 1 + + # move examples + mv "./share/synfig/examples" "./" || return 1 + + # add portable python + copy "$INSTALL_PACKET_DIR/$PK_PYTHON_DIRNAME" "./python" || return 1 + + #config directory + mkdir "./config" + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/synfigstudio.bat" "./" || return 1 + + # let's go + zip -r "../synfigstudio-${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}.zip" ./ || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -rf "portable" +} diff --git a/env-builder-data/build/script/packet/theora-1.1.1.files/configure.patch b/env-builder-data/build/script/packet/theora-1.1.1.files/configure.patch new file mode 100644 index 0000000..14e725b --- /dev/null +++ b/env-builder-data/build/script/packet/theora-1.1.1.files/configure.patch @@ -0,0 +1,4 @@ +8628c8628 +< archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then +--- +> archive_expsym_cmds='if [[ "x`$SED 1q $export_symbols`" = xEXPORTS* ]]; then diff --git a/env-builder-data/build/script/packet/theora-1.1.1.sh b/env-builder-data/build/script/packet/theora-1.1.1.sh new file mode 100644 index 0000000..bbf280c --- /dev/null +++ b/env-builder-data/build/script/packet/theora-1.1.1.sh @@ -0,0 +1,27 @@ +DEPS="ogg-1.3.2" + +PK_DIRNAME="libtheora-1.1.1" +PK_ARCHIVE="$PK_DIRNAME.tar.bz2" +PK_URL="https://downloads.xiph.org/releases/theora/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS="--disable-examples" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if ! check_packet_function $NAME build.cunfigure; then + cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/configure" . + patch configure "$FILES_PACKET_DIR/configure.patch" + CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + ./configure \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.cunfigure + fi + if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \ + make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/tiff-4.0.6.sh b/env-builder-data/build/script/packet/tiff-4.0.6.sh new file mode 100644 index 0000000..f2c2a5d --- /dev/null +++ b/env-builder-data/build/script/packet/tiff-4.0.6.sh @@ -0,0 +1,7 @@ +DEPS="jpeg-9b" + +PK_DIRNAME="tiff-4.0.6" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://download.osgeo.org/libtiff/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/usb-1.0.20.sh b/env-builder-data/build/script/packet/usb-1.0.20.sh new file mode 100644 index 0000000..d17a0f6 --- /dev/null +++ b/env-builder-data/build/script/packet/usb-1.0.20.sh @@ -0,0 +1,22 @@ +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-pkall-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/env-builder-data/build/script/packet/vorbis-1.3.5.sh b/env-builder-data/build/script/packet/vorbis-1.3.5.sh new file mode 100644 index 0000000..287f93b --- /dev/null +++ b/env-builder-data/build/script/packet/vorbis-1.3.5.sh @@ -0,0 +1,7 @@ +DEPS="ogg-1.3.2" + +PK_DIRNAME="libvorbis-1.3.5" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="https://downloads.xiph.org/releases/vorbis/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/wxphoenix-master.sh b/env-builder-data/build/script/packet/wxphoenix-master.sh new file mode 100644 index 0000000..900cca0 --- /dev/null +++ b/env-builder-data/build/script/packet/wxphoenix-master.sh @@ -0,0 +1,48 @@ +# NB: version of doxygen should be EQUAL to 1.8.8 - not newer, not older + +DEPS="python-3.6.0 doxygen-1.8.8 python3requests-master gstreamerpluginsbase-0.10.36 gtk-3.22.12 adwaitaicontheme-3.24.0 gnomethemesstandard-3.22.3" + +PK_DIRNAME="Phoenix" +PK_URL="https://github.com/wxWidgets/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="tags/wxPython-4.0.0a2" + +PK_LICENSE_FILES=" \ + ext/wxWidgets/docs/readme.txt \ + ext/wxWidgets/docs/preamble.txt \ + ext/wxWidgets/docs/licence.txt \ + ext/wxWidgets/docs/licendoc.txt \ + ext/wxWidgets/docs/gpl.txt \ + ext/wxWidgets/docs/lgpl.txt \ + ext/wxWidgets/docs/xserver.txt " + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if [ ! -f wscript.orig ]; then + cp wscript wscript.orig + grep -v _html2.py wscript.orig > wscript + fi + PYTHONHOME=$ENVDEPS_PACKET_DIR \ + DOXYGEN=$ENVDEPS_PACKET_DIR/bin/doxygen \ + python3 build.py 3.6 \ + --gtk3 \ + --release \ + -j8 \ + --extra_setup=--prefix=$INSTALL_PACKET_DIR \ + dox etg sip build \ + || return 1 +} + +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + rm -rf $INSTALL_PACKET_DIR + mkdir -p $INSTALL_PACKET_DIR + PYTHONHOME=$ENVDEPS_PACKET_DIR python3 build.py 3.6 \ + --gtk3 \ + --release \ + -j8 \ + --extra_setup=--prefix=$INSTALL_PACKET_DIR \ + install \ + || return 1 +} diff --git a/env-builder-data/build/script/packet/x264-master.sh b/env-builder-data/build/script/packet/x264-master.sh new file mode 100644 index 0000000..62dc938 --- /dev/null +++ b/env-builder-data/build/script/packet/x264-master.sh @@ -0,0 +1,23 @@ +DEPS_NATIVE="yasm-1.3.0" + +PK_DIRNAME="x264" +PK_URL="http://git.videolan.org/git/$PK_DIRNAME.git" +PK_GIT_CHECKOUT="d32d7bf1c6923a42cbd5ac2fd540ecbb009ba681" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + + if ! check_packet_function $NAME build.cunfigure; then + AS=yasm ./configure \ + $PK_CONFIGURE_OPTIONS_DEFAULT \ + $PK_CONFIGURE_OPTIONS \ + || return 1 + set_done $NAME build.cunfigure + fi + + if ! AS=yasm make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/xcb-1.12.sh b/env-builder-data/build/script/packet/xcb-1.12.sh new file mode 100644 index 0000000..5b9c13f --- /dev/null +++ b/env-builder-data/build/script/packet/xcb-1.12.sh @@ -0,0 +1,7 @@ +DEPS="xcbproto-1.12" + +PK_DIRNAME="libxcb-1.12" +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/env-builder-data/build/script/packet/xcbfull-1.12.sh b/env-builder-data/build/script/packet/xcbfull-1.12.sh new file mode 100644 index 0000000..1982d65 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbfull-1.12.sh @@ -0,0 +1 @@ +DEPS="xcb-1.12 xcbproto-1.12 xcbutil-0.4.0 xcbutilcursor-0.1.3 xcbutilerrors-1.0 xcbutilimage-0.4.0 xcbutilkeysyms-0.4.0 xcbutilrenderutil-0.3.9 xcbutilwm-0.4.1" diff --git a/env-builder-data/build/script/packet/xcbproto-1.12.sh b/env-builder-data/build/script/packet/xcbproto-1.12.sh new file mode 100644 index 0000000..7c8f775 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbproto-1.12.sh @@ -0,0 +1,7 @@ +DEPS="" + +PK_DIRNAME="xcb-proto-1.12" +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/env-builder-data/build/script/packet/xcbutil-0.4.0.sh b/env-builder-data/build/script/packet/xcbutil-0.4.0.sh new file mode 100644 index 0000000..42a8313 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutil-0.4.0.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12" + +PK_DIRNAME="xcb-util-0.4.0" +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/env-builder-data/build/script/packet/xcbutilcursor-0.1.3.sh b/env-builder-data/build/script/packet/xcbutilcursor-0.1.3.sh new file mode 100644 index 0000000..fd6ecda --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilcursor-0.1.3.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0 xcbutilrenderutil-0.3.9 xcbutilimage-0.4.0" + +PK_DIRNAME="xcb-util-cursor-0.1.3" +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/env-builder-data/build/script/packet/xcbutilerrors-1.0.sh b/env-builder-data/build/script/packet/xcbutilerrors-1.0.sh new file mode 100644 index 0000000..12a30fd --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilerrors-1.0.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0" + +PK_DIRNAME="xcb-util-errors-1.0" +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/env-builder-data/build/script/packet/xcbutilimage-0.4.0.sh b/env-builder-data/build/script/packet/xcbutilimage-0.4.0.sh new file mode 100644 index 0000000..7c1a96e --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilimage-0.4.0.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0" + +PK_DIRNAME="xcb-util-image-0.4.0" +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/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.files/COPYING b/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.files/COPYING new file mode 100644 index 0000000..3ab5779 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.files/COPYING @@ -0,0 +1,33 @@ + + File: keysyms/keysyms.c + +/* + * Copyright © 2008 Ian Osgood + * Copyright © 2008 Jamey Sharp + * Copyright © 2008 Josh Triplett + * Copyright © 2008 Ulrich Eckhardt + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ diff --git a/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh b/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh new file mode 100644 index 0000000..cc9e744 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilkeysyms-0.4.0.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0" + +PK_DIRNAME="xcb-util-keysyms-0.4.0" +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/env-builder-data/build/script/packet/xcbutilrenderutil-0.3.9.sh b/env-builder-data/build/script/packet/xcbutilrenderutil-0.3.9.sh new file mode 100644 index 0000000..818741b --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilrenderutil-0.3.9.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0" + +PK_DIRNAME="xcb-util-renderutil-0.3.9" +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/env-builder-data/build/script/packet/xcbutilwm-0.4.1.sh b/env-builder-data/build/script/packet/xcbutilwm-0.4.1.sh new file mode 100644 index 0000000..c281fb7 --- /dev/null +++ b/env-builder-data/build/script/packet/xcbutilwm-0.4.1.sh @@ -0,0 +1,7 @@ +DEPS="xcb-1.12 xcbutil-0.4.0" + +PK_DIRNAME="xcb-util-wm-0.4.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/env-builder-data/build/script/packet/xml-2.9.4.sh b/env-builder-data/build/script/packet/xml-2.9.4.sh new file mode 100644 index 0000000..a7ca6c9 --- /dev/null +++ b/env-builder-data/build/script/packet/xml-2.9.4.sh @@ -0,0 +1,19 @@ +DEPS="" + +PK_DIRNAME="libxml2-2.9.4" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://xmlsoft.org/sources/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + if ! check_packet_function $NAME build.cunfigure; then + ./autogen.sh --host=$HOST --prefix=$INSTALL_PACKET_DIR --without-python || return 1 + set_done $NAME build.cunfigure + fi + + if ! make -j${THREADS}; then + return 1 + fi +} diff --git a/env-builder-data/build/script/packet/xmlpp-2.40.1.sh b/env-builder-data/build/script/packet/xmlpp-2.40.1.sh new file mode 100644 index 0000000..bcef829 --- /dev/null +++ b/env-builder-data/build/script/packet/xmlpp-2.40.1.sh @@ -0,0 +1,7 @@ +DEPS="xml-2.9.4 glibmm-2.50.0" + +PK_DIRNAME="libxml++-2.40.1" +PK_ARCHIVE="$PK_DIRNAME.tar.xz" +PK_URL="https://download.gnome.org/sources/libxml++/2.40/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh diff --git a/env-builder-data/build/script/packet/yasm-1.3.0.sh b/env-builder-data/build/script/packet/yasm-1.3.0.sh new file mode 100644 index 0000000..999b2bd --- /dev/null +++ b/env-builder-data/build/script/packet/yasm-1.3.0.sh @@ -0,0 +1,11 @@ +DEPS="" + +PK_DIRNAME="yasm-1.3.0" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://www.tortall.net/projects/yasm/releases/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +pkinstall_release() { + return 0 +} \ No newline at end of file diff --git a/env-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw b/env-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw new file mode 100644 index 0000000..455b08e --- /dev/null +++ b/env-builder-data/build/script/packet/zlib-1.2.11.files/Makefile.mingw @@ -0,0 +1,152 @@ +# Makefile for zlib, derived from Makefile.dj2. +# Modified for mingw32 by C. Spieler, 6/16/98. +# Updated for zlib 1.2.x by Christian Spieler and Cosmin Truta, Mar-2003. +# Last updated: Mar 2012. +# Tested under Cygwin and MinGW. + +# Copyright (C) 1995-2003 Jean-loup Gailly. +# For conditions of distribution and use, see copyright notice in zlib.h + +# To compile, or to compile and test, type from the top level zlib directory: +# +# make -fwin32/Makefile.gcc; make test testdll -fwin32/Makefile.gcc +# +# To use the asm code, type: +# cp contrib/asm?86/match.S ./match.S +# make LOC=-DASMV OBJA=match.o -fwin32/Makefile.gcc +# +# To install libz.a, zconf.h and zlib.h in the system directories, type: +# +# make install -fwin32/Makefile.gcc +# +# BINARY_PATH, INCLUDE_PATH and LIBRARY_PATH must be set. +# +# To install the shared lib, append SHARED_MODE=1 to the make command : +# +# make install -fwin32/Makefile.gcc SHARED_MODE=1 + +# Note: +# If the platform is *not* MinGW (e.g. it is Cygwin or UWIN), +# the DLL name should be changed from "zlib1.dll". + +STATICLIB = libz.a +SHAREDLIB = zlib1.dll +IMPLIB = libz.dll.a + +# +# Set to 1 if shared object needs to be installed +# +SHARED_MODE=0 + +#LOC = -DASMV +#LOC = -DZLIB_DEBUG -g + +PREFIX = +#CC = $(PREFIX)gcc +CFLAGS = $(LOC) -O3 -Wall + +AS = $(CC) +ASFLAGS = $(LOC) -Wall + +LD = $(CC) +LDFLAGS = $(LOC) + +#AR = $(PREFIX)ar +ARFLAGS = rcs + +#RC = $(PREFIX)windres +RCFLAGS = --define GCC_WINDRES + +#STRIP = $(PREFIX)strip + +CP = cp -fp +# If GNU install is available, replace $(CP) with install. +INSTALL = $(CP) +RM = rm -f + +prefix ?= /usr/local +exec_prefix = $(prefix) + +OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ + gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o +OBJA = + +all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) + +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +.S.o: + $(AS) $(ASFLAGS) -c -o $@ $< + +$(STATICLIB): $(OBJS) $(OBJA) + $(AR) $(ARFLAGS) $@ $(OBJS) $(OBJA) + +$(IMPLIB): $(SHAREDLIB) + +$(SHAREDLIB): win32/zlib.def $(OBJS) $(OBJA) zlibrc.o + $(CC) -shared -Wl,--out-implib,$(IMPLIB) $(LDFLAGS) \ + -o $@ win32/zlib.def $(OBJS) $(OBJA) zlibrc.o + $(STRIP) $@ + +zlibrc.o: win32/zlib1.rc + $(RC) $(RCFLAGS) -o $@ win32/zlib1.rc + +.PHONY: install uninstall clean + +install: zlib.h zconf.h $(SHAREDLIB) $(IMPLIB) + @if test -z "$(DESTDIR)$(INCLUDE_PATH)" -o -z "$(DESTDIR)$(LIBRARY_PATH)" -o -z "$(DESTDIR)$(BINARY_PATH)"; then \ + echo INCLUDE_PATH, LIBRARY_PATH, and BINARY_PATH must be specified; \ + exit 1; \ + fi + -@mkdir -p '$(DESTDIR)$(INCLUDE_PATH)' + -@mkdir -p '$(DESTDIR)$(LIBRARY_PATH)' '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig + -if [ "$(SHARED_MODE)" = "1" ]; then \ + mkdir -p '$(DESTDIR)$(BINARY_PATH)'; \ + $(INSTALL) $(SHAREDLIB) '$(DESTDIR)$(BINARY_PATH)'; \ + $(INSTALL) $(IMPLIB) '$(DESTDIR)$(LIBRARY_PATH)'; \ + fi + -$(INSTALL) zlib.h '$(DESTDIR)$(INCLUDE_PATH)' + -$(INSTALL) zconf.h '$(DESTDIR)$(INCLUDE_PATH)' + -$(INSTALL) $(STATICLIB) '$(DESTDIR)$(LIBRARY_PATH)' + sed \ + -e 's|@prefix@|${prefix}|g' \ + -e 's|@exec_prefix@|${exec_prefix}|g' \ + -e 's|@libdir@|$(LIBRARY_PATH)|g' \ + -e 's|@sharedlibdir@|$(LIBRARY_PATH)|g' \ + -e 's|@includedir@|$(INCLUDE_PATH)|g' \ + -e 's|@VERSION@|'`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' zlib.h`'|g' \ + zlib.pc.in > '$(DESTDIR)$(LIBRARY_PATH)'/pkgconfig/zlib.pc + +uninstall: + -if [ "$(SHARED_MODE)" = "1" ]; then \ + $(RM) '$(DESTDIR)$(BINARY_PATH)'/$(SHAREDLIB); \ + $(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(IMPLIB); \ + fi + -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zlib.h + -$(RM) '$(DESTDIR)$(INCLUDE_PATH)'/zconf.h + -$(RM) '$(DESTDIR)$(LIBRARY_PATH)'/$(STATICLIB) + +clean: + -$(RM) $(STATICLIB) + -$(RM) $(SHAREDLIB) + -$(RM) $(IMPLIB) + -$(RM) *.o + -$(RM) *.exe + -$(RM) foo.gz + +adler32.o: zlib.h zconf.h +compress.o: zlib.h zconf.h +crc32.o: crc32.h zlib.h zconf.h +deflate.o: deflate.h zutil.h zlib.h zconf.h +gzclose.o: zlib.h zconf.h gzguts.h +gzlib.o: zlib.h zconf.h gzguts.h +gzread.o: zlib.h zconf.h gzguts.h +gzwrite.o: zlib.h zconf.h gzguts.h +inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h +inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h +infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h +inftrees.o: zutil.h zlib.h zconf.h inftrees.h +trees.o: deflate.h zutil.h zlib.h zconf.h trees.h +uncompr.o: zlib.h zconf.h +zutil.o: zutil.h zlib.h zconf.h diff --git a/env-builder-data/build/script/packet/zlib-1.2.11.sh b/env-builder-data/build/script/packet/zlib-1.2.11.sh new file mode 100644 index 0000000..ed689f4 --- /dev/null +++ b/env-builder-data/build/script/packet/zlib-1.2.11.sh @@ -0,0 +1,25 @@ +DEPS="" + +PK_DIRNAME="zlib-1.2.11" +PK_ARCHIVE="$PK_DIRNAME.tar.gz" +PK_URL="http://zlib.net/$PK_ARCHIVE" + +PK_CONFIGURE_OPTIONS_DEFAULT="--prefix=$INSTALL_PACKET_DIR --shared" +PK_LICENSE_FILES="README" + +source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh + +if [ "$PLATFORM" = "win" ]; then +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1 + cp "$FILES_PACKET_DIR/Makefile.mingw" . + make -fMakefile.mingw SHARED_MODE=1 -j${THREADS} || return 1 +} +pkinstall() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + BINARY_PATH="$INSTALL_PACKET_DIR/bin" \ + INCLUDE_PATH="$INSTALL_PACKET_DIR/include" \ + LIBRARY_PATH="$INSTALL_PACKET_DIR/lib" \ + make -fMakefile.mingw SHARED_MODE=1 install || return 1 +} +fi diff --git a/env-builder-data/build/script/toolchain/none.sh b/env-builder-data/build/script/toolchain/none.sh new file mode 100755 index 0000000..85efdc0 --- /dev/null +++ b/env-builder-data/build/script/toolchain/none.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +vars_clear "TC_" + +# set vars which used explicitly in function manager.sh:set_environment_vars() + +export TC_HOST="" + +export TC_PATH="$INITIAL_PATH" +export TC_LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$INITIAL_LD_LIBRARY_PATH" +export TC_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$INITIAL_LIBRARY_PATH" + +export TC_CC=`which cc` +export TC_CXX=`which c++` + +export TC_LDFLAGS="$INITIAL_LDFLAGS" +export TC_CFLAGS="$INITIAL_CFLAGS" +export TC_CPPFLAGS="$INITIAL_CPPFLAGS" +export TC_CXXFLAGS="$INITIAL_CXXFLAGS" + +export TC_PKG_CONFIG_PATH="$INITIAL_PKG_CONFIG_PATH:/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib/i586-linux-gnu/pkgconfig:/usr/lib/i686-linux-gnu/pkgconfig" +export TC_PKG_CONFIG_LIBDIR="$INITIAL_PKG_CONFIG_LIBDIR:/usr/lib:/usr/lib64:/usr/lib/x86_64-linux-gnu:/usr/lib/i686-linux-gnu" +export TC_XDG_DATA_DIRS="$INITIAL_XDG_DATA_DIRS" + +export TC_ACLOCAL_PATH="/usr/share/aclocal" +if [ ! -z "$INITIAL_ACLOCAL_PATH" ]; then + export TC_ACLOCAL_PATH="$INITIAL_ACLOCAL_PATH:$TC_ACLOCAL_PATH" +fi + +export TC_CMAKE_INCLUDE_PATH="$INITIAL_CMAKE_INCLUDE_PATH" +export TC_CMAKE_LIBRARY_PATH="$INITIAL_CMAKE_LIBRARY_PATH" + + + diff --git a/env-builder-data/build/script/toolchain/win-32.sh b/env-builder-data/build/script/toolchain/win-32.sh new file mode 100755 index 0000000..89e5ac2 --- /dev/null +++ b/env-builder-data/build/script/toolchain/win-32.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export TC_HOST="i686-w64-mingw32" +source "$TOOLCHAIN_SCRIPT_DIR/win-common.sh" \ No newline at end of file diff --git a/env-builder-data/build/script/toolchain/win-64.sh b/env-builder-data/build/script/toolchain/win-64.sh new file mode 100755 index 0000000..159ea48 --- /dev/null +++ b/env-builder-data/build/script/toolchain/win-64.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export TC_HOST="x86_64-w64-mingw32" +source "$TOOLCHAIN_SCRIPT_DIR/win-common.sh" \ No newline at end of file diff --git a/env-builder-data/build/script/toolchain/win-common.sh b/env-builder-data/build/script/toolchain/win-common.sh new file mode 100755 index 0000000..92d5dad --- /dev/null +++ b/env-builder-data/build/script/toolchain/win-common.sh @@ -0,0 +1,67 @@ +#!/bin/bash + +# TC_HOST should be set before inclusion of this file +# +# Optional c/c++ flags from Fedora MinGW: +# -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 +# +# -Wall -g - don't need +# -02 -fexceptions - should be defined in packet if need +# -pipe - not compatible with windres (used in lzma packet) +# +# -Wp,-D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 +# - may be better, but work fine without it, will added when any problem raised +# +# So no extra options for now +TC_EXTRA_CPP_OPTIONS= + +TC_PREFIX="/usr/local/$TC_HOST/sys-root" +TC_BINPREFIX="$TC_PREFIX/bin/$TC_HOST" + +export TC_PATH="$TC_PREFIX/bin:$INITIAL_PATH" +export TC_LD_LIBRARY_PATH="$TC_PREFIX/lib:/usr/local/lib:/usr/local/lib64:$INITIAL_LD_LIBRARY_PATH" + +export TC_ADDR2LINE=$TC_BINPREFIX-addr2line +export TC_AS=$TC_BINPREFIX-as +export TC_AR=$TC_BINPREFIX-ar +export TC_CC=$TC_BINPREFIX-gcc +export TC_CXXFILT=$TC_BINPREFIX-c++filt +export TC_CXX=$TC_BINPREFIX-c++ +export TC_CPP=$TC_BINPREFIX-cpp +export TC_DLLTOOL=$TC_BINPREFIX-dlltool +export TC_DLLWRAP=$TC_BINPREFIX-dllwrap +export TC_ELFEDIT=$TC_BINPREFIX-elfedit +export TC_FORTRAN=$TC_BINPREFIX-gfortran +export TC_GXX=$TC_BINPREFIX-g++ +export TC_GCC=$TC_BINPREFIX-gcc +export TC_GCOV=$TC_BINPREFIX-gcov +export TC_GCOV_TOOL=$TC_BINPREFIX-gcov-tool +export TC_GFORTRAN=$TC_BINPREFIX-gfortran +export TC_GPROF=$TC_BINPREFIX-gprof +export TC_LD=$TC_BINPREFIX-ld +export TC_LD_BFD=$TC_BINPREFIX-ld.bfd +export TC_NM=$TC_BINPREFIX-nm +export TC_OBJCOPY=$TC_BINPREFIX-objcopy +export TC_OBJDUMP=$TC_BINPREFIX-objdump +export TC_RANLIB=$TC_BINPREFIX-ranlib +export TC_READELF=$TC_BINPREFIX-readelf +export TC_SIZE=$TC_BINPREFIX-size +export TC_STRINGS=$TC_BINPREFIX-strings +export TC_STRIP=$TC_BINPREFIX-strip +export TC_WINDMC=$TC_BINPREFIX-windmc +export TC_RC=$TC_BINPREFIX-windres +export TC_WINDRES=$TC_BINPREFIX-windres + +export TC_LDFLAGS=" -L$TC_PREFIX/lib $INITIAL_LDFLAGS" +export TC_CFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CFLAGS" +export TC_CPPFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CPPFLAGS" +export TC_CXXFLAGS=" $TC_EXTRA_CPP_OPTIONS $INITIAL_CXXFLAGS" +export TC_PKG_CONFIG_PATH="$TC_PREFIX/lib/pkgconfig" +export TC_PKG_CONFIG_LIBDIR="$TC_PREFIX/lib" +export TC_XDG_DATA_DIRS="$INITIAL_XDG_DATA_DIRS" +export TC_CMAKE_INCLUDE_PATH="$TC_PREFIX/include:$INITIAL_CMAKE_INCLUDE_PATH" +export TC_CMAKE_LIBRARY_PATH="$TC_PREFIX/lib:$INITIAL_CMAKE_LIBRARY_PATH" + +unset TC_BINPREFIX +unset TC_PREFIX +unset TC_EXTRA_CPP_OPTIONS diff --git a/env/debian-7-32bit/.gitignore b/env/debian-7-32bit/.gitignore new file mode 100644 index 0000000..7262eb3 --- /dev/null +++ b/env/debian-7-32bit/.gitignore @@ -0,0 +1 @@ +/debian-wheezy-i386.zip diff --git a/env/debian-7-32bit/Buildfile b/env/debian-7-32bit/Buildfile new file mode 100644 index 0000000..0dddebb --- /dev/null +++ b/env/debian-7-32bit/Buildfile @@ -0,0 +1,71 @@ +FROM morevnaproject/debian-i386:wheezy +ARG ALL_PROXY + +# set available apt sources +COPY files/sources.list /etc/apt/sources.list + +# update +RUN apt-get -yq update + +# upgrade +RUN apt-get -yq upgrade + +# update ca-certificates +RUN apt-get -yq purge ca-certificates +RUN apt-get -yq install ca-certificates + +# install tools +RUN apt-get -yq install bash sudo pkg-config g++ make wget bzip2 + +# upgrade gcc +RUN apt-get -yq install libgmp-dev libmpfr-dev libmpc-dev gcc-multilib +COPY files/install-gcc.sh / +RUN setarch i686 /install-gcc.sh + +# install tools +RUN apt-get -yq install csh +RUN apt-get -yq install xsltproc +RUN apt-get -yq install m4 +RUN apt-get -yq install automake +RUN apt-get -yq install intltool +RUN apt-get -yq install libtool +RUN apt-get -yq install git + +# qt deps see: http://doc.qt.io/qt-5/linux-requirements.html +RUN apt-get -yq install libxrender-dev +RUN apt-get -yq install libfontconfig1-dev +RUN apt-get -yq install libfreetype6-dev +RUN apt-get -yq install libxi-dev +RUN apt-get -yq install libxext-dev +RUN apt-get -yq install libx11-dev +RUN apt-get -yq install libx11-xcb-dev +RUN apt-get -yq install libsm-dev +RUN apt-get -yq install libice-dev +RUN apt-get -yq install libglu1-mesa-dev + +# other deps +RUN apt-get -yq install liblzma-dev +RUN apt-get -yq install liblzo2-dev +RUN apt-get -yq install libudev-dev +RUN apt-get -yq install libfuse-dev +RUN apt-get -yq install libdb-dev +RUN apt-get -yq install libasound2-dev +RUN apt-get -yq install libffi-dev +RUN apt-get -yq install libmount-dev +RUN apt-get -yq install libbz2-dev +RUN apt-get -yq install libdbus-1-dev +RUN apt-get -yq install libcroco3-dev +RUN apt-get -yq install flex +RUN apt-get -yq install bison +RUN apt-get -yq install python-dev +RUN apt-get -yq install libxtst-dev +RUN apt-get -yq install xutils-dev +RUN apt-get -yq install libegl1-mesa-dev +RUN apt-get -yq install libdirectfb-dev +RUN apt-get -yq install libxcursor-dev + +# wget cannot check SSL-certificate for some sites +RUN apt-get -yq install curl + +# build dir +RUN mkdir /build diff --git a/env/debian-7-32bit/build-base.sh b/env/debian-7-32bit/build-base.sh new file mode 100755 index 0000000..2cf12da --- /dev/null +++ b/env/debian-7-32bit/build-base.sh @@ -0,0 +1,28 @@ +#!/bin/bash -x + +set -e + +arch=i386 +suite=wheezy +chrooter_image="morevnaproject/debian-$arch:$suite" + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +CONFIG_FILE="$BASE_DIR/config.sh" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +IMAGE_FILE="$SCRIPT_DIR/debian-$suite-$arch.zip" +if [ ! -f "$IMAGE_FILE" ]; then + "$SCRIPT_DIR/build-zip.sh" +fi + + +if [ -f "$IMAGE_FILE" ]; then + chrooter import - $chrooter_image < "$IMAGE_FILE" +else + echo "File $IMAGE_FILE not found" + echo "You may try to create it by command $SCRIPT_DIR/build-zip.sh" +fi diff --git a/env/debian-7-32bit/build-zip.sh b/env/debian-7-32bit/build-zip.sh new file mode 100755 index 0000000..2be9123 --- /dev/null +++ b/env/debian-7-32bit/build-zip.sh @@ -0,0 +1,37 @@ +#!/bin/bash -x + +set -e + +arch=i386 +suite=wheezy +chroot_dir="/var/chroot/$suite" +apt_mirror="http://ftp.de.debian.org/debian/" + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +CONFIG_FILE="$BASE_DIR/config.sh" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +export DEBIAN_FRONTEND=noninteractive +debootstrap --arch $arch $suite $chroot_dir $apt_mirror + +cat < $chroot_dir/etc/apt/sources.list +deb $apt_mirror $suite main +deb $apt_mirror $suite-updates main +deb http://security.debian.org/ $suite/updates main +EOF + +chroot $chroot_dir apt-get update +chroot $chroot_dir apt-get upgrade -y +chroot $chroot_dir apt-get autoclean +chroot $chroot_dir apt-get clean +chroot $chroot_dir apt-get autoremove + +pushd $chroot_dir +zip "$SCRIPT_DIR/debian-$suite-$arch.zip" -qyr0 . || true # zip cannot process some files from /dev +popd + +rm -rf $chroot_dir diff --git a/env/debian-7-32bit/build.sh b/env/debian-7-32bit/build.sh new file mode 100755 index 0000000..2031c50 --- /dev/null +++ b/env/debian-7-32bit/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` + +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$BUILD_DIR/packet" +SCRIPT_BUILD_DIR="$BUILD_DIR/script" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi +mkdir -p $PACKET_BUILD_DIR + +chrooter build -t morevnaproject/build-debian-7-32 $CHROOTER_BUILD_OPTIONS "$SCRIPT_DIR" diff --git a/env/debian-7-32bit/files/install-gcc.sh b/env/debian-7-32bit/files/install-gcc.sh new file mode 100755 index 0000000..c546091 --- /dev/null +++ b/env/debian-7-32bit/files/install-gcc.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +mkdir -p install-gcc +cd install-gcc + +echo && echo "download and unpack" && echo + +GCC_SOURCES_URL="https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz" +wget -c "$GCC_SOURCES_URL" +tar -xf gcc-*.tar.* + +echo && echo "build and install" && echo + +mkdir -p build +cd build +[ -f "../configure.done" ] || (../gcc-*/configure && touch "../configure.done") +make -j`nproc` +make install +(cd /usr/local/bin && ln gcc cc) +cd .. + +echo && echo "add licenses" && echo + +cd gcc-* +PREFIX="/usr/local/share/doc" +TARGET="../copyright" +TARGET_DIRS="gcc g++ gfortran cc c++ fortran" +echo > "$TARGET" +for FILE in README COPYING* MAINTAINERS; do + echo "" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo " File: $FILE" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo "" >> "$TARGET" + cat "$FILE" >> "$TARGET" +done +for TARGET_DIR in $TARGET_DIRS; do + mkdir -p "$PREFIX/$TARGET_DIR" + cp "$TARGET" "$PREFIX/$TARGET_DIR/" +done +cd .. + +cd .. + +echo && echo "clean" && echo + +rm -r install-gcc diff --git a/env/debian-7-32bit/files/sources.list b/env/debian-7-32bit/files/sources.list new file mode 100644 index 0000000..72b2518 --- /dev/null +++ b/env/debian-7-32bit/files/sources.list @@ -0,0 +1,3 @@ +deb http://ftp.de.debian.org/debian/ wheezy main +deb http://ftp.de.debian.org/debian/ wheezy-updates main +deb http://security.debian.org/ wheezy/updates main diff --git a/env/debian-7-32bit/run.sh b/env/debian-7-32bit/run.sh new file mode 100755 index 0000000..f39184e --- /dev/null +++ b/env/debian-7-32bit/run.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +DATA_DIR="$BASE_DIR/env-builder-data" +BUILD_DIR=$DATA_DIR/build +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$BUILD_DIR/packet" +SCRIPT_BUILD_DIR="$BUILD_DIR/script" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi +mkdir -p $PACKET_BUILD_DIR + +export NATIVE_PLATFORM=debian +export NATIVE_ARCH=32 +if [ -z "$PLATFORM" ]; then + export PLATFORM=linux +fi +if [ -z "$ARCH" ]; then + export ARCH=$NATIVE_ARCH +fi +if [ -z "$TASK" ]; then + export TASK=builder-$NATIVE_PLATFORM +fi +export INSTANCE=$TASK-$PLATFORM$ARCH + +chrooter stop "$INSTANCE" || true +chrooter rm "$INSTANCE" || true +chrooter run -it \ + --name "$INSTANCE" \ + --privileged=true \ + $CHROOTER_RUN_OPTIONS \ + -v "$PACKET_BUILD_DIR:/build/packet" \ + -v "$SCRIPT_BUILD_DIR:/build/script" \ + -e NATIVE_PLATFORM="$NATIVE_PLATFORM" \ + -e NATIVE_ARCH="$NATIVE_ARCH" \ + -e PLATFORM="$PLATFORM" \ + -e ARCH="$ARCH" \ + -e THREADS="$THREADS" \ + morevnaproject/build-debian-7-32 \ + setarch i686 /build/script/common/manager.sh "$@" + diff --git a/env/debian-7-64bit/.gitignore b/env/debian-7-64bit/.gitignore new file mode 100644 index 0000000..637b5fe --- /dev/null +++ b/env/debian-7-64bit/.gitignore @@ -0,0 +1 @@ +/debian-wheezy-amd64.zip diff --git a/env/debian-7-64bit/Buildfile b/env/debian-7-64bit/Buildfile new file mode 100644 index 0000000..40e0326 --- /dev/null +++ b/env/debian-7-64bit/Buildfile @@ -0,0 +1,81 @@ +FROM debian:7 +ARG ALL_PROXY + +# set available apt sources +COPY files/sources.list /etc/apt/sources.list + +# update +RUN apt-get -yq update + +# upgrade +RUN apt-get -yq upgrade + +# update ca-certificates +RUN apt-get -yq purge ca-certificates +RUN apt-get -yq install ca-certificates + +# install tools +RUN apt-get -yq install bash sudo pkg-config g++ make wget bzip2 + +# upgrade gcc +RUN apt-get -yq install libgmp-dev libmpfr-dev libmpc-dev gcc-multilib +COPY files/install-gcc.sh / +RUN /install-gcc.sh + +# install mingw +COPY files/install-mingw.sh / +RUN /install-mingw.sh + +# install tools +RUN apt-get -yq install csh +RUN apt-get -yq install xsltproc +RUN apt-get -yq install m4 +RUN apt-get -yq install automake +RUN apt-get -yq install intltool +RUN apt-get -yq install libtool +RUN apt-get -yq install git + +# qt deps see: http://doc.qt.io/qt-5/linux-requirements.html +RUN apt-get -yq install libxrender-dev +RUN apt-get -yq install libfontconfig1-dev +RUN apt-get -yq install libfreetype6-dev +RUN apt-get -yq install libxi-dev +RUN apt-get -yq install libxext-dev +RUN apt-get -yq install libx11-dev +RUN apt-get -yq install libx11-xcb-dev +RUN apt-get -yq install libsm-dev +RUN apt-get -yq install libice-dev +RUN apt-get -yq install libglu1-mesa-dev + +# other deps +RUN apt-get -yq install liblzma-dev +RUN apt-get -yq install liblzo2-dev +RUN apt-get -yq install libudev-dev +RUN apt-get -yq install libfuse-dev +RUN apt-get -yq install libdb-dev +RUN apt-get -yq install libasound2-dev +RUN apt-get -yq install libffi-dev +RUN apt-get -yq install libmount-dev +RUN apt-get -yq install libbz2-dev +RUN apt-get -yq install libdbus-1-dev +RUN apt-get -yq install libcroco3-dev +RUN apt-get -yq install flex +RUN apt-get -yq install bison +RUN apt-get -yq install python-dev +RUN apt-get -yq install libxtst-dev +RUN apt-get -yq install xutils-dev +RUN apt-get -yq install libegl1-mesa-dev +RUN apt-get -yq install libdirectfb-dev +RUN apt-get -yq install libxcursor-dev + +# wget cannot check SSL-certificate for some sites +RUN apt-get -yq install curl + +# for synfigstudio-nsis +RUN apt-get -yq install unzip + +# for portable versions +RUN apt-get -yq install zip + +# build dir +RUN mkdir /build diff --git a/env/debian-7-64bit/build-base.sh b/env/debian-7-64bit/build-base.sh new file mode 100755 index 0000000..2890597 --- /dev/null +++ b/env/debian-7-64bit/build-base.sh @@ -0,0 +1,28 @@ +#!/bin/bash -x + +set -e + +arch=amd64 +suite=wheezy +chrooter_image="debian:7" + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +CONFIG_FILE="$BASE_DIR/config.sh" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +IMAGE_FILE="$SCRIPT_DIR/debian-$suite-$arch.zip" +if [ ! -f "$IMAGE_FILE" ]; then + "$SCRIPT_DIR/build-zip.sh" +fi + + +if [ -f "$IMAGE_FILE" ]; then + chrooter import - $chrooter_image < "$IMAGE_FILE" +else + echo "File $IMAGE_FILE not found" + echo "You may try to create it by command $SCRIPT_DIR/build-zip.sh" +fi diff --git a/env/debian-7-64bit/build-zip.sh b/env/debian-7-64bit/build-zip.sh new file mode 100755 index 0000000..ad5e48e --- /dev/null +++ b/env/debian-7-64bit/build-zip.sh @@ -0,0 +1,37 @@ +#!/bin/bash -x + +set -e + +arch=amd64 +suite=wheezy +chroot_dir="/var/chroot/$suite" +apt_mirror="http://ftp.de.debian.org/debian/" + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +CONFIG_FILE="$BASE_DIR/config.sh" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +export DEBIAN_FRONTEND=noninteractive +debootstrap --arch $arch $suite $chroot_dir $apt_mirror + +cat < $chroot_dir/etc/apt/sources.list +deb $apt_mirror $suite main +deb $apt_mirror $suite-updates main +deb http://security.debian.org/ $suite/updates main +EOF + +chroot $chroot_dir apt-get update +chroot $chroot_dir apt-get upgrade -y +chroot $chroot_dir apt-get autoclean +chroot $chroot_dir apt-get clean +chroot $chroot_dir apt-get autoremove + +pushd $chroot_dir +zip "$SCRIPT_DIR/debian-$suite-$arch.zip" -qyr0 . || true # zip cannot process some files from /dev +popd + +rm -rf $chroot_dir diff --git a/env/debian-7-64bit/build.sh b/env/debian-7-64bit/build.sh new file mode 100755 index 0000000..1bb0672 --- /dev/null +++ b/env/debian-7-64bit/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` + +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$BUILD_DIR/packet" +SCRIPT_BUILD_DIR="$BUILD_DIR/script" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi +export PACKET_BUILD_DIR +mkdir -p $PACKET_BUILD_DIR + +chrooter build -t morevnaproject/build-debian-7-64 $CHROOTER_BUILD_OPTIONS "$SCRIPT_DIR" diff --git a/env/debian-7-64bit/files/install-gcc.sh b/env/debian-7-64bit/files/install-gcc.sh new file mode 100755 index 0000000..c546091 --- /dev/null +++ b/env/debian-7-64bit/files/install-gcc.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +mkdir -p install-gcc +cd install-gcc + +echo && echo "download and unpack" && echo + +GCC_SOURCES_URL="https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.xz" +wget -c "$GCC_SOURCES_URL" +tar -xf gcc-*.tar.* + +echo && echo "build and install" && echo + +mkdir -p build +cd build +[ -f "../configure.done" ] || (../gcc-*/configure && touch "../configure.done") +make -j`nproc` +make install +(cd /usr/local/bin && ln gcc cc) +cd .. + +echo && echo "add licenses" && echo + +cd gcc-* +PREFIX="/usr/local/share/doc" +TARGET="../copyright" +TARGET_DIRS="gcc g++ gfortran cc c++ fortran" +echo > "$TARGET" +for FILE in README COPYING* MAINTAINERS; do + echo "" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo " File: $FILE" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo "" >> "$TARGET" + cat "$FILE" >> "$TARGET" +done +for TARGET_DIR in $TARGET_DIRS; do + mkdir -p "$PREFIX/$TARGET_DIR" + cp "$TARGET" "$PREFIX/$TARGET_DIR/" +done +cd .. + +cd .. + +echo && echo "clean" && echo + +rm -r install-gcc diff --git a/env/debian-7-64bit/files/install-mingw.sh b/env/debian-7-64bit/files/install-mingw.sh new file mode 100755 index 0000000..8fec17f --- /dev/null +++ b/env/debian-7-64bit/files/install-mingw.sh @@ -0,0 +1,331 @@ +#!/bin/bash + +set -e + +VER_BINUTILS="2.29.1" +DIR_BINUTILS="binutils-$VER_BINUTILS" +ARH_BINUTILS="$DIR_BINUTILS.tar.xz" +URL_BINUTILS="https://ftp.gnu.org/gnu/binutils/$ARH_BINUTILS" + +VER_GCC="7.2.0" +DIR_GCC="gcc-$VER_GCC" +ARH_GCC="$DIR_GCC.tar.xz" +URL_GCC="https://ftp.gnu.org/gnu/gcc/gcc-$VER_GCC/$ARH_GCC" + +VER_MINGW="5.0.3" +DIR_MINGW="mingw-w64-v$VER_MINGW" +ARH_MINGW="$DIR_MINGW.tar.bz2" +URL_MINGW="https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/$ARH_MINGW" + +VER_ICONV="1.15" +DIR_ICONV="libiconv-$VER_ICONV" +ARH_ICONV="$DIR_ICONV.tar.gz" +URL_ICONV="https://ftp.gnu.org/pub/gnu/libiconv/$ARH_ICONV" + +VER_GETTEXT="0.19.7" +DIR_GETTEXT="gettext-$VER_GETTEXT" +ARH_GETTEXT="$DIR_GETTEXT.tar.gz" +URL_GETTEXT="https://ftp.gnu.org/pub/gnu/gettext/$ARH_GETTEXT" + + +THREADS=`nproc` +INITIAL_PATH="$PATH" +COMMAND="$0" + + +if [ "$1" == "host_install" ]; then + PATH="/usr/local/$2/sys-root/bin:$PATH" make install + exit +fi + + +download() { + mkdir -p "install-mingw/download" + cd "install-mingw/download" + if [ ! -f "done" ]; then + echo && echo "download" && echo + + wget -c --no-cookies --max-redirect 40 "$URL_BINUTILS" + wget -c --no-cookies --max-redirect 40 "$URL_GCC" + wget -c --no-cookies --max-redirect 40 "$URL_MINGW" + wget -c --no-cookies --max-redirect 40 "$URL_ICONV" + wget -c --no-cookies --max-redirect 40 "$URL_GETTEXT" + + tar -xf "../download/$ARH_BINUTILS" + tar -xf "../download/$ARH_GCC" + tar -xf "../download/$ARH_MINGW" + tar -xf "../download/$ARH_ICONV" + tar -xf "../download/$ARH_GETTEXT" + + touch "done" + fi + cd ../.. +} + +install_binutils() { + local ARCH="$1" + mkdir -p "install-mingw/build/binutils-$ARCH" + cd "install-mingw/build/binutils-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install binutils $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_BINUTILS/configure" \ + --target="$ARCH" \ + --disable-multilib \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS || make + sudo make install + touch "done" + fi + cd ../../.. +} + +install_headers() { + local ARCH="$1" + mkdir -p "install-mingw/build/headers-$ARCH" + cd "install-mingw/build/headers-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install headers $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_MINGW/mingw-w64-headers/configure" \ + --host="$ARCH" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS || make + sudo make install + pushd "/usr/local/$ARCH/sys-root" + sudo ln -s . mingw + popd + touch "done" + fi + cd ../../.. +} + +install_gcc() { + local ARCH="$1" + mkdir -p "install-mingw/build/gcc-$ARCH" + cd "install-mingw/build/gcc-$ARCH" + if [ ! -f "gcc.done" ]; then + echo && echo "install gcc $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_GCC/configure" \ + --target="$ARCH" \ + --disable-multilib \ + --enable-shared \ + --enable-threads=posix \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS all-gcc || make + sudo make install-gcc + touch "gcc.done" + fi + cd ../../.. +} + +install_crt() { + local ARCH="$1" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/crt-$ARCH" + cd "install-mingw/build/crt-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install crt $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_MINGW/mingw-w64-crt/configure" \ + --host="$ARCH" \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +finish_gcc() { + local ARCH="$1" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/gcc-$ARCH" + cd "install-mingw/build/gcc-$ARCH" + if [ ! -f "done" ]; then + echo && echo "finish gcc $ARCH" && echo + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +install_library() { + local ARCH="$1" + local NAME="$2" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/mingw-$NAME-$ARCH" + cd "install-mingw/build/mingw-$NAME-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install library $NAME $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_MINGW/mingw-w64-libraries/$NAME/configure" \ + --host="$ARCH" \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" \ + ${@:3} + touch "configure.done" + fi + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +install_tool() { + local ARCH="$1" + local NAME="$2" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/mingw-$NAME-$ARCH" + cd "install-mingw/build/mingw-$NAME-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install tool $NAME $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_MINGW/mingw-w64-tools/$NAME/configure" \ + --target="$ARCH" \ + --prefix="/usr/local/$ARCH/sys-root" \ + ${@:3} + touch "configure.done" + fi + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +install_iconv() { + local ARCH="$1" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/iconv-$ARCH" + cd "install-mingw/build/iconv-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install iconv $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_ICONV/configure" \ + --host="$ARCH" \ + --enable-static \ + --enable-shared \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +install_gettext() { + local ARCH="$1" + export PATH="/usr/local/$ARCH/sys-root/bin:$INITIAL_PATH" + mkdir -p "install-mingw/build/gettext-$ARCH" + cd "install-mingw/build/gettext-$ARCH" + if [ ! -f "done" ]; then + echo && echo "install gettext $ARCH" && echo + if [ ! -f "configure.done" ]; then + "../../download/$DIR_GETTEXT/configure" \ + --host="$ARCH" \ + --disable-java \ + --disable-native-java \ + --disable-csharp \ + --enable-static \ + --enable-shared \ + --enable-threads=win32 \ + --without-emacs \ + --disable-openmp \ + --with-sysroot="/usr/local/$ARCH/sys-root" \ + --prefix="/usr/local/$ARCH/sys-root" + touch "configure.done" + fi + make -j$THREADS || make + sudo "../../../$0" host_install "$ARCH" + touch "done" + fi + cd ../../.. +} + +install_license() { + local NAME="$1" + local DIR_NAME="$2" + cd "install-mingw/download/$DIR_NAME" + if [ ! -f "../../build/$NAME.license.done" ]; then + echo && echo "install license $NAME" && echo + local TARGET="../../build/$NAME.license" + echo > "$TARGET" + for FILE in README COPYING* MAINTAINERS AUTHORS; do + if [ -f "$FILE" ]; then + echo "" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo " File: $FILE" >> "$TARGET" + echo "-------------------------------------" >> "$TARGET" + echo "" >> "$TARGET" + cat "$FILE" >> "$TARGET" + fi + done + sudo mkdir -p "/usr/local/share/doc/$NAME" + sudo cp "$TARGET" "/usr/local/share/doc/$NAME/copyright" + touch "../../build/$NAME.license.done" + fi + cd ../../.. +} + + +install() { + local ARCH="$1" + install_binutils "$ARCH" + install_headers "$ARCH" + install_gcc "$ARCH" + install_crt "$ARCH" + install_library "$ARCH" "winpthreads" + finish_gcc "$ARCH" + + install_library "$ARCH" "libmangle" + install_library "$ARCH" "winstorecompat" + install_tool "$ARCH" "gendef" + install_tool "$ARCH" "genidl" + install_tool "$ARCH" "genlib" + install_tool "$ARCH" "genpeimg" + install_tool "$ARCH" "widl" + + install_iconv "$ARCH" + install_gettext "$ARCH" + + install_license gcc "$DIR_GCC" + install_license g++ "$DIR_GCC" + install_license gfortran "$DIR_GCC" + install_license cc "$DIR_GCC" + install_license c++ "$DIR_GCC" + install_license gfortran "$DIR_GCC" + + install_license mingw-w64 "$DIR_MINGW" + install_license iconv "$DIR_ICONV" + install_license gettext "$DIR_GETTEXT" +} + +clean() { + echo && echo "clean" && echo + rm -r install-mingw +} + +download +install x86_64-w64-mingw32 +install i686-w64-mingw32 +clean + +echo && echo "done" && echo diff --git a/env/debian-7-64bit/files/sources.list b/env/debian-7-64bit/files/sources.list new file mode 100644 index 0000000..72b2518 --- /dev/null +++ b/env/debian-7-64bit/files/sources.list @@ -0,0 +1,3 @@ +deb http://ftp.de.debian.org/debian/ wheezy main +deb http://ftp.de.debian.org/debian/ wheezy-updates main +deb http://security.debian.org/ wheezy/updates main diff --git a/env/debian-7-64bit/run.sh b/env/debian-7-64bit/run.sh new file mode 100755 index 0000000..c973ddc --- /dev/null +++ b/env/debian-7-64bit/run.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) +BASE_DIR=`dirname "$SCRIPT_DIR"` +BASE_DIR=`dirname "$BASE_DIR"` +DATA_DIR="$BASE_DIR/env-builder-data" +BUILD_DIR=$DATA_DIR/build +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$BUILD_DIR/packet" +SCRIPT_BUILD_DIR="$BUILD_DIR/script" +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi +mkdir -p $PACKET_BUILD_DIR + +export NATIVE_PLATFORM=debian +if [ -z "$PLATFORM" ]; then + export PLATFORM=linux +fi +if [ -z "$ARCH" ]; then + export ARCH=64 +fi +if [ -z "$TASK" ]; then + export TASK=builder-$NATIVE_PLATFORM +fi +export INSTANCE=$TASK-$PLATFORM$ARCH + +chrooter stop "$INSTANCE" || true +chrooter rm "$INSTANCE" || true +chrooter run -it \ + --name "$INSTANCE" \ + --privileged=true \ + $CHROOTER_RUN_OPTIONS \ + -v "$PACKET_BUILD_DIR:/build/packet" \ + -v "$SCRIPT_BUILD_DIR:/build/script" \ + -e NATIVE_PLATFORM="$NATIVE_PLATFORM" \ + -e NATIVE_ARCH="$NATIVE_ARCH" \ + -e PLATFORM="$PLATFORM" \ + -e ARCH="$ARCH" \ + -e THREADS="$THREADS" \ + morevnaproject/build-debian-7-64 \ + /build/script/common/manager.sh "$@" + diff --git a/env/debian-7-64bit/win32.sh b/env/debian-7-64bit/win32.sh new file mode 100755 index 0000000..dba1c03 --- /dev/null +++ b/env/debian-7-64bit/win32.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +PLATFORM=win ARCH=32 $(cd `dirname "$0"`; pwd)/run.sh "$@" diff --git a/env/debian-7-64bit/win64.sh b/env/debian-7-64bit/win64.sh new file mode 100755 index 0000000..2531e3b --- /dev/null +++ b/env/debian-7-64bit/win64.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +PLATFORM=win ARCH=64 $(cd `dirname "$0"`; pwd)/run.sh "$@" diff --git a/env/run.sh b/env/run.sh new file mode 100755 index 0000000..c192ca1 --- /dev/null +++ b/env/run.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +SCRIPT_DIR=$(cd `dirname "$0"`; pwd) + +if [ "$PLATFORM" = "win" ]; then + "$SCRIPT_DIR/debian-7-64bit/run.sh" "$@" +elif [ "$ARCH" = "32" ]; then + "$SCRIPT_DIR/debian-7-32bit/run.sh" "$@" +else + "$SCRIPT_DIR/debian-7-64bit/run.sh" "$@" +fi diff --git a/readme b/readme index c39cce4..f786545 100644 --- a/readme +++ b/readme @@ -1,18 +1,18 @@ -Build docker: +Build env: - cd docker - ./build.sh # sudo? + cd env + ./run.sh # sudo? Example usage: - ./run-native with_deps unpack MEGAPROGRAM-1.0.0 - cd docker-builder - ./run env_release MEGAPROGRAM-1.0.0 # sudo? + ./run-native.sh with_deps unpack MEGAPROGRAM-1.0.0 + cd env + ./run.sh 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 + env-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 index 9de56e8..286e794 100755 --- a/restore_owner.sh +++ b/restore_owner.sh @@ -3,7 +3,7 @@ OLDDIR=`pwd` BASE_DIR=$(cd `dirname "$0"`; pwd) cd "$OLDDIR" -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" CONFIG_FILE="$BASE_DIR/config.sh" PACKET_BUILD_DIR="$DATA_DIR/build/packet" @@ -12,4 +12,4 @@ if [ -f $CONFIG_FILE ]; then fi sudo chown -R `id -un`:`id -gn` $PACKET_BUILD_DIR -sudo chown -R `id -un`:`id -gn` "$BASE_DIR/docker/image" +sudo chown -R `id -un`:`id -gn` "$BASE_DIR/env/image" diff --git a/run-native.sh b/run-native.sh index f1d7cb5..781d529 100755 --- a/run-native.sh +++ b/run-native.sh @@ -3,7 +3,7 @@ OLDDIR=`pwd` BASE_DIR=$(cd `dirname "$0"`; pwd) cd "$OLDDIR" -DATA_DIR="$BASE_DIR/docker-builder-data" +DATA_DIR="$BASE_DIR/env-builder-data" BUILD_DIR=$DATA_DIR/build CONFIG_FILE="$BASE_DIR/config.sh"