Projects
Multimedia
synfig
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 38
View file
_service
Changed
@@ -2,9 +2,18 @@ <service name="obs_scm"> <param name="exclude">*.bat</param> <param name="exclude">*.md</param> - <param name="exclude">*.sh</param> <param name="exclude">*.yml</param> + <param name="exclude">1-setup-linux-native.sh</param> + <param name="exclude">1-setup-nix.sh</param> + <param name="exclude">1-setup-osx-brew.sh</param> + <param name="exclude">1-setup-windows-msys2.sh</param> + <param name="exclude">2-build-cmake.sh</param> + <param name="exclude">2-build-debug.sh</param> + <param name="exclude">2-build-production.sh</param> + <param name="exclude">3-package-osx-dmg.sh</param> <param name="exclude">CMakeLists.txt</param> + <param name="exclude">ChangeLog-generate.sh</param> + <param name="exclude">ChangeLog-split.sh</param> <param name="exclude">ChangeLog.last_id</param> <param name="exclude">ETL/AUTHORS</param> <param name="exclude">ETL/CMakeLists.txt</param> @@ -30,10 +39,8 @@ <param name="exclude">synfig-core/README</param> <param name="exclude">synfig-core/TODO</param> <param name="exclude">synfig-core/build_tools/autorevision.sh</param> - <param name="exclude">synfig-core/config/ltmain.patch</param> - <param name="exclude">synfig-core/config/package</param> - <param name="exclude">synfig-core/doc/hw-gfx-mapping.txt</param> - <param name="exclude">synfig-core/doc/tangentproblem.txt</param> + <param name="exclude">synfig-core/config</param> + <param name="exclude">synfig-core/doc</param> <param name="exclude">synfig-core/macosxbuild.sh</param> <param name="exclude">synfig-core/pkg-info</param> <param name="exclude">synfig-core/po/CMakeLists.txt</param> @@ -237,10 +244,8 @@ <param name="exclude">synfig-studio/brushes/CD_concept/Eraser_prev.png</param> <param name="exclude">synfig-studio/brushes/CD_concept/readme.txt</param> <param name="exclude">synfig-studio/brushes/CMakeLists.txt</param> - <param name="exclude">synfig-studio/build_tools/autorevision.sh</param> - <param name="exclude">synfig-studio/build_tools/sif2ico.sh</param> - <param name="exclude">synfig-studio/config/ltmain.patch</param> - <param name="exclude">synfig-studio/config/package</param> + <param name="exclude">synfig-studio/build_tools</param> + <param name="exclude">synfig-studio/config</param> <param name="exclude">synfig-studio/configure.ac</param> <param name="exclude">synfig-studio/debugcrash</param> <param name="exclude">synfig-studio/docs/bones_gui.txt</param>
View file
_service:obs_scm:synfig-1.5.3.obscpio/ETL/config/pkg-support/devel-resources/install.sh
Added
@@ -0,0 +1,48 @@ +#!/bin/sh +# finish up the installation +# this script should be executed using the sudo command +# this file is copied to ETL-devel.post_install and ETL-devel.post_upgrade +# inside the .pkg bundle +echo "Running post-install script" +umask 022 +sleep 1 + +RESOURCE_DIR=`dirname $0` + +cd RESOURCE_DIR + +echo "Creating ETL-config script" +sleep 1 + -d /usr/local || mkdir /usr/local + -d /usr/local/bin || mkdir /usr/local/bin + -d /usr/local/include || mkdir /usr/local/include + -d /usr/local/lib || mkdir /usr/local/lib + -d /usr/local/sbin || mkdir /usr/local/sbin + +# If we already have a directory called ETL in our include directory, nuke it + -d /usr/local/include/ETL && rm -fr /usr/local/include/ETL + +ln -s /usr/local/include/ETL /Library/Frameworks/ETL.framework/Headers +sed ' +s:@exec_prefix@:/usr/local:g; +s:@prefix@:/usr/local:g; +s:@bindir@:$exec_prefix/bin:g; +s:@libdir@:$exec_prefix/lib:g; +s:@includedir@:$prefix/include/ETL:g; +s:@VERSION@:@_VERSION_@:g; +s:@PACKAGE@:@_PACKAGE_@:g; +s:@LIBS@::g; +' < $RESOURCE_DIR/ETL-config.in > /usr/local/bin/ETL-config +chmod 775 /usr/local/bin/ETL-config + +echo "Done with shell script" +sleep 1 + +exit 0 + + +#echo "Precompiling Headers" +#/usr/bin/cc -precomp ~/Library/Frameworks/SDL.framework/Headers/SDL.h -o ~/Library/Frameworks/SDL.framework/Headers/SDL.p + +# open up the README file +#open ~/"Readme SDL Developer.txt"
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/api.sh
Added
@@ -0,0 +1,88 @@ +#!/bin/sh +# +# Script to generate API documentation and send it to sf.net +# +# Copyright 2009-2010 Konstantin Dmitriev +# Copyright 2010, 2013 Carlos López +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This script has been redesigned to be used in a cron work. +# Adapt the following macros to the proper directories values. + +export HTMLDIR=$HOME/synfig/synfig-repository/api +#export SOURCEDIR=$HOME/synfig/synfig-repository/code/synfig +export SOURCEDIR=$HOME/synfig/synfig-repository/api/tmp/synfig + +set -e + +#check for git and doxygen +if ! which git > /dev/null 2>&1; then + echo "Please install git." + exit +fi +if ! which doxygen > /dev/null 2>&1; then + echo "Please install doxygen." + exit +fi + +#fetching sources +if ! -d $SOURCEDIR ; then + mkdir -p `dirname $SOURCEDIR` + cd `dirname $SOURCEDIR` + git clone --depth 1 git://github.com/synfig/synfig.git `basename $SOURCEDIR` +fi + +mkdir -p $HTMLDIR + +cd $SOURCEDIR +git fetch +git reset --hard +git checkout remotes/origin/master + +#generating api to htmldir +for module in ETL synfig-core synfig-studio; do +cd $module +echo "Generating API for $module..." +case $module in + ETL) + MODULETITLE='Extended Template Library' + ;; + synfig-core) + MODULETITLE='Synfig Core' + ;; + synfig-studio) + MODULETITLE='Synfig Studio' + ;; +esac + VERSION=`cat configure.ac |egrep "AC_INIT\(\$MODULETITLE\,"| sed "s|.*$MODULETITLE\,\||" | sed "s|\,\.*||"` + VERSION=${VERSION#*\'} + VERSION=${VERSION%\'} +cp -f doxygen.cfg.in doxygen.cfg +sed -i "s/@VERSION@/$VERSION/" doxygen.cfg +sed -i "s/@PACKAGE@/$module/" doxygen.cfg +doxygen doxygen.cfg +rm -rf $HTMLDIR/$module +mv doc/html $HTMLDIR/$module +cp $SOURCEDIR/$module/doxygen.cfg $HTMLDIR/$module +cd .. +done + +#index.html +DATE=`date -R` +cat > $HTMLDIR/index.html <<EOF +<html><head><title>ETL, synfig, synfigstudio API docs</title></head> +<body> +<h1>ETL, synfig, synfigstudio API docs</h1> +<ul> +<li><a href="ETL/annotated.html">ETL</a></li> +<li><a href="synfig-core/annotated.html">synfig-core</a></li> +<li><a href="synfig-studio/annotated.html">synfig-studio</a></li> +</ul> +<p>Generated on: $DATE.</p> +</body></html> +EOF +
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/build.sh
Added
@@ -0,0 +1,428 @@ +#!/usr/bin/env bash +# +# SynfigStudio build script +# Copyright (c) 2008-2018 Konstantin Dmitriev +# +# This file is part of Synfig. +# +# Synfig is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# Synfig is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Synfig. If not, see <https://www.gnu.org/licenses/>. + +# = Usage: = +# ./build.sh package mode +# +# where: +# - package is all|etl|core|studio +# - mode is full|clean|configure|make +# +# +# = Examples: = +# +# == Standard mode == +# Configure and (re)build: +# ./build.sh +# Configure and make clean build: +# ./build.sh all full +# Quick rebuild (without configure): +# ./build.sh all make +# Quick rebuild of synfig-core (without configure): +# ./build.sh core make + +set -e + +REPO_DIR=`dirname "$0"` +pushd "${REPO_DIR}/.." > /dev/null +REPO_DIR=`pwd` +popd > /dev/null + +RELEASE=8 +if -z "$PREFIX" ; then +#PREFIX=$HOME/synfig +PREFIX=`pwd`/build +fi + +# detect number of threads for make (this can be overridden by build.conf) +MAKE_THREADS="$(which nproc >/dev/null && nproc || sysctl -n hw.ncpu || getconf _NPROCESSORS_ONLN || echo 2 2>/dev/null)" + +# Allow overriding PREFIX and other settings +if -f "./build.conf" ; then + . "./build.conf" +fi + +if -z $DEBUG ; then + export DEBUG=0 +fi + +if $DEBUG == 1 ; then + DEBUG='--enable-debug --enable-optimization=0' +else + DEBUG='' +fi + +mkdir -p ETL +mkdir -p synfig-core +mkdir -p synfig-studio +mkdir -p "${PREFIX}/bin" + +#========================== VARIABLES ================================== + +if `uname` == "Linux" ; then + export PKG_CONFIG_PATH="${PREFIX}/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/`uname -i`-linux-gnu/pkgconfig/:${PKG_CONFIG_PATH}" +fi + +if `uname` == "MSYS"* ; then + echo "You need to switch to MSYS2 MINGW shell, you are currently using pure MSYS" + exit 1 +fi + +if `uname` == "MINGW"* ; then # MacOS doesn't support `uname -o` flag + PATH="${PREFIX}/lib/ccache/bin:${PATH}" + # copy MLT + MLT_REV=1 # Change this when something is changed inside of if block below + if ! -f "${PREFIX}/mlt-${VERSION_MLT}-${MLT_REV}.done" ; then + VERSION_MLT="7.2.0" + cp -rf /opt/mlt-${VERSION_MLT}/*.dll "${PREFIX}/bin/" + cp -rf /opt/mlt-${VERSION_MLT}/*.exe "${PREFIX}/bin/" + cp -rf /opt/mlt-${VERSION_MLT}/share "${PREFIX}/bin/" + mkdir -p "${PREFIX}/bin/lib/" + cp -rf /opt/mlt-${VERSION_MLT}/lib/mlt "${PREFIX}/bin/lib/" + touch "${PREFIX}/mlt-${VERSION_MLT}-${MLT_REV}.done" + fi + export PKG_CONFIG_PATH="/opt/mlt-${VERSION_MLT}/lib/pkgconfig:${PKG_CONFIG_PATH}" +fi +if `uname` == "Darwin" ; then + # autopoint is not in PATH after install via brew (conflicting with system gettext https://github.com/Homebrew/legacy-homebrew/issues/24070) + # so we can do `brew link --force gettext` or just add it to PATH before configuring which is preferable because we need it only for compiling + export PATH="$(brew --prefix ccache)/libexec:$(brew --prefix gettext)/bin:${PATH}" + # `lib` is required to correctly detect libmng/libjpeg in autotools. Current `configure.ac` script doesn't use + # `pkg-config` to get library flags (libmng provides pkg-config (.pc) file from 2.0.3, but Debian still using 1.0.1). + export LDFLAGS="-L$(brew --prefix)/lib ${LDFLAGS}" + + #export LDFLAGS="-L$(brew --prefix gettext)/lib ${LDFLAGS}" + #export LDFLAGS="-L$(brew --prefix libomp)/lib ${LDFLAGS}" + #export LDFLAGS="-L$(brew --prefix libtool)/lib ${LDFLAGS}" + #export CPPFLAGS="-I$(brew --prefix gettext)/include ${CPPFLAGS}" + #export PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig:${PKG_CONFIG_PATH}" + + # Force use system perl, see https://github.com/synfig/synfig/issues/794 + cat > "${PREFIX}/bin/perl" <<EOF +#!/bin/sh + +/usr/bin/perl "\$@" +EOF + chmod +x "${PREFIX}/bin/perl" + +fi +export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}" +export PATH="${PREFIX}/bin:$PATH" +export LD_LIBRARY_PATH="${PREFIX}/lib:${PREFIX}/lib64:/usr/local/lib:$LD_LIBRARY_PATH" +export LDFLAGS="-Wl,-rpath -Wl,\\\$\$ORIGIN/lib ${LDFLAGS}" +export CFLAGS="-fdiagnostics-color=always $CFLAGS" +export CXXFLAGS="-fdiagnostics-color=always $CXXFLAGS" + +#========================== FUNCTIONS ================================== + +travis_fold_start() +{ + if -n "$TRAVIS" ; then + echo -e "travis_fold:start:$1\03333;1m$2\0330m" + fi +} + +travis_fold_end() +{ + if -n "$TRAVIS" ; then + echo -e "\ntravis_fold:end:$1\r" + fi +} + +ccache_show_stats() +{ + if ( which ccache > /dev/null ); then + ccache -s + fi +} + +#============================== ETL ==================================== + +etl_clean() { +cd ETL +echo "Cleaning source tree..." +make clean || true +cd .. +} + +etl_configure() +{ +cd ETL +echo "Going to configure..." +pushd "${REPO_DIR}/ETL/" >/dev/null +/bin/bash "${REPO_DIR}/ETL/bootstrap.sh" +popd +/bin/bash "${REPO_DIR}/ETL/configure" --prefix="${PREFIX}" --includedir="${PREFIX}/include" $DEBUG +cd .. +} + +etl_make() +{ +cd ETL +make -j$MAKE_THREADS +sed -i.bak "s|^Cflags: -I\\\${includedir}|Cflags: -I$REPO_DIR\/ETL -I\\\${includedir}|" ETL.pc +make install +cd .. + +ccache_show_stats + +} + +etl_build() +{ +etl_configure +etl_make +} + +etl_full() +{ +etl_clean +etl_configure +etl_make +}
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/fedora-crosscompile-linux.sh
Added
@@ -0,0 +1,2356 @@ +#!/bin/bash + +# TODO: Bundle ALL dependent lib (libpng issue) +# TODO: FFmpeg/libx264 - stick to particular version +# TODO: FFmpeg/libx264/mlt - cache sources +# TODO: Debug builds for dependent libraries +# TODO: Use BUILDROOT_LIBRARY_SET_ID + +set -e + +export SCRIPTPATH=$(cd `dirname "$0"`; pwd) + +RELEASE=10 + +BUILDROOT_VERSION=5 +BUILDROOT_LIBRARY_SET_ID=2 + +if -z $ARCH ; then + if `uname -i` == "x86_64" ; then + export ARCH="64" + else + export ARCH="32" + fi +fi + +if -z $THREADS ; then + export THREADS=2 +fi + +if -z $DEBUG ; then + export DEBUG=0 +fi + +if $DEBUG == 1 ; then + echo + echo "Debug mode: enabled" + echo + DEBUG_OPT='--enable-debug --enable-optimization=0' + DEBUG_OPT2='--enable-debug=yes' + export SUFFIX="-debug" +else + DEBUG_OPT='--enable-optimization=3' +fi + +if ! -z $SUBSET ; then + export SUFFIX="-$SUBSET" +fi + +export WORKSPACE=$HOME/synfig-buildroot +export SYSPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/sys +export PREFIX=$WORKSPACE/linux$ARCH$SUFFIX/build +#export DEPSPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/build +export DEPSPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/sys-deps +export TOOLSPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/tools +export SRCPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/source +export DISTPREFIX=$WORKSPACE/linux$ARCH$SUFFIX/dist +export CACHEDIR=$WORKSPACE/cache + + -e ${SRCPREFIX} || mkdir -p ${SRCPREFIX} + -e ${WORKSPACE}/cache || mkdir -p ${WORKSPACE}/cache + +export EMAIL='root@synfig.org' +SOURCES_URL="rsync://download.tuxfamily.org/pub/synfig/packages/sources/base" + +# Bundled libraries +LIBJPEG_VERSION=1.3.1 +LIBSIGCPP_VERSION=2.2.10 +GLEW_VERSION=1.5.1 +CAIROMM_VERSION=1.10.0 +PANGOMM_VERSION=2.34.0 +GTKMM_VERSION=3.14.0 +FTGL_VERSION=2.1.2 +FREEGLUT_VERSION=2.4.0 +GTKGLEXT_VERSION=1.2.0 +GTKGLEXTMM_VERSION=1.2.0 +LIBXMLPP_VERSION=2.22.0 +GLIBMM_VERSION=2.42.0 +CAIRO_VERSION=1.12.18 +ATK_VERSION=2.14.0 +AT_SPI2_VERSION=2.10.2 +AT_SPI2_ATK_VERSION=2.10.2 +GLIB_VERSION=2.42.1 +GDK_PIXBUF_VERSION=2.31.3 +GTK_VERSION=3.14.14 +PIXMAN_VERSION=0.30.0 # required by CAIRO 1.12.0 +HARFBUZZ_VERSION=0.9.24 +PANGO_VERSION=1.36.8 +ATKMM_VERSION=2.22.7 +IMAGEMAGICK_VERSION=6.9.1 + +# System libraries +FONTCONFIG_VERSION=2.11.0 +JACK_VERSION=0.124.1 + +if $ARCH == "32" ; then + export SYS_ARCH=i386 + export RPM_ARCH=i386 + export GCC_ARCH=i486 + export LIBDIR="lib" + export HOST=i686-pc-linux-gnu + if ( cat /etc/issue | egrep "Ubuntu" ); then + export UBUNTU_LIBDIR="/lib/i386-linux-gnu/" + fi +else + export SYS_ARCH=amd64 + export RPM_ARCH=x86_64 + export GCC_ARCH=x86_64 + export LIBDIR="lib64" + export HOST=x86_64-pc-linux-gnu + if ( cat /etc/issue | egrep "Ubuntu" ); then + export UBUNTU_LIBDIR="/lib/x86_64-linux-gnu/" + fi +fi + +#if `uname -i` == "x86_64" ; then +#export NATIVE_LIBDIR="lib64" + + +pushd "${SCRIPTPATH}" > /dev/null +export VERSION=`cat ${SCRIPTPATH}/../synfig-core/configure.ac |egrep "AC_INIT\(\Synfig Core\,"| sed "s|.*Core\,\||" | sed "s|\,\.*||"` +export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'` +if -z $BREED ; then + BREED="`git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' '//`" + if ( echo $BREED | egrep origin/master > /dev/null ); then + #give a priority to master branch + BREED='master' + else + BREED=`echo $BREED | cut -d ' ' -f 1` + BREED=${BREED##*/} + fi + BREED=${BREED%_master} +fi +if ${VERSION##*-RC} != ${VERSION} ; then + #if $BREED == 'master' ; then + BREED=rc${VERSION##*-RC} + #else + # BREED=rc${VERSION##*-RC}.$BREED + #fi + VERSION=${VERSION%%-*} +fi + $DEBUG == 1 && BREED=${BREED}.dbg +BREED=`echo $BREED | tr _ . | tr - .` # No "-" or "_" characters, because RPM and DEB complain + +popd > /dev/null + +set_environment() +{ + #export LD_LIBRARY_PATH=${DEPSPREFIX}/lib:/${LIBDIR}:${SYSPREFIX}/${LIBDIR}:${SYSPREFIX}/usr/${LIBDIR} + #export LD_LIBRARY_PATH=${SYSPREFIX}/lib-native:${PREFIX}/lib:${DEPSPREFIX}/lib:${SYSPREFIX}/${LIBDIR}:${SYSPREFIX}/usr/${LIBDIR} + if ( cat /etc/issue | egrep "Ubuntu" ); then + export LD_PRELOAD=${UBUNTU_LIBDIR}/libc.so.6:${UBUNTU_LIBDIR}/libpthread.so.0:${UBUNTU_LIBDIR}/libdl.so.2 + else + export LD_PRELOAD=/${LIBDIR}/libc.so.6:/${LIBDIR}/libpthread.so.0:/${LIBDIR}/libdl.so.2 + fi + export LD_LIBRARY_PATH=${PREFIX}/lib:${DEPSPREFIX}/lib:${SYSPREFIX}/${LIBDIR}:${SYSPREFIX}/usr/lib:${SYSPREFIX}/lib/${RPM_ARCH}-linux-gnu:${SYSPREFIX}/usr/lib/${RPM_ARCH}-linux-gnu + + export PATH=${DEPSPREFIX}/bin:${PREFIX}/bin:${SYSPREFIX}/bin:${SYSPREFIX}/usr/bin + export LDFLAGS="-Wl,-rpath -Wl,\\\$\$ORIGIN/lib -L${PREFIX}/lib -L${DEPSPREFIX}/lib -L${SYSPREFIX}/${LIBDIR} -L${SYSPREFIX}/usr/${LIBDIR} -L${SYSPREFIX}/lib/${RPM_ARCH}-linux-gnu/ -L${SYSPREFIX}/usr/lib/${RPM_ARCH}-linux-gnu/" + if $DEBUG == 1 ; then + export CFLAGS="-O0" + export CXXFLAGS="-O0" + else + export CFLAGS="-O3" + export CXXFLAGS="-O3" + fi + #export CFLAGS=" -nostdinc -I${SYSPREFIX}/usr/lib/gcc/${RPM_ARCH}-linux-gnu/4.3.2/include -I${SYSPREFIX}/usr/lib/gcc/${RPM_ARCH}-linux-gnu/4.3.2/include-fixed -I${PREFIX}/include -I${DEPSPREFIX}/include -I${SYSPREFIX}/usr/include" + GCC_VER=4.7 + export CPPFLAGS="-I${SYSPREFIX}/usr/include -I${DEPSPREFIX}/include -I${PREFIX}/include -I${SYSPREFIX}/usr/include/${RPM_ARCH}-linux-gnu" + #export CXXFLAGS="-I${SYSPREFIX}/usr/include/linux/ -I${SYSPREFIX}/usr/include/c++/${GCC_VER}/ -I${SYSPREFIX}/usr/include/c++/${GCC_VER}/${GCC_ARCH}-linux-gnu/ -I${SYSPREFIX}/usr/lib/gcc/${GCC_ARCH}-linux-gnu/${GCC_VER}/include/ -I${SYSPREFIX}/usr/lib/gcc/${GCC_ARCH}-linux-gnu/${GCC_VER}/include-fixed/ -I${SYSPREFIX}/usr/${GCC_ARCH}-linux-gnu/include" + #export CXXFLAGS="-I${SYSPREFIX}/usr/local/include/x86_64-linux-gnu -I${SYSPREFIX}/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include -I${SYSPREFIX}/usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed -I${SYSPREFIX}/usr/lib/gcc/../../x86_64-linux-gnu/include -I${SYSPREFIX}/usr/include/x86_64-linux-gnu" + #export CXXFLAGS=" -nostdinc -I${SYSPREFIX}/usr/lib/gcc/../../include/c++/4.3 -I${SYSPREFIX}/usr/lib/gcc/../../include/c++/4.3/x86_64-linux-gnu -I${SYSPREFIX}/usr/lib/gcc/../../include/c++/4.3/backward -I${SYSPREFIX}/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include -I${SYSPREFIX}/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include-fixed -I${PREFIX}/include -I${DEPSPREFIX}/include -I${SYSPREFIX}/usr/include" + export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:${DEPSPREFIX}/lib/pkgconfig:${SYSPREFIX}/usr/lib/pkgconfig:${SYSPREFIX}/usr/lib/${RPM_ARCH}-linux-gnu/pkgconfig:${SYSPREFIX}/usr/share/pkgconfig + PERL_VERSION=`perl -v | grep "This is perl" | sed "s|This is perl .*(v||g" | sed "s|).*||"` + export NM=nm + export PERL5LIB="${SYSPREFIX}/etc/perl:${SYSPREFIX}/usr/share/automake-1.11:${DEPSPREFIX}/lib/perl/${PERL_VERSION}:${DEPSPREFIX}/share/perl/${PERL_VERSION}:${SYSPREFIX}/usr/lib/perl5:${SYSPREFIX}/usr/share/perl5:${SYSPREFIX}/usr/lib/perl/${PERL_VERSION}:${SYSPREFIX}/usr/share/perl/${PERL_VERSION}:${DEPSPREFIX}/lib/site_perl" + if $ARCH == "32" ; then + export CFLAGS="$CFLAGS -m32" + export CXXFLAGS="$CXXFLAGS -m32" + export LDFLAGS="$LDFLAGS -m32" + fi +} + +run_native() +{ + LD_PRELOAD="" + LD_LIBRARY_PATH="" + PATH="/usr/local/bin/:/usr/sbin:/usr/bin:/bin" + LDFLAGS="" + CFLAGS="" + CXXFLAGS="" + PKG_CONFIG_PATH="" + PERL5LIB="" + if $ARCH == "32" ; then + export CFLAGS="$CFLAGS -m32" + export CXXFLAGS="$CXXFLAGS -m32" + export LDFLAGS="$LDFLAGS -m32" + fi + "$@" + set_environment
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/fedora-crosscompile-win.sh
Added
@@ -0,0 +1,745 @@ +#!/bin/bash + +set -e + +export SCRIPTPATH=$(cd `dirname "$0"`; pwd) + +if -z $ARCH ; then + export ARCH="64" +fi + +if -z $THREADS ; then + export THREADS=4 +fi + +export TOOLCHAIN="mingw$ARCH" # mingw32 | mingw64 + +if $TOOLCHAIN == "mingw32" ; then + export TOOLCHAIN_HOST="i686-w64-mingw32" + export EXT_ARCH=i386 +elif $TOOLCHAIN == "mingw64" ; then + export TOOLCHAIN_HOST="x86_64-w64-mingw32" + export EXT_ARCH=x86_64 +else + echo "Error: Unknown toolchain" + exit 1 +fi + +export WORKSPACE=${SCRIPTPATH}/../../../build +export PREFIX=$WORKSPACE/win$ARCH/build +export DISTPREFIX=$WORKSPACE/win$ARCH/dist +export SRCPREFIX=$WORKSPACE/win$ARCH/source +export CACHEDIR=$WORKSPACE/cache +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:/usr/${TOOLCHAIN_HOST}/sys-root/mingw/lib/pkgconfig/ +export PKG_CONFIG_LIBDIR=${PREFIX}/lib/pkgconfig +export PATH=/usr/${TOOLCHAIN_HOST}/bin:/usr/${TOOLCHAIN_HOST}/sys-root/mingw/bin:${PREFIX}/bin:$PATH +export LD_LIBRARY_PATH=${PREFIX}/lib:/usr/${TOOLCHAIN_HOST}/sys-root/mingw/lib + +export CC=/usr/bin/${TOOLCHAIN_HOST}-gcc +export CXX=/usr/bin/${TOOLCHAIN_HOST}-g++ +export CPPFLAGS=" -I/usr/${TOOLCHAIN_HOST}/sys-root/mingw/include -I${PREFIX}/include" +export LDFLAGS=" -L/usr/${TOOLCHAIN_HOST}/sys-root/mingw/lib -L${PREFIX}/lib " + + +if -z $DEBUG ; then + export DEBUG=0 +fi + +if $DEBUG == 1 ; then + echo + echo "Debug mode: enabled" + echo + DEBUG='--enable-debug --enable-optimization=0' +else + DEBUG='' +fi + + -e $SRCPREFIX || mkdir -p $SRCPREFIX + -e $CACHEDIR || mkdir -p $CACHEDIR + +export VERSION=`cat ${SCRIPTPATH}/../synfig-core/configure.ac |egrep "AC_INIT\(\Synfig Core\,"| sed "s|.*Core\,\||" | sed "s|\,\.*||"` +pushd "${SCRIPTPATH}" > /dev/null +export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'` +popd > /dev/null + +#mkdir -p ${WORKSPACE}/win$ARCH/bin || true +#cat > ${WORKSPACE}/win$ARCH/bin/synfig <<EOF +##!/bin/sh +# +#wine ${PREFIX}/bin/synfig.exe \$@ +#EOF +#chmod +x ${WORKSPACE}/win$ARCH/bin/synfig +#export PATH=${WORKSPACE}/win$ARCH/bin:$PATH + +mkprep() +{ + +if ! -z $DEPS ; then + DNF_BINARY=yum + if -f /usr/bin/dnf ; then + DNF_BINARY=dnf + fi + sudo $DNF_BINARY install -y \ + wget xz make which unzip \ + libXdmcp \ + intltool \ + gcc-c++ \ + autoconf \ + automake \ + libtool \ + libtool-ltdl-devel \ + ${TOOLCHAIN}-adwaita-icon-theme \ + ${TOOLCHAIN}-hicolor-icon-theme \ + ${TOOLCHAIN}-gcc-c++ \ + ${TOOLCHAIN}-cpp \ + ${TOOLCHAIN}-libxml++ \ + ${TOOLCHAIN}-cairo \ + ${TOOLCHAIN}-pango \ + ${TOOLCHAIN}-libjpeg-turbo \ + ${TOOLCHAIN}-gtkmm30 \ + ${TOOLCHAIN}-glibmm24 \ + ${TOOLCHAIN}-libltdl \ + ${TOOLCHAIN}-SDL \ + ${TOOLCHAIN}-fftw \ + mingw32-nsis \ + p7zip \ + ImageMagick \ + + #which synfig || sudo $DNF_BINARY install -y synfig + + +# Mesa deps (not used) +# scons \ +# python-mako \ + +fi + +# copy libs + -d ${PREFIX}/bin || mkdir -p ${PREFIX}/bin +for file in \ + av*.dll \ + ffmpeg.exe \ + iconv.dll \ + libatk-\*.dll \ + libatkmm-1.6-1.dll \ + libbz2\*.dll \ + libcairo\*.dll \ + libdl.dll \ + libepoxy\*.dll \ + libexpat\*.dll \ + libffi\*.dll \ + libfftw\*.dll \ + libfontconfig\*.dll \ + libfreetype\*.dll \ + libgcc_s_\*.dll \ + libgdk\*.dll \ + libgettext\*.dll \ + libgio\*.dll \ + libglib\*.dll \ + libgmodule\*.dll \ + libgobject\*.dll \ + libgomp*.dll \ + libgthread\*.dll \ + libgtk\*.dll \ + libharfbuzz\*.dll \ + libiconv\*.dll \ + libintl\*.dll \ + libjasper\*.dll \ + libjpeg\*.dll \ + libltdl*.dll \ + liblzma\*.dll \ + libMagick*.dll \ + libmlt*.dll \ + libogg*.dll \ + libpango\*.dll \ + libpcre\*.dll \ + libpixman\*.dll \ + libpng\*.dll \ + libsamplerate*.dll \ + libsigc\*.dll \ + libsox*.dll \ + libstdc++\*.dll \ + libsynfig\*.dll \ + libtiff\*.dll \ + libturbojpeg.dll \ + libvorbis*.dll \ + libwinpthread*.dll \ + libxml2\*.dll \ + libxml++\*.dll \ + libz\*.dll \ + postproc*.dll \ + pthread\*.dll \ + SDL.dll \ + swscale*.dll \ + swresample*.dll \ + zlib\*.dll \ + convert.exe \ + pango-querymodules.exe \ + synfig.exe \ + synfigstudio.exe \ +# this extra line is required! +do + cp /usr/${TOOLCHAIN_HOST}/sys-root/mingw/bin/$file ${PREFIX}/bin || true +done + + -d ${PREFIX}/etc || mkdir -p ${PREFIX}/etc +for file in \ + fonts \ + gtk-3.0 \ + pango \ +# this extra line is required! +do + cp -rf /usr/${TOOLCHAIN_HOST}/sys-root/mingw/etc/$file ${PREFIX}/etc || true +done + + -d ${PREFIX}/lib || mkdir -p ${PREFIX}/lib +for file in \ + gtk-3.0 \ + gdk-pixbuf-2.0 \ + pango \
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/lottie_test.sh
Added
@@ -0,0 +1,64 @@ +#!/bin/bash +# Don't abort on Error +# set -e + +WORKDIR=`dirname "$0"` +pushd "${WORKDIR}/.." > /dev/null +WORKDIR=`pwd` +popd > /dev/null + +# Python program to run lottie +LOTTIE="${WORKDIR}/synfig-studio/plugins/lottie-exporter/lottie-exporter.py" + +# Clone the tests directory +git clone https://gitlab.com/synfig/synfig-tests.git +test_files="${WORKDIR}/synfig-tests/export/lottie/*.sif" + +# Color escape codes in bash +GREEN='\0330;32m' +RED='\0330;31m' +YELLOW='\0330;33m' +no_color='\0330m' + +Error_count=0 +Support_soon=0 + +for filename in $test_files; +do + pass=1 # 0 -> File is failing to export unexpectedly, 1 -> File is exporting, 2 -> File is allowed to fail + python3 $LOTTIE $filename "${filename%.sif}.json" || { # This line catches errors in python script + + # Check if the current file is allowed to failATF + if `basename $filename` == *"ATF"* ; then + ((Support_soon=Support_soon+1)) + pass=2 + fi + + # If it is not allowed to fail, then increase the number of errored files + if $pass -eq 1 + then + ((Error_count=Error_count+1)) + ((pass=0)) + fi + } + + # To display whether a file ran successfully or not + if $pass -eq 1 + then + echo -e "${GREEN}OK${no_color} $filename"; + elif $pass -eq 2 + then + echo -e "${YELLOW}SUPPORT SOON${no_color} $filename"; + else + echo -e "${RED}FAIL${no_color} $filename"; + fi +done +echo -e "\nFiles failed to export: $Error_count" +echo -e "Files failed, but the failure is expected: $Support_soon\n" + +if $Error_count -gt 0 + then + exit 1 # Job should fail + else + exit 0 # Job should pass +fi
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/msys2/build_mlt.sh
Added
@@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# ------------------------------------------------------------------------------- +# This script builds mlt++ on MSYS2 required by synfig-core +# ------------------------------------------------------------------------------- +set -e # exit on error + +VERSION_MLT="7.2.0" +# CMake cannot invoke `ccache` binaries in MSYS2 because they are just +# bash scripts so it ends up with "invalid Win32 application" error +# PATH="${MINGW_PREFIX}/lib/ccache/bin:${PATH}" +MLT_PATH="/opt/mlt-${VERSION_MLT}" + +if ! -f ${MLT_PATH}/done || ! -f ${MLT_PATH}/lib/mlt/libmltavformat.dll ; then + +echo " ======================= Compiling MLT++ ======================= " + +mkdir -p ${MLT_PATH} + +pushd /tmp +wget "https://github.com/mltframework/mlt/releases/download/v${VERSION_MLT}/mlt-${VERSION_MLT}.tar.gz" +tar xzf ./mlt-${VERSION_MLT}.tar.gz + +pushd mlt-${VERSION_MLT}/ +FIXED_MLT_PATH=$(cygpath -m ${MLT_PATH}) +echo "Install path: ${MLT_PATH}" +echo "Fixed MLT Path: ${FIXED_MLT_PATH}" +mkdir -p build && pushd build +cmake -G"Ninja" -DMOD_GDK=OFF -DMOD_QT=OFF -DMOD_KDENLIVE=OFF -DCMAKE_INSTALL_PREFIX=${FIXED_MLT_PATH} .. +cmake --build . +cmake --install . +popd +popd + +touch ${MLT_PATH}/done + +popd +fi
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/osx/app-template/Contents/MacOS/SynfigStudio.sh
Added
@@ -0,0 +1,43 @@ +#!/bin/sh + +set -e + +DIR=`dirname "$0"` +cd "$DIR/../Resources" +CWD=`pwd` + +#export DYLD_LIBRARY_PATH="$CWD/lib:$CWD/synfig/lib:$CWD/Library/Frameworks/Python.framework/Versions/3.3/:/Volumes/data/SynfigStudio.app/Contents/Resources/Library/Frameworks/Python.framework/Versions/3.3/Resources/Python.app/Contents/MacOS/:$DYLD_LIBRARY_PATH" + +export GTK_EXE_PREFIX="$CWD" +export GTK_DATA_PREFIX="$CWD/share" + +export GSETTINGS_SCHEMA_DIR="$CWD/share/glib-2.0/schemas/" +export FONTCONFIG_PATH="$CWD/etc/fonts" +export MLT_DATA="$CWD/share/mlt/" +export MLT_REPOSITORY="$CWD/lib/mlt/" + +export PATH="$CWD/bin:$CWD/synfig-production/bin:$PATH" +export SYNFIG_ROOT="$CWD/" +export SYNFIG_MODULE_LIST="$CWD/etc/synfig_modules.cfg" + +export PYTHON_VERSION=`ls -1 $CWD/Frameworks/Python.framework/Versions/ | head -n 1` +export PYTHONHOME="$CWD/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/" + +export MAGICK_DIR=`ls -1 -d ${CWD}/lib/ImageMagick* | head -n 1` +export MAGICK_DIR=`basename $MAGICK_DIR` +export MAGICK_DIR_CONFIG=`ls -1 -d ${CWD}/lib/${MAGICK_DIR}/config-* | head -n 1` +export MAGICK_DIR_CONFIG=`basename $MAGICK_DIR_CONFIG` +export MAGICK_DIR_MODULES=`ls -1 -d ${CWD}/lib/${MAGICK_DIR}/modules-* | head -n 1` +export MAGICK_DIR_MODULES=`basename $MAGICK_DIR_MODULES` +export MAGICK_CONFIGURE_PATH="${CWD}/lib/${MAGICK_DIR}/${MAGICK_DIR_CONFIG}/" +export MAGICK_CODER_MODULE_PATH="${CWD}/lib/${MAGICK_DIR}/${MAGICK_DIR_MODULES}/coders/" +export MAGICK_CODER_FILTER_PATH="${CWD}/lib/${MAGICK_DIR}/${MAGICK_DIR_MODULES}/filters/" + +export XDG_DATA_DIRS="$CWD/share/:$XDG_DATA_DIRS" +export GDK_PIXBUF_MODULEDIR="$CWD/lib/gdk-pixbuf-2.0/2.10.0/loaders/" +export GDK_PIXBUF_MODULE_FILE=$HOME/.synfig-gdk-loaders + ! -f $HOME/.synfig-gdk-loaders || rm -f $HOME/.synfig-gdk-loaders +"$CWD/bin/gdk-pixbuf-query-loaders" > "$GDK_PIXBUF_MODULE_FILE" + +cd "$CWD" +exec "$SYNFIG_ROOT/bin/synfigstudio" "$@"
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/osx/relocate-binary.sh
Added
@@ -0,0 +1,149 @@ +#!/bin/bash + +set -e +#set -x + + -z "$2" && echo "usage: \"$0\" <file> <source-prefix> <destination-dir>" && echo "This utility relocates binary <file> from <source-prefix> to <destonation-dir> together with all dependencies and adds rpath support." && exit 1 + +readlink_f() { + TARGET_FILE=$1 + + cd `dirname $TARGET_FILE` + TARGET_FILE=`basename $TARGET_FILE` + + # Iterate down a (possible) chain of symlinks + while -L "$TARGET_FILE" + do + TARGET_FILE=`readlink $TARGET_FILE` + cd `dirname $TARGET_FILE` + TARGET_FILE=`basename $TARGET_FILE` + done + + # Compute the canonicalized name by finding the physical path + # for the directory we're in and appending the target file. + PHYS_DIR=`pwd -P` + RESULT=$PHYS_DIR/$TARGET_FILE + echo $RESULT +} + +remove_prefix() { + local INPUT="$1" + local OUTPUT="" + if "$INPUT" == /usr/local/Cellar/* ; then + TMP="${INPUT#*/}" # usr/local/Cellar/pkgname/pkgversion/path + TMP="${TMP#*/}" # local/Cellar/pkgname/pkgversion/path + TMP="${TMP#*/}" # Cellar/pkgname/pkgversion/path + TMP="${TMP#*/}" # pkgname/pkgversion/path + TMP="${TMP#*/}" # pkgversion/path + TMP="${TMP#*/}" # path + OUTPUT="${TMP}" + elif "$INPUT" == /usr/local/opt/* ; then + TMP="${INPUT#*/}" # usr/local/opt/pkgname/path + TMP="${TMP#*/}" # local/opt/pkgname/path + TMP="${TMP#*/}" # opt/pkgname/path + TMP="${TMP#*/}" # pkgname/path + TMP="${TMP#*/}" # path + OUTPUT="${TMP}" + elif "$INPUT" == /usr/local/lib/* ; then + TMP="${INPUT#*/}" # usr/local/lib/file + TMP="${TMP#*/}" # local/lib/file + TMP="${TMP#*/}" # lib/file = path + OUTPUT="${TMP}" + elif "$INPUT" == /usr/local/share/* ; then + TMP="${INPUT#*/}" # usr/local/share/file + TMP="${TMP#*/}" # local/share/file + TMP="${TMP#*/}" # share/file = path + OUTPUT="${TMP}" + elif "$INPUT" == $PREFIX* ; then + #LINE2=`echo "${INPUT}" | cut -c1-$PREFIXLEN` + OUTPUT="${INPUT:$PREFIXLEN}" + fi + echo "$OUTPUT" +} + +process_lib() { + +local FILESRC="$1" +local FILEDEST_SHORT="$2" + +#local FILE_PARENT="$2" + + + + local FILEDEST="${DEST}/${FILEDEST_SHORT}" + + if ! -f "${FILEDEST}" ; then + + + if ! -d `dirname "${FILEDEST}"` ; then + mkdir -p `dirname "${FILEDEST}"` + fi + REALPATH=`readlink_f "${FILESRC}"` + cp "${REALPATH}" "${FILEDEST}" + chmod a+rw "$FILEDEST" + + + install_name_tool -add_rpath ./ "$FILEDEST" > /dev/null 2>&1 || true + + + echo "Relinking ${FILEDEST_SHORT} ..." + local FIRST=true + local LINE= + local LINE2= + otool -L "${FILEDEST}" | while read -r LINE; do + #echo "$LINE" + if $FIRST; then + FIRST=false + else + LINE=`echo "$LINE" | sed -e 's/^ \t*//' | sed -e 's/ \(.*\)$//'` + + # make sure file isn't referencing itself + #A=$(basename "$FILEDEST") + #B=$(basename "$LINE") + if ! "$LINE" == "$FILESRC" ; then + LINE2=`remove_prefix "$LINE"` + if ! -z "$LINE2" ; then + #if ! -z "$FILE_PARENT" ; then + #echo " install_name_tool -change \"$LINE\" \"@rpath/$LINE2\" \"$FILEDEST\"" + install_name_tool -change "$LINE" "@rpath/$LINE2" "$FILEDEST" + process_lib "$LINE" "$LINE2" + #fi + + fi + fi + + fi + done + #echo "... finished ${FILEDEST_SHORT}" + fi + + +} + +#scan "$BASE_FILE" +#scan "$BASE_FILE" subscan + +#TARGET_FILE=`readlink_f "$1"` +TARGET_FILE="$1" +echo "Gathering deps for: $TARGET_FILE" + +export DEST="$3" +#echo "DESTINATION: $DEST" + +export PREFIX="$2" +export PREFIXLEN=${#PREFIX} + +if ! -f "${TARGET_FILE}" ; then + echo "ERROR: File not found." + exit 1 +fi + +FILEDEST_SHORT=`remove_prefix "${TARGET_FILE}"` + +if "${TARGET_FILE}" == ${PREFIX}* ; then + process_lib "${TARGET_FILE}" "${FILEDEST_SHORT}" +fi + +echo "Success." +echo "" +
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigrenderer-regression-test.sh
Added
@@ -0,0 +1,18 @@ +#!/bin/bash + +set -x + +export SCRIPTPATH=$(cd `dirname "$0"`; pwd) + +export PATH="${SCRIPTPATH}/../_production/build/bin:$PATH" + +ccache -s # show ccache stats +cd "${SCRIPTPATH}/../_production/" +if ! -d synfig-tests ; then + git clone https://gitlab.com/synfig/synfig-tests.git +else + cd synfig-tests + git pull + cd .. +fi +bash ./synfig-tests/test-rendering.sh results
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigstudio-cygwin-mingw-build.sh
Added
@@ -0,0 +1,1249 @@ +#!/bin/bash +# +# SynfigStudio Windows package build script +# Copyright (c) 2013 Konstantin Dmitriev +# +# This file is part of Synfig. +# +# Synfig is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# Synfig is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Synfig. If not, see <https://www.gnu.org/licenses/>. +# +# +# = Usage notes = +# +# * Download and install Git (http://msysgit.github.io/). +# * Open Git Bash and execute following commands: +# ** mkdir C:\synfig-build +# ** cd C:\synfig-build +# ** git clone https://github.com/synfig/synfig.git +# ** mkdir cygwin-dist +# ** cd synfig +# ** git config --global core.autocrlf input +# ** exit +# * Download Cygwin setup binary (http://www.cygwin.com/) and save it into C:\synfig-build\cygwin-dist\ directory. +# * Run Cygwin setup and install with the default parameters. +# * Download and install NSIS >=3.0 (http://nsis.sourceforge.net/). Install into C:\synfig-build\NSIS\ directory. +# * (64-bit build only!) Download and install 7zip (http://downloads.sourceforge.net/sevenzip/7z920-x64.msi). Install into C:\synfig-build\7zip\ directory. +# * Open Cygwin console (with administrator previlegies) and run the build script: +# ** bash C:/synfig-build/synfig/autobuild/synfigstudio-cygwin-mingw-build.sh +# * Installation bundle will be written to C:\synfig-build\ +# +# +# = Other notes = +# * Builds from current repository, current revision. So you should manually checkout the desired revision to build +# * Executing script without arguments makes a full clean build and produces installer package +# * You can pass arguments to the script to invoke particular stage. +# Available stages: mkprep, mketl, mksynfig, mksynfigstudio, mkpackage +# Example: +# synfigstudio-cygwin-mingw-build.sh mkpackage +# * You can pass a custom command to be invoked in the build environment. +# Example (executes make with respect to the build environment): +# synfigstudio-cygwin-mingw-build.sh make -j2 + + + +#================= EDIT THOSE VARIABLES BEFORE FIRST RUN! ====================== + +export NSIS_BINARY="C:/synfig-build/NSIS/makensis.exe" +export WORKSPACE="/cygdrive/c/synfig-build" +if -z $ARCH ; then + export ARCH="32" +fi +if -z $DEBUG ; then + export DEBUG=1 +fi +if -z $THREADS ; then + export THREADS=4 +fi +#=========================== EDIT UNTIL HERE =================================== + +export DISTPREFIX=$WORKSPACE/dist +export SRCPREFIX=`dirname "$0"` +SRCPREFIX=$(cd "$SRCPREFIX/.."; pwd) + +if $ARCH == "32" ; then + export TOOLCHAIN_HOST="i686-w64-mingw32" + export TOOLCHAIN="mingw64-i686" # mingw64-i686 | mingw64-x86_64 | mingw + export EXT_ARCH=i386 + export EXT_ARCH2=i686 + export CYGWIN_SETUP="C:/synfig-build/cygwin-dist/setup-x86.exe" + export SZIP_BINARY="7z" +elif $ARCH == "64" ; then + export TOOLCHAIN_HOST="x86_64-w64-mingw32" + export TOOLCHAIN="mingw64-x86_64" + export EXT_ARCH=x86_64 + export EXT_ARCH2=x86_64 + export CYGWIN_SETUP="C:/synfig-build/cygwin64-dist/setup-x86_64.exe" + export SZIP_BINARY="C:/synfig-build/7zip/7z.exe" +fi +export MINGWPREFIX="/usr/${TOOLCHAIN_HOST}/sys-root/mingw" +set -e + +if $DEBUG == 1 ; then + DEBUG='--enable-debug --enable-optimization=0' +else + DEBUG='' +fi + +export VERSION=`cat ${SRCPREFIX}/synfig-core/configure.ac |egrep "AC_INIT\(\Synfig Core\,"| sed "s|.*Core\,\||" | sed "s|\,\.*||"` +pushd "${SRCPREFIX}" > /dev/null +export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'` +popd > /dev/null + + +if ! -e "$SZIP_BINARY" ; then + if $ARCH == "64" ; then + echo "7zip not found! Please download and install 7zip (http://downloads.sourceforge.net/sevenzip/7z920-x64.msi). Install into C:\synfig-build\7zip\ directory." + exit 1 + fi +fi +if ! -e "$NSIS_BINARY" ; then + echo "NSIS not found! Please download and install NSIS >=3.0 (http://nsis.sourceforge.net/). Install into C:\synfig-build\NSIS\ directory." + exit 1 +fi + +chmod a+x ${MINGWPREFIX}/bin/*.dll || true + +prepare_mingw_env() +{ +export CBUILD=i686-pc-cygwin +export CHOST=${TOOLCHAIN_HOST} +export CTARGET=${TOOLCHAIN_HOST} +export CC=${TOOLCHAIN_HOST}-gcc +export CXX=${TOOLCHAIN_HOST}-g++ +export F77=${TOOLCHAIN_HOST}-gfortran +export FC=${TOOLCHAIN_HOST}-gfortran +export GCJ=${TOOLCHAIN_HOST}-gcj +export GOC=${TOOLCHAIN_HOST}-gccgo +export OBJC=${TOOLCHAIN_HOST}-gcc +export OBJCXX=${TOOLCHAIN_HOST}-g++ +export AR=${TOOLCHAIN_HOST}-ar +export OBJDUMP=${TOOLCHAIN_HOST}-objdump +export RANLIB=${TOOLCHAIN_HOST}-ranlib +export STRIP=${TOOLCHAIN_HOST}-strip +export RC=${TOOLCHAIN_HOST}-windres +export CFLAGS=' -O2 -pipe -mms-bitfields' +export CXXFLAGS=" -O2 -pipe -mms-bitfields" +#export CXXFLAGS=" -O2 -pipe -mms-bitfields -I${MINGWPREFIX}/include/c++ -I${MINGWPREFIX}/include/c++/${TOOLCHAIN_HOST}" +export F77FLAGS=' -mms-bitfields' +export FCFLAGS=' -O2 -pipe -mms-bitfields' +export GCJFLAGS=' -O2 -pipe -mms-bitfields' +export GOCFLAGS=' -mms-bitfields' +export OBJCFLAGS=' -O2 -pipe -mms-bitfields' +export OBJCXXFLAGS=' -O2 -pipe -mms-bitfields' +export PKG_CONFIG=/usr/bin/pkg-config +export PKG_CONFIG_PATH="${MINGWPREFIX}/lib/pkgconfig" +export PKG_CONFIG_LIBDIR="${MINGWPREFIX}/lib/pkgconfig:${MINGWPREFIX}/share/pkgconfig:/usr/share/pkgconfig" +export PKG_CONFIG_SYSTEM_INCLUDE_PATH=${MINGWPREFIX}/include +export PKG_CONFIG_SYSTEM_LIBRARY_PATH=${MINGWPREFIX}/lib +export CPPFLAGS=" -I${MINGWPREFIX}/include " +export LDFLAGS=" -L${MINGWPREFIX}/lib " +export LIBS="" +export PATH="${MINGWPREFIX}/bin/:$PATH" +alias convert="${MINGWPREFIX}/bin/convert" +} + +mknative() +{ +export CBUILD="" +export CHOST="" +export CTARGET="" +export CC="gcc" +export CXX="g++" +export F77="" +export FC="" +export GCJ="" +export GOC="" +export OBJC="" +export OBJCXX="" +export AR="" +export OBJDUMP="" +export RANLIB="" +export STRIP="" +export RC="" +export CFLAGS="" +export CXXFLAGS="" +export F77FLAGS="" +export FCFLAGS="" +export GCJFLAGS="" +export GOCFLAGS="" +export OBJCFLAGS="" +export OBJCXXFLAGS="" +export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" +export PKG_CONFIG_LIBDIR="" +export PKG_CONFIG_SYSTEM_INCLUDE_PATH="" +export PKG_CONFIG_SYSTEM_LIBRARY_PATH="" +export CPPFLAGS="" +export LDFLAGS="" +export PATH="/usr/local/bin:/usr/bin" + +$@ +} + +mkpopt() +{ +PKG_NAME=popt +PKG_VERSION=1.10.3 + +cd $WORKSPACE + -e ${PKG_NAME}-${PKG_VERSION}.tar.gz || wget http://rpm5.org/files/popt/${PKG_NAME}-${PKG_VERSION}.tar.gz
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigstudio-cygwin-native-build.sh
Added
@@ -0,0 +1,42 @@ +#!/bin/bash + +export CYGWIN_SETUP="/cygdrive/c/synfig-build/cygwin-dist/setup-x86.exe" +export SRCPREFIX=`dirname "$0"` +SRCPREFIX=$(cd "$SRCPREFIX/.."; pwd) + +# Install dependencies +#-K http://cygwinports.org/ports.gpg -s ftp://ftp.cygwinports.org/pub/cygwinports -s http://mirrors.163.com/cygwin \ +CYGPORT_MIRROR=http://mirrors.kernel.org/sources.redhat.com/cygwinports + +$CYGWIN_SETUP \ +-K http://cygwinports.org/ports.gpg -s $CYGPORT_MIRROR -s http://ftp.linux.kiev.ua/pub/cygwin/ \ +-P git \ +-P make \ +-P gcc-core \ +-P gcc-g++ \ +-P gdb \ +-P intltool \ +-P autoconf \ +-P automake \ +-P libtool \ +-P pkg-config \ +-P libcairo-devel \ +-P libpango1.0-devel \ +-P libjpeg-devel \ +-P libpng-devel \ +-P p7zip \ +-P ImageMagick \ +-P libxml++2.6-devel \ +-P libgtkmm2.4-devel \ +-q + +cd $SRCPREFIX/ETL +autoreconf --install --force +./configure --prefix=/usr +make install + +cd $SRCPREFIX/synfig-core +./bootstrap.sh +./configure --prefix=/usr +make -j4 +make install
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigstudio-linux-cmake.sh
Added
@@ -0,0 +1,40 @@ +#!/bin/bash + +set -e + +export CC="ccache gcc" +export CXX="ccache g++" + +#BUILD_FLAGS=(-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fdiagnostics-color") +CXX_FLAGS="-fdiagnostics-color" +BUILD_FLAGS="-GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS=\"${CXX_FLAGS}\"" +#echo ${BUILD_FLAGS} +#exit + +cd .. +pushd ETL +mkdir -p build && pushd build +cmake .. ${BUILD_FLAGS} +cmake --build . -- all test +sudo cmake --build . -- install +popd # build +popd # ETL + +pushd synfig-core +mkdir -p build && pushd build +cmake .. ${BUILD_FLAGS} +cmake --build . -- all +sudo cmake --build . -- install +popd # build +popd # synfig-core + +pushd synfig-studio +mkdir -p build && pushd build +cmake .. ${BUILD_FLAGS} +cmake --build . -- all +# this will take a while; alternatively, you can move/copy required images +# to build/images directory and skip this step +cmake --build . -- build_images +sudo cmake --build . -- install +popd # build +popd # synfig-studio \ No newline at end of file
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigstudio-osx-build.sh
Added
@@ -0,0 +1,701 @@ +#!/bin/bash +# +# SynfigStudio mac package build script +# Copyright (c) 2008-2009 Simone Karin Lehmann (GimpOSX parts) +# Copyright (c) 2012-2013 Konstantin Dmitriev +# +# This file is part of Synfig. +# +# Synfig is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# Synfig is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Synfig. If not, see <https://www.gnu.org/licenses/>. +# +# +# = Usage notes = +# +# * You need to have XCode and git installed +# * Builds from current repository, current revision. So you should manually checkout the desired revision to build +# * If no repository found - then sources fetched into ~/src/synfig and the latest master branch is built +# * Executing script without arguments makes a full clean build and produces dmg package +# * You can pass arguments to the script to invoke particular stage. +# Available stages: mkmacports, mkdeps, mketl, mksynfig, mksynfigstudio, mkapp, mkdmg +# Example: +# synfigstudio-osx-build.sh mkdeps +# * You can pass a custom command to be invoked in the build environment. +# Example (uninstalls glibmm package from the buildroot): +# synfigstudio-osx-build.sh port uninstall glibmm +# * If you suspect something is wrong with your macports installation you can always start from scratch by removing ~/src/macports dir + +# TODO: Don't build into /tmp/skl +# TODO: Disable 32bit? + + +#======= HEADER =========== + +set -e + +export RELEASE=1 +export BUILDROOT_VERSION=1 + +if `whoami` != "root" ; then + echo "Please use sudo to run this script. Aborting." + exit 1 +fi + +export SCRIPTPATH=$(cd `dirname "$0"`; pwd) + +SYNFIG_REPO_DIR=$(dirname "$SCRIPTPATH") +SCRIPTDIR_IS_REPO=0 + +if -e "$SYNFIG_REPO_DIR/build.conf" ; then + source "$SYNFIG_REPO_DIR/build.conf" +fi + +if ! -z $UNIVERSAL && ! $UNIVERSAL == 0 ; then +export BUILDDIR=~/synfig-buildroot/build.u +else +export BUILDDIR=~/synfig-buildroot/build +export UNIVERSAL=0 +fi + +if ! -z $X11 && ! $X11 == 0 ; then + export X11=1 + export BUILDDIR=${BUILDDIR}.x11 +fi + +if ! -z $DEBUG && ! $DEBUG == 0 ; then + echo + echo "Debug mode: enabled" + echo + DEBUG='--enable-debug --enable-optimization=0' + export BUILDDIR=${BUILDDIR}.debug +else + DEBUG='' +fi + +LNKDIR=/tmp/skl/SynfigStudio +MACPORTS=$LNKDIR/Contents/Resources +MPSRC=MacPorts-2.3.3 + + +export SYNFIG_PREFIX=${MACPORTS}/synfig/ +export PATH="$MACPORTS/bin:${SYNFIG_PREFIX}/bin:$MACPORTS/sbin:$PATH" +export SYNFIG_MODULE_LIST=${SYNFIG_PREFIX}/etc/synfig_modules.cfg +export PKG_CONFIG_PATH=${MACPORTS}/lib/pkgconfig:${SYNFIG_PREFIX}/lib/pkgconfig$PKG_CONFIG_PATH +export LD_LIBRARY_PATH=${MACPORTS}/lib:${SYNFIG_PREFIX}/lib:${SYNFIG_PREFIX}/lib64:$LD_LIBRARY_PATH + +#export ACLOCAL_FLAGS="-I ${SYNFIG_PREFIX}/share/aclocal -I ${MACPORTS}/share/aclocal" +#export CPPFLAGS="-fpermissive -I${MACPORTS}/include -I${SYNFIG_PREFIX}/include" +export CPPFLAGS="-I${MACPORTS}/include -I${SYNFIG_PREFIX}/include" +export LDFLAGS="-L${MACPORTS}/lib -L${SYNFIG_PREFIX}/lib" +if ! $UNIVERSAL == 0 ; then +export CFLAGS="-arch i386 -arch x86_64" +export CXXFLAGS="-arch i386 -arch x86_64" +export LDFLAGS="$LDFLAGS -arch i386 -arch x86_64" +fi + +#======= HEADER END =========== + + + +prepare() +{ + # == workarounds == + + #We should do that, otherwise python won't build: + if -e $MACPORTS/tmp/app ; then + ! -e $MACPORTS/tmp/app.bak || rm -rf $MACPORTS/tmp/app.bak + echo "Backing up custom /Applications/MacPorts dir..." + mv $MACPORTS/tmp/app $MACPORTS/tmp/app.bak || true + fi + + # Cleanup some stuff, remaining from older installations + rm /Library/LaunchDaemons/org.macports.rsyncd.plist || true + + # == symlinks == + + if ! -e "$BUILDDIR" ; then + mkdir -p "$BUILDDIR" + fi + + echo -n setting symlink to build directory... + test -d /tmp/skl || mkdir -p /tmp/skl + chmod a+w /tmp/skl + test -L $LNKDIR && rm $LNKDIR + test -L $MACPORTS && rm $MACPORTS + mkdir -p `dirname $MACPORTS` + ln -s "$BUILDDIR" $MACPORTS + chmod a+w $MACPORTS + echo +} + +mkmacports() +{ + +# cleanup previous installation +if -e "$BUILDDIR/" ; then + rm -rf "$BUILDDIR/" +fi + +mkdir -p "$BUILDDIR/" +mkdir -p ~/src +cd ~/src + +# compile MacPorts and do a selfupdate +if ! -d "$MPSRC" ; then + #curl -LO http://svn.macports.org/repository/macports/downloads/$MPSRC/$MPSRC.tar.bz2 + curl -LO http://distfiles.macports.org/MacPorts/$MPSRC.tar.bz2 + echo -n extracting MacPorts sources ... + bunzip2 $MPSRC.tar.bz2 + tar -xf $MPSRC.tar + rm $MPSRC.tar + echo done. +fi + +# this is the main part on which this building and packaging process relies on +echo Compiling and updating MacPorts... +cd $MPSRC +./configure --prefix $MACPORTS --with-tclpackage=$MACPORTS/share/macports/Tcl \ + --with-install-user=`id -un` \ + --with-install-group=`id -gn` +make clean +make -j$JOBS +#sudo make install +make install +cd - > /dev/null +export PATH="$MACPORTS/bin:$MACPORTS/sbin:$PATH" + +# give our build directory user perms so we don't need sudo in further steps. Avoid sudo whenever it's possible! +#sudo chown -R $UID "$BUILDDIR" + +# do a selfupdate +echo Now selfupdating MacPorts. Please wait ... +port -d selfupdate + +# now give some hints +echo +echo "Yor MacPorts installation is now ready to build SynfigStudio for Mac OS X." +} + +mkdeps() +{ + # test if we have MacPorts installed + if ! -e "$MACPORTS/bin/port" ; then + mkmacports + fi + + if -e "$MACPORTS/bin/synfig" ; then + echo "=========================== !!! ==========================" + echo " Macports installation is outdated. Force rebuild..." + echo "=========================== !!! =========================="
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/synfigstudio-release.sh
Added
@@ -0,0 +1,214 @@ +#!/bin/bash + +# Usage notes +# +# Running this script will creates release tarballs for all synfig +# modules and testing them by installing into ~/local-synfig/. +# +# It is also possible to run procedure for each module separately by +# passing specific arguments to the script: +# * Run procedures for ETL: +# synfigstudio-release.sh etl +# * Run procedures for synfig-core: +# synfigstudio-release.sh core +# * Run procedures for synfig-studio: +# synfigstudio-release.sh studio +# * Run check for localization files: +# synfigstudio-release.sh l10n +# + +set -e + +export SCRIPTPATH=$(cd `dirname "$0"`; pwd) +export SRCPREFIX=`dirname "$SCRIPTPATH"` + +BUILD_RELEASE_DIR=${SRCPREFIX}/_release/ + +export PREFIX="$HOME/local-synfig" +export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig" +export PATH="$PREFIX/bin:$PATH" +export ETL_VERSION=`cat $SRCPREFIX/ETL/configure.ac |egrep "AC_INIT\(\Extended Template Library\,"| sed "s|.*Library\,\||" | sed "s|\,\.*||"` +echo "ETL_VERSION=$ETL_VERSION" +export CORE_VERSION=`cat $SRCPREFIX/synfig-core/configure.ac |egrep "AC_INIT\(\Synfig Core\,"| sed "s|.*Core\,\||" | sed "s|\,\.*||"` +echo "CORE_VERSION=$CORE_VERSION" +export STUDIO_VERSION=`cat $SRCPREFIX/synfig-studio/configure.ac |egrep "AC_INIT\(\Synfig Studio\,"| sed "s|.*Studio\,\||" | sed "s|\,\.*||"` +echo "STUDIO_VERSION=$STUDIO_VERSION" + +# Colored output +RED='\0330;31m' +YLW='\0331;33m' +GRN='\0330;32m' +NC='\0330m' # No Color + +if `uname` == "MINGW"* ; then # MacOS doesn't support `uname -o` flag + PATH="${MINGW_PREFIX}/lib/ccache/bin:${PATH}" + PKG_CONFIG_PATH="/opt/mlt-7.2.0/lib/pkgconfig:${PKG_CONFIG_PATH}" + echo "ccache enabled" +fi + +if -z $THREADS ; then + export THREADS=4 +fi + +start_stage() +{ + echo -e "Starting ${YLW}$1${NC} stage" +} + +end_stage() { + echo "$1 complete." +} + +l10n_check() +{ + cd $2 + OUTPUT=`intltool-update -m 2>&1` + + if ! -z "${OUTPUT}" ; then + echo -e "Checking $1 translations... ${RED}Error${NC}" + echo "${OUTPUT}" + exit 1 + fi + echo -e "Checking $1 translations... ${GRN}Done${NC}" +} + +l10n() +{ + start_stage "l10n" + l10n_check "Synfig Core" "$SRCPREFIX/synfig-core/po" + l10n_check "Synfig Studio" "$SRCPREFIX/synfig-studio/po" + end_stage "l10n" +} + +pack-etl() +{ + start_stage "Pack ETL" + cd $SRCPREFIX/ETL + autoreconf -if + mkdir -p ${BUILD_RELEASE_DIR}/ETL && cd $BUILD_RELEASE_DIR/ETL + $SRCPREFIX/ETL/configure --prefix="$PREFIX" + make V=0 CXXFLAGS="-w" distcheck -j${THREADS} + mv ETL-${ETL_VERSION}.tar.gz ${BUILD_RELEASE_DIR} + end_stage "Pack ETL" +} + +test-etl() +{ + start_stage "Test ETL" + cd ${BUILD_RELEASE_DIR} + tar xf ETL-${ETL_VERSION}.tar.gz + cd ETL-${ETL_VERSION} + ./configure --prefix="$PREFIX" + make V=0 CXXFLAGS="-w" install -j${THREADS} + cd .. + rm -rf ${BUILD_RELEASE_DIR}/ETL-${ETL_VERSION} + end_stage "Test ETL" +} + +etl() +{ + start_stage "ETL" + pack-etl + test-etl + end_stage "ETL" +} + +pack-core() +{ + start_stage "Pack Synfig Core" + cd $SRCPREFIX/synfig-core + ./bootstrap.sh + mkdir -p ${BUILD_RELEASE_DIR}/synfig-core && cd $BUILD_RELEASE_DIR/synfig-core + $SRCPREFIX/synfig-core/configure --prefix="$PREFIX" + echo "------------------------------------- pack-core make" + make V=0 CXXFLAGS="-w" distcheck -j${THREADS} + mv synfig-${CORE_VERSION}.tar.gz ${BUILD_RELEASE_DIR} + end_stage "Pack Synfig Core" +} + +test-core() +{ + start_stage "Test Synfig Core" + cd ${BUILD_RELEASE_DIR} + tar xf synfig-${CORE_VERSION}.tar.gz + cd synfig-${CORE_VERSION} + ./configure --prefix="$PREFIX" + make V=0 CXXFLAGS="-w" install -j${THREADS} + cd .. + rm -rf ${BUILD_RELEASE_DIR}/synfig-${CORE_VERSION} + end_stage "Test Synfig Core" +} + +core() +{ + start_stage "Synfig Core" + pack-core + test-core + end_stage "Synfig Core" +} + +pack-studio() +{ + start_stage "Pack Synfig Studio" + cd $SRCPREFIX/synfig-studio + ./bootstrap.sh + mkdir -p ${BUILD_RELEASE_DIR}/synfig-studio && cd $BUILD_RELEASE_DIR/synfig-studio + $SRCPREFIX/synfig-studio/configure --prefix="$PREFIX" + make V=0 CXXFLAGS="-w" distcheck -j${THREADS} + mv synfigstudio-${STUDIO_VERSION}.tar.gz ${BUILD_RELEASE_DIR} + end_stage "Pack Synfig Studio" +} + +test-studio() +{ + start_stage "Test Synfig Studio" + cd ${BUILD_RELEASE_DIR} + tar xf synfigstudio-${STUDIO_VERSION}.tar.gz + cd synfigstudio-${STUDIO_VERSION} + ./configure --prefix="$PREFIX" + make install -j${THREADS} + cd .. + rm -rf ${BUILD_RELEASE_DIR}/synfigstudio-${STUDIO_VERSION} + end_stage "Test Synfig Studio" +} + +studio() +{ + start_stage "Synfig Studio" + pack-studio + test-studio + end_stage "Synfig Studio" +} + +mkall() +{ + if -d "$BUILD_RELEASE_DIR" ;then + chmod -R u+w "$BUILD_RELEASE_DIR" + rm -rf "$BUILD_RELEASE_DIR" + fi + l10n + etl + core + studio +} + +do_cleanup() +{ + start_stage "Clean up" + if -d "$BUILD_RELEASE_DIR" ;then + chmod -R u+w "$BUILD_RELEASE_DIR"
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/transifex-pull-translations.sh
Added
@@ -0,0 +1,26 @@ +#!/bin/bash + +set -e + +SCRIPTPATH="${BASH_SOURCE0}"; +pushd `dirname "${SCRIPTPATH}"` > /dev/null +SCRIPTPATH=`pwd`; +popd > /dev/null + +fix_po() +{ + for FILE in `ls -1 *.po`; do + sed -i '/Report-Msgid-Bugs-To:/c\"Report-Msgid-Bugs-To: https://github.com/synfig/synfig/issues\\n"' "$FILE" || true + done +} + +cd "$SCRIPTPATH/.." +tx pull -a --force + +cd "$SCRIPTPATH/../synfig-core/po" +fix_po + +cd "$SCRIPTPATH/../synfig-studio/po" +fix_po + +"$SCRIPTPATH/update-languages.sh"
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/transifex-push-template.sh
Added
@@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +SCRIPTPATH="${BASH_SOURCE0}"; +pushd `dirname "${SCRIPTPATH}"` > /dev/null +SCRIPTPATH=`pwd`; +popd > /dev/null + + +fix-pot() +{ + if -z "$1" ; then + echo "ERROR: Please specify .pot file" + exit 1 + fi + + PKGNAME="Package" + if "$1" == "synfig.pot" ; then + PKGNAME="Synfig Core" + fi + if "$1" == "synfigstudio.pot" ; then + PKGNAME="Synfig Studio" + fi + + YEAR=`date +%Y` + + sed -i "/# SOME DESCRIPTIVE TITLE/c\# Translation file for $PKGNAME package." "$1" || true + sed -i "/# Copyright (C) YEAR/c\# Copyright (C) $YEAR Synfig Contributors" "$1" || true + sed -i "/# This file is distributed under the same license as the PACKAGE package./c\# This file is distributed under the same license as the $PKGNAME package." "$1" || true +} + +cd "$SCRIPTPATH/../synfig-core/po" +rm synfig.pot || true +intltool-update --pot +fix-pot synfig.pot + +cd "$SCRIPTPATH/../synfig-studio/po" +rm synfigstudio.pot || true +intltool-update --pot +fix-pot synfigstudio.pot + +cd "$SCRIPTPATH/.." +tx push -s
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/transifex-push-translations.sh
Added
@@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +SCRIPTPATH="${BASH_SOURCE0}"; +pushd `dirname "${SCRIPTPATH}"` > /dev/null +SCRIPTPATH=`pwd`; +popd > /dev/null + +cd "$SCRIPTPATH/.." +for POTFILE in `ls synfig-core/po/*.po`; do echo $POTFILE; msgfmt -c $POTFILE; done +for POTFILE in `ls synfig-studio/po/*.po`; do echo $POTFILE; msgfmt -c $POTFILE; done +tx push -t
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/translations-validation.sh
Added
@@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +SCRIPTPATH="${BASH_SOURCE0}"; +pushd `dirname "${SCRIPTPATH}"` > /dev/null +SCRIPTPATH=`pwd`; +popd > /dev/null + +cd "$SCRIPTPATH/.." +for POTFILE in `ls synfig-core/po/*.po`; do echo $POTFILE; msgfmt --check $POTFILE; done +for POTFILE in `ls synfig-studio/po/*.po`; do echo $POTFILE; msgfmt --check $POTFILE; done
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/travis-linux.sh
Added
@@ -0,0 +1,12 @@ +#!/bin/bash +# + +REPO_DIR=`dirname "$0"` +pushd ${REPO_DIR}/.. > /dev/null +REPO_DIR=`pwd` +popd > /dev/null + +curl https://nixos.org/nix/install | bash +source ~/.nix-profile/etc/profile.d/nix.sh + +nix-shell --command ${REPO_DIR}/build-production.sh ${REPO_DIR}/autobuild/default.nix
View file
_service:obs_scm:synfig-1.5.3.obscpio/autobuild/update-languages.sh
Added
@@ -0,0 +1,113 @@ +#!/bin/bash + +set -e + +update_linguas() { + local DIR="$1" + local LINGUAS_FILE="$DIR/LINGUAS" + echo "update $LINGUAS_FILE" + ls -1 "$DIR"/*.po | while read FILE; do + basename -s .po "$FILE"; + done > "$LINGUAS_FILE" +} + +firstword() { + echo "$1" +} + +read_linguas() { + local FILE="$1" + echo " - read $FILE" + while read LINE; do + local CODE="$(firstword $LINE)" + if ! -z "$CODE" ; then + CODE_MAP$CODE="$CODE" + NAME_MAP$CODE="" + COMMENT_MAP$CODE=" <------- TODO: Set language name and remove this comment" + else + echo "$LINE" >> "$TMPFILE" + fi + done < "$FILE" +} + +update_languages_inc() { + local LANGUAGES_FILE="synfig-studio/src/languages.inc.c" + echo "update LANGUAGES_FILE" + + local TMPFILE="$LANGUAGES_FILE.process" + rm -f "$TMPFILE" + + declare -A CODE_MAP + declare -A NAME_MAP + declare -A COMMENT_MAP + + read_linguas "synfig-core/po/LINGUAS" + read_linguas "synfig-studio/po/LINGUAS" + + echo " - read $LANGUAGES_FILE" + while read LINE; do + local COMMENT="$(echo "$LINE" | sed "s|//|#|" | cut -d \# -f 2- -s)" + local SUBLINE="$(echo "$LINE" | sed "s|//|#|" | cut -d \# -f 1)" + local CODE="$(echo "$SUBLINE" | cut -d \" -f 2)" + local NAME="$(echo "$SUBLINE" | cut -d \" -f 4)" + if ! -z "$CODE" || ! -z "$NAME" ; then + CODE_MAP$CODE="$CODE" + NAME_MAP$CODE="$NAME" + COMMENT_MAP$CODE="$COMMENT" + else + # write all unknown rows to beginning of file + echo "$LINE" >> "$TMPFILE" + fi + done < "$LANGUAGES_FILE" + + # fit the columns to make beautifulest table in the world + local CODE_LEN=0 + local NAME_LEN=0 + for i in ${!CODE_MAP@}; do + if ${#CODE_MAP$i} -gt $CODE_LEN ; then + CODE_LEN=${#CODE_MAP$i} + fi + if ${#NAME_MAP$i} -gt $NAME_LEN ; then + NAME_LEN=${#NAME_MAP$i} + fi + done + CODE_LEN=$((CODE_LEN+3)) + NAME_LEN=$((NAME_LEN+3)) + + # sort + SORTED=$(for i in ${!CODE_MAP@}; do echo $i; done | sort | while read l; do echo -n "$l "; done) + + # write languages + NEW_LANGS= + for i in $SORTED; do + CODE=${CODE_MAP$i} + NAME=${NAME_MAP$i} + COMMENT=${COMMENT_MAP$i} + if ! -z "$COMMENT" ; then + COMMENT=" // $COMMENT" + fi + if -z "$NAME" ; then + NEW_LANGS="$NEW_LANGS $CODE" + fi + printf "{ %-${CODE_LEN}s %-${NAME_LEN}s },%s\\n" "\"$CODE\"," "\"$NAME\"," "$COMMENT" >> "$TMPFILE" + done + + # update file + mv $TMPFILE $LANGUAGES_FILE + + if ! -z "$NEW_LANGS" ; then + echo "" + echo "please, enter names for following languages:$NEW_LANGS" + echo "" + echo "see file $LANGUAGES_FILE" + echo "" + fi +} + + +cd "$(cd `dirname "$0"`; pwd)/.." + +update_linguas "synfig-core/po" +update_linguas "synfig-studio/po" +update_languages_inc +echo "done"
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/bootstrap.sh
Added
@@ -0,0 +1,60 @@ +#!/bin/sh + +set -e + +AUTORECONF=`command -v autoreconf || true` #if don't set true, script fails with no messages +if -z $AUTORECONF ; then + echo "*** No autoreconf found, please install it ***" + exit 1 +fi + +INTLTOOLIZE=`command -v intltoolize || true` +if -z $INTLTOOLIZE ; then + echo "*** No intltoolize found, please install the intltool package ***" + exit 1 +fi + +LIBTOOLIZE=`command -v libtoolize || true` +if -z $LIBTOOLIZE ; then + LIBTOOLIZE=`command -v glibtoolize || true` + if ! -z $LIBTOOLIZE ; then + echo "Using glibtoolize. Is it OSX?" + fi +fi + +if -z $LIBTOOLIZE ; then + echo "*** No libtoolize nor glibtoolize found, please install the intltool package ***" + exit 1 +fi + +echo "running libtoolize ($LIBTOOLIZE)..." +$LIBTOOLIZE --ltdl --copy --force + +echo "running autopoint..." +autopoint --force + +echo "running autoreconf..." +AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose + +# WORKAROUND 2013-08-15: +# Patch the generated po/Makefile.in.in file so that locale files are installed +# in the correct location on OS X and Free-BSD systems. This is a workaround +# for a bug in intltool. +# See https://launchpad.net/bugs/398571 and https://bugs.launchpad.net/bugs/992047 +# +# TODO: Drop this hack, and bump our intltool version requiement once the issue +# is fixed in intltool + +echo "patching po/Makefile.in.in..." +sed 's/itlocaledir = $(prefix)\/$(DATADIRNAME)\/locale/itlocaledir = $(datarootdir)\/locale/;s/rm -f .intltool-merge-cache/rm -f .intltool-merge-cache .intltool-merge-cache.lock/' < po/Makefile.in.in > po/Makefile.in.in.tmp +# -- force didn't work under MacOS +mv -f po/Makefile.in.in.tmp po/Makefile.in.in + +# Fix https://github.com/synfig/synfig/issues/3398 +# For compatibility with MacOS we have to make sure "sh" binary +# is found in "/bin/sh", not "/usr/bin/sh" +sed "s|#!/usr/bin/sh|#!/bin/sh|" < config/install-sh > config/install-sh.tmp +mv -f config/install-sh.tmp config/install-sh +chmod +x config/install-sh + +echo "Done! Please run ./configure now."
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/config
Deleted
-(directory)
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/config/ltmain.patch
Added
@@ -0,0 +1,17 @@ +--- ltmain.bak Thu Apr 7 19:12:55 2005 ++++ ltmain.sh Thu Apr 7 19:20:28 2005 +@@ -5362,10 +5362,10 @@ + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. +- if test "$inst_prefix_dir" = "$destdir"; then +- $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 +- exit 1 +- fi ++# if test "$inst_prefix_dir" = "$destdir"; then ++# $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++# exit 1 ++# fi + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command.
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/config/package
Added
@@ -0,0 +1,292 @@ +#! /bin/csh -ef +# this file was originally distributed by Apple in the Developer Tools package +#it is distributed under the Apple Open Source License +set version=0.2 +set prog = `/usr/bin/basename $0` +set usage = "Usage: $prog -f root-dir info-file tiff-file -d dest-dir -r resource-dir -traditional | -gnutar -bzip" +set noglob + +if (-x /usr/bin/mkbom) then + set mkbom=/usr/bin/mkbom + set lsbom=/usr/bin/lsbom +else + set mkbom=/usr/etc/mkbom + set lsbom=/usr/etc/lsbom +endif + +if (-x /usr/bin/awk) then + set awk=/usr/bin/awk +else + set awk=/bin/awk +endif +set bzip2=`which bzip2` +set gnutar=/usr/bin/gnutar +set tar=/usr/bin/tar +set pax=/bin/pax + +# gather parameters +if ($#argv == 0) then + echo $usage + exit(1) +endif +unset usebzip +while ( $#argv > 0 ) + switch ( $argv1 ) + case -d: + if ( $?destDir ) then + echo ${prog}: dest-dir parameter already set to ${destDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -d option requires destination directory. + echo $usage + exit(1) + else + set destDir = $argv2 + shift; shift + breaksw + endif + case -f: + if ( $?rootDir ) then + echo ${prog}: root-dir parameter already set to ${rootDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -f option requires package root directory. + echo $usage + exit(1) + else + set rootDir = $argv2 + set fflag + shift; shift + breaksw + endif + case -r: + if ( $?resDir ) then + echo ${prog}: resource-dir parameter already set to ${resDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -r option requires package resource directory. + echo $usage + exit(1) + else + set resDir = $argv2 + shift; shift + breaksw + endif + case -traditional: + echo using standard tar + set usetar + unset usegnutar + unset usepax + breaksw + case -gnutar: + echo using gnutar + set usegnutar + unset usepax + unset usetar + shift + case -bzip: + if (-x $bzip2) then + set usebzip + echo using bzip compression + else + echo COMPRESSION ERROR: You can not use BZIP2 you do not have it installed + exit(1) + endif + shift + breaksw + case -*: + echo ${prog}: Unknown option: $argv1 + echo $usage + exit(1) + case *.info: + if ( $?info ) then + echo ${prog}: info-file parameter already set to ${info}. + echo $usage + exit(1) + else + set info = "$argv1" + shift + breaksw + endif + case *.tiff: + if ( $?tiff ) then + echo ${prog}: tiff-file parameter already set to ${tiff}. + echo $usage + exit(1) + else + set tiff = "$argv1" + shift + breaksw + endif + default: + if ( $?rootDir ) then + echo ${prog}: unrecognized parameter: $argv1 + echo $usage + exit(1) + else + set rootDir = "$argv1" + shift + breaksw + endif + endsw +end + +# check for mandatory parameters +if ( ! $?rootDir ) then + echo ${prog}: missing root-dir parameter. + echo $usage + exit(1) +else if ( ! $?info) then + echo ${prog}: missing info-file parameter. + echo $usage + exit(1) +endif + +# destDir gets default value if unset on command line +if ( $?destDir ) then + /bin/mkdir -p $destDir +else + set destDir = . +endif + +# derive the root name for the package from the root name of the info file +set root = `/usr/bin/basename $info .info` + +# create package directory +set pkg = ${destDir}/${root}.pkg +echo Generating Installer package $pkg ... +if ( -e $pkg ) /bin/rm -rf $pkg +/bin/mkdir -p -m 755 $pkg +/bin/mkdir -p -m 755 $pkg/Contents +/bin/mkdir -p -m 755 $pkg/Contents/Resources +/bin/mkdir -p -m 755 $pkg/Contents/Resources/English.lproj/ +echo "gxpmpkg2" >$pkg/Contents/PkgInfo +chmod 755 $pkg/Contents/PkgInfo +# (gnu)tar/pax and compress root directory to package archive +echo -n " creating package archive ... " +if ( $?fflag ) then + set pkgTop = ${rootDir:t} + set parent = ${rootDir:h} + if ( "$parent" == "$pkgTop" ) set parent = "." +else + set parent = $rootDir + set pkgTop = . +endif +if ( $?usetar ) then + set pkgArchive = $pkg/Contents/Resources/$root.tar.Z + (cd $parent; $tar -w $pkgTop) | /usr/bin/tar -f -c > $pkgArchive +else if ( $?usegnutar ) then + if ( $?usebzip ) then + set pkgArchive = $pkg/Contents/Resources/$root.tar.bz2 + (cd $parent; $gnutar c $pkgTop) | $bzip2 -f -c > $pkgArchive + else + set pkgArchive = $pkg/Contents/Resources/$root.tar.gz + (cd $parent; $gnutar zcf $pkgArchive $pkgTop) + endif +else + set pkgArchive = $pkg/Contents/Resources/$root.pax.gz + (cd $parent; $pax -w -z -x cpio $pkgTop) > $pkgArchive +endif +/bin/chmod 755 $pkgArchive +echo done. + +# copy info file to package +set pkgInfo = $pkg/Contents/Resources/English.lproj/$root.info +echo -n " copying ${info:t} ... " +/bin/cp $info $pkgInfo
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/doc
Deleted
-(directory)
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/doc/hw-gfx-mapping.txt
Added
@@ -0,0 +1,75 @@ +Shader Calculation Model: + +inputs - variables that control the object +shader - joint vertex and pixel shader necessary for calculation + +Parameter Types: + Uniforms - things that are constant for the entire render setup + +Layer render properties: + +Blend - blends with layer behind (amount,blend-method), if complicated must use (pixel shader...). +Algorithmic - gets colors without sampling textures (exception for function look ups...). + +Sampling - samples a texture map as part of the color calc process. + Behind - use result(s) below to calculate color. + Internal - + Functions/Inputs - CPU generated internal texture maps (uniform) + Dependent - GPU generated texture maps (unknown use...) + +Parameters: + Uniforms - layer-wide stats (color, blend-mode, amount, below texture, coverage map, etc.) + Varying - pixel coordinate (in canv-space), texture coordinates for samplers, etc. + +For optimized stuff: + For layer constants that aren't simple calculations (i.e. changing the blend type), + we can use global constants (however since OpenGL doesn't allow you to define those + manually, we can probably do it with #defines or the like)... Just in time compiling + (optimized by caching these changes of course) would allow us to operate in an optimal + manner (rather than having dynamic branching at run time). + +Considerations for Framework: + +For truly optimal rendering, caching textures would be great, but it would take up a lot of space. So an intelligent resource system should be implemented. The resource eviction routine should be intelligent and should deal with the resources deepest in the tree (of course this doesn't entirely count for CPU generated stuff). A priority system should be generated, mostly depending on how often it's used and even more, how expensive it is to generate (cpu and gpu side...). + +Shader considerations for Operations: + +Blend functionality can be done in a separate pass unless the blending shader part is also programmable (requires less JIT compiling). + +Sampling function should be abstracted to use different forms of interpolation (for nearest and linear, the built in support is probably plenty). + +Iterated calculations: either done using dynamic looping in GLSL or multipass rendering. + + +Shader considerations for layers: + +solid_color - just use blend with an input global color parameter + +circle - can calculate alpha in falloff based on interpolated pixel values and then use that and the amount... color to blend (must work out whether or not to out put an amount map + color blend, or a color map + amount blend... currently using the first on CPU side). + +checker_board - same as circle, but a simpler calculation (antialiasing will require a few calculations using the values of the derivatives of the pixel coordinates) + +rectangle - same thing as the checker_board, but only need to worry about 2 edges per dimension. + +Coverage Map Based: outline,polygon,region,star,text +and Internal Samplers: import, noise + - would require CPU side computation of the coverage map/color map + (tiling would be a little more difficult... we'll see how effective it would be...) + +Modifiers (algorithmic w/ direct below sample): clamp,colorcorrect (blend also classifies as this) + - modification of the colors underneath using math... easy.... + +Basic Transform: translate,stretch,zoom (should require no sampling),super_sample (simple down sample) + - simply requires the repositioning (and resizing in the case of the super sample) of the window + +Behind Samplers: + Basic Transform: rotate,twirl, + In-place: bevel,blur,halftone2,shade + Warpers: inside_out, spherize, noise_distort (internal and behind sampler) + - requires access to the background texture (with increased window in order to not find distortions). + +Iterated: mandelbrot,julia (used to warp, index into gradient, etc.) + - requires iterative refinement of the fractal values (with crazy swapping to consider stopping points) + +Gradients (complicated... could require a CPU side color map, unless we have dynamic looping): + conical_gradient, linear_gradient, radial_gradient, spiral_gradient
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/doc/tangentproblem.txt
Added
@@ -0,0 +1,73 @@ +THE PROBLEM OF THE TANGENT OF THE BLINES UNDER BONE INFLUENCE +============================================================= +Tangents are relative to vertices in any of its definitions (radius, angle) +or (x,y). As the transformation performed by bones is prepaed to work on +global coordinates vertices, the tangent transformation can not be directly +transformed by bones in that way. + +There are some solutions to solve that: +1) The solution that Anime Studio gives to the tangents: It doesn't + have real tangents but calculated ones based on the neighbour vertices + position and a parameter called 'curvature'. + +2) As well the tangents are relative to the vertex it belongs to, we + need to convert the tangent to global coordinates, transform it by the + bone(s) influence and then convert it to local coordinates again. + + + +1) PROPOSAL FOR TANGENTS 'CALCULATED' BASED ON NEIGHBOR VERTICES +================================================================ + + param convert type value type + ----- ------------ ---------- + Tangent AverageTangent Vector + Current BoneInfluence Vector + Next BoneInfluence Vector + Previous BoneInfluence Vector + Link Vector Vector + +'Current' is the current vertex in the bline (where the tangent lies) it is not a parameter +'Next' is the next vertex in the bline relative to Current +'Previous' it is the previous vertex in the bline relative to Current. + +Resulting Tangent (radius, angle) is defined by: + +Let's call: V=Current-(Next+Previous)*0.5 +Let's call: V0=Current.Link-(Next.Link+Previous.Link)*0.5 + + +Radius: +radius = Link.radius + +Angle: +angle=atan2(V.x,V.y) - (atan2(V0.x,V0.y)-Link.angle) + +When the user manipulates the tangent duck it modifies Link as an offset. + +Problems: +-Insert a vertex +-Vertex "on", "off" + +2) PROPOSAL FOR TANGENTS IN GLOBAL COORDINATES +============================================== + +Given a vertex V and a tangent T and a transformed position of the vertex +after bone influence V', calculate the transformed position of the tangent. + +global position of the tangent: +TG=V+T +TG'=V'+T' + +T'=TG'-V' = (V+T)' -V' where ' means transformed by bones. + + param convert type value type + ----- ------------ ---------- + Tangent BoneTangent Vector + Bone Weight List List Static List + Link (T) Vector + Vertex (V) Vector + +It is reasonable that the Bone Weight List is the same for both parameters. + +When user manipulates the tangent duck it modifies the parameter T.
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/pkg-info/macosx/core-resources/install.sh
Added
@@ -0,0 +1,58 @@ +#!/bin/sh +# finish up the installation +# this script should be executed using the sudo command +# this file is copied to synfig-devel.post_install and synfig-devel.post_upgrade +# inside the .pkg bundle +LOGFILE="/synfig_install.log" + +exit 0 + + +umask 022 + +RESOURCE_DIR=`dirname $0` +PREFIX=/usr/local + +cd $RESOURCE_DIR + +echo "Creating synfig-config script" + -d $PREFIX || mkdir $PREFIX + -d $PREFIX/bin || mkdir $PREFIX/bin + -d $PREFIX/include || mkdir $PREFIX/include + -d $PREFIX/lib || mkdir $PREFIX/lib + -d $PREFIX/sbin || mkdir $PREFIX/sbin + +echo "Cleaning up any previous installation" + -d $PREFIX/include/synfig && rm -fr $PREFIX/include/synfig +ln -s /Library/Frameworks/synfig.framework/Headers $PREFIX/include/synfig + +sed ' +s:@exec_prefix@:/usr/local:g; +s:@prefix@:/usr/local:g; +s:@bindir@:$exec_prefix/bin:g; +s:@libdir@:$exec_prefix/lib:g; +s:@includedir@:$prefix/include:g; +s:@VERSION@:@_VERSION_@:g; +s:@PACKAGE@:@_PACKAGE_@:g; +s:@LIBS@::g; +s:@VERSION@:@_VERSION_@:; +s:@PACKAGE@:@_PACKAGE_@:; +s:@CONFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@SYNFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@CONFIG_CFLAGS@:-framework synfig:; +' < $RESOURCE_DIR/synfig-config.in > $PREFIX/bin/synfig-config +chmod 775 $PREFIX/bin/synfig-config + +echo "Precompiling Headers" +#/usr/bin/c++ -precomp /Library/Frameworks/synfig.framework/Headers/synfig.h -o /Library/Frameworks/synfig.framework/Headers/synfig.p + +echo "Moving synfig tool" +cp $RESOURCE_DIR/synfig $PREFIX/bin || exit 1 + +echo "Done with shell script" + + +exit 0 + + +
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-core/pkg-info/macosx/core-resources/upgrade.sh
Added
@@ -0,0 +1,58 @@ +#!/bin/sh +# finish up the installation +# this script should be executed using the sudo command +# this file is copied to synfig-devel.post_install and synfig-devel.post_upgrade +# inside the .pkg bundle +LOGFILE="/synfig_install.log" + +exit 0 + + +umask 022 + +RESOURCE_DIR=`dirname $0` +PREFIX=/usr/local + +cd $RESOURCE_DIR + +echo "Creating synfig-config script" + -d $PREFIX || mkdir $PREFIX + -d $PREFIX/bin || mkdir $PREFIX/bin + -d $PREFIX/include || mkdir $PREFIX/include + -d $PREFIX/lib || mkdir $PREFIX/lib + -d $PREFIX/sbin || mkdir $PREFIX/sbin + +echo "Cleaning up any previous installation" + -d $PREFIX/include/synfig && rm -fr $PREFIX/include/synfig +ln -s /Library/Frameworks/synfig.framework/Headers $PREFIX/include/synfig + +sed ' +s:@exec_prefix@:/usr/local:g; +s:@prefix@:/usr/local:g; +s:@bindir@:$exec_prefix/bin:g; +s:@libdir@:$exec_prefix/lib:g; +s:@includedir@:$prefix/include:g; +s:@VERSION@:@_VERSION_@:g; +s:@PACKAGE@:@_PACKAGE_@:g; +s:@LIBS@::g; +s:@VERSION@:@_VERSION_@:; +s:@PACKAGE@:@_PACKAGE_@:; +s:@CONFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@SYNFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@CONFIG_CFLAGS@:-framework synfig:; +' < $RESOURCE_DIR/synfig-config.in > $PREFIX/bin/synfig-config +chmod 775 $PREFIX/bin/synfig-config + +echo "Precompiling Headers" +#/usr/bin/c++ -precomp /Library/Frameworks/synfig.framework/Headers/synfig.h -o /Library/Frameworks/synfig.framework/Headers/synfig.p + +echo "Moving synfig tool" +cp $RESOURCE_DIR/synfig $PREFIX/bin || exit 1 + +echo "Done with shell script" + + +exit 0 + + +
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/build_tools
Deleted
-(directory)
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/build_tools/autorevision.sh
Added
@@ -0,0 +1,80 @@ +#!/bin/sh + +# Copyright 2008 Paul Wise +# Copyright 2009 Konstantin Dmitriev +# +# This file is part of Synfig. +# +# Synfig is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# Synfig is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Synfig. If not, see <https://www.gnu.org/licenses/>. + +get_git_id(){ + export SCM=git + export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 2 -d ' ' | cut -c -7` + export BRANCH="`cd "$1"; git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' '//`" + if ( echo $BRANCH | egrep origin/master > /dev/null ); then + #give a priority to master branch + BRANCH='master' + else + BRANCH=`echo $BRANCH | cut -d ' ' -f 1` + BRANCH=${BRANCH##*/} + fi + export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'` + export COMPARE=`git rev-parse --git-dir` + # The extra * at the end is for Modified + #REVISION="$REVISION"`cd "$1"; $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" && echo "*"` +} + + +HEADER="$2/autorevision.h" +SCM=none + + +if ! -f "$HEADER" ; then + touch -t 197001010101 "$HEADER" +fi + + +# Extract the revision from git +if git rev-parse --git-dir > /dev/null 2>&1 ; then + get_git_id "." +fi + + +# Allow overriding both REVISION and DEVEL_VERSION +if -f "$2/autorevision.conf" ; then + SCM=manual + . "$2/autorevision.conf" +fi + + +# Abort if the header is newer +if "$COMPARE" -ot "$HEADER" ; then exit; fi + +# Set the development version string +if x = "x$DEVEL_VERSION" ; then + if x != "x$REVISION" ; then + if $SCM = git ; then + DEVEL_VERSION="Revision: ${REVISION}\\\\nBranch: ${BRANCH}\\\\nRevision ID: ${REVISION_ID}" + elif $SCM = manual ; then + DEVEL_VERSION="$REVISION (manually configured)" + fi + fi +fi + + +# Output the header +if x != "x$DEVEL_VERSION" ; then + printf "#define SHOW_EXTRA_INFO\n" > "$HEADER" + printf "#define DEVEL_VERSION \"$DEVEL_VERSION\"\n" >> "$HEADER" +fi
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/build_tools/sif2ico.sh
Added
@@ -0,0 +1,16 @@ +#!/bin/sh + +NAME=`basename "$1" .sif` + +OS=`uname -o` + +if "$OS" == "Cygwin" ; then +GAMMA="-gamma 2.2" +fi + +synfig "$1" -w 16 -h 16 -o "$1-16x16.png" +synfig "$1" -w 32 -h 32 -o "$1-32x32.png" +synfig "$1" -w 48 -h 48 -o "$1-48x48.png" +synfig "$1" -w 64 -h 64 -o "$1-64x64.png" +convert "$1-16x16.png" "$1-32x32.png" "$1-48x48.png" "$1-64x64.png" -background transparent $GAMMA ${NAME}.ico +rm -f "$1-16x16.png" "$1-32x32.png" "$1-48x48.png" "$1-64x64.png"
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/config
Deleted
-(directory)
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/config/ltmain.patch
Added
@@ -0,0 +1,17 @@ +--- ltmain.bak Thu Apr 7 19:12:55 2005 ++++ ltmain.sh Thu Apr 7 19:20:28 2005 +@@ -5362,10 +5362,10 @@ + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. +- if test "$inst_prefix_dir" = "$destdir"; then +- $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 +- exit 1 +- fi ++# if test "$inst_prefix_dir" = "$destdir"; then ++# $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 ++# exit 1 ++# fi + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command.
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/config/package
Added
@@ -0,0 +1,293 @@ +#! /bin/csh -ef +# this file was originally distributed by Apple in the Developer Tools package +#it is distributed under the Apple Open Source License +set version=0.2 +set prog = `/usr/bin/basename $0` +set usage = "Usage: $prog -f root-dir info-file tiff-file -d dest-dir -r resource-dir -traditional | -gnutar -bzip" +set noglob + +if (-x /usr/bin/mkbom) then + set mkbom=/usr/bin/mkbom + set lsbom=/usr/bin/lsbom +else + set mkbom=/usr/etc/mkbom + set lsbom=/usr/etc/lsbom +endif + +if (-x /usr/bin/awk) then + set awk=/usr/bin/awk +else + set awk=/bin/awk +endif +set bzip2=`which bzip2` +set gnutar=/usr/bin/gnutar +set tar=/usr/bin/tar +set pax=/bin/pax + +# gather parameters +if ($#argv == 0) then + echo $usage + exit(1) +endif +unset usebzip +while ( $#argv > 0 ) + switch ( $argv1 ) + case -d: + if ( $?destDir ) then + echo ${prog}: dest-dir parameter already set to ${destDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -d option requires destination directory. + echo $usage + exit(1) + else + set destDir = $argv2 + shift; shift + breaksw + endif + case -f: + if ( $?rootDir ) then + echo ${prog}: root-dir parameter already set to ${rootDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -f option requires package root directory. + echo $usage + exit(1) + else + set rootDir = $argv2 + set fflag + shift; shift + breaksw + endif + case -r: + if ( $?resDir ) then + echo ${prog}: resource-dir parameter already set to ${resDir}. + echo $usage + exit(1) + else if ( $#argv < 2 ) then + echo ${prog}: -r option requires package resource directory. + echo $usage + exit(1) + else + set resDir = $argv2 + shift; shift + breaksw + endif + case -traditional: + echo using standard tar + set usetar + unset usegnutar + unset usepax + breaksw + case -gnutar: + echo using gnutar + set usegnutar + unset usepax + unset usetar + shift + case -bzip: + if (-x $bzip2) then + set usebzip + echo using bzip compression + else + echo COMPRESSION ERROR: You can not use BZIP2 you do not have it installed + exit(1) + endif + shift + breaksw + case -*: + echo ${prog}: Unknown option: $argv1 + echo $usage + exit(1) + case *.info: + if ( $?info ) then + echo ${prog}: info-file parameter already set to ${info}. + echo $usage + exit(1) + else + set info = "$argv1" + shift + breaksw + endif + case *.tiff: + if ( $?tiff ) then + echo ${prog}: tiff-file parameter already set to ${tiff}. + echo $usage + exit(1) + else + set tiff = "$argv1" + shift + breaksw + endif + default: + if ( $?rootDir ) then + echo ${prog}: unrecognized parameter: $argv1 + echo $usage + exit(1) + else + set rootDir = "$argv1" + shift + breaksw + endif + endsw +end + +# check for mandatory parameters +if ( ! $?rootDir ) then + echo ${prog}: missing root-dir parameter. + echo $usage + exit(1) +else if ( ! $?info) then + echo ${prog}: missing info-file parameter. + echo $usage + exit(1) +endif + +# destDir gets default value if unset on command line +if ( $?destDir ) then + /bin/mkdir -p $destDir +else + set destDir = . +endif + +# derive the root name for the package from the root name of the info file +set root = `/usr/bin/basename $info .info` + +# create package directory +set pkg = ${destDir}/${root}.pkg +echo Generating Installer package $pkg ... +if ( -e $pkg ) /bin/rm -rf $pkg +/bin/mkdir -p -m 755 $pkg +/bin/mkdir -p -m 755 $pkg/Contents +/bin/mkdir -p -m 755 $pkg/Contents/Resources +/bin/mkdir -p -m 755 $pkg/Contents/Resources/English.lproj/ +echo "gxpmpkg2" >$pkg/Contents/PkgInfo +chmod 755 $pkg/Contents/PkgInfo +# (gnu)tar/pax and compress root directory to package archive +echo -n " creating package archive ... " +if ( $?fflag ) then + set pkgTop = ${rootDir:t} + set parent = ${rootDir:h} + if ( "$parent" == "$pkgTop" ) set parent = "." +else + set parent = $rootDir + set pkgTop = . +endif +if ( $?usetar ) then + set pkgArchive = $pkg/Contents/Resources/$root.tar.Z + (cd $parent; $tar -w $pkgTop) | /usr/bin/tar -f -c > $pkgArchive +else if ( $?usegnutar ) then + if ( $?usebzip ) then + set pkgArchive = $pkg/Contents/Resources/$root.tar.bz2 + (cd $parent; $gnutar c $pkgTop) | $bzip2 -f -c > $pkgArchive + else + set pkgArchive = $pkg/Contents/Resources/$root.tar.gz + (cd $parent; $gnutar zcf $pkgArchive $pkgTop) + endif +else + set pkgArchive = $pkg/Contents/Resources/$root.pax.gz + (cd $parent; $pax -w -z -x cpio $pkgTop) > $pkgArchive +endif +/bin/chmod 755 $pkgArchive +echo done. + +# copy info file to package +set pkgInfo = $pkg/Contents/Resources/English.lproj/$root.info +echo -n " copying ${info:t} ... " +/bin/cp $info $pkgInfo
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/pkg-info/macosx/studio-resources/install.sh
Added
@@ -0,0 +1,61 @@ +#!/bin/sh +# finish up the installation +# this script should be executed using the sudo command +# this file is copied to synfig-devel.post_install and synfig-devel.post_upgrade +# inside the .pkg bundle +LOGFILE="~/synfig-core_install.log" + +/usr/X11R6/bin/fc-cache +/usr/X11R6/bin/fc-list + +exit 0 + + +umask 022 + +RESOURCE_DIR=`dirname $0` +PREFIX=/usr/local + +cd $RESOURCE_DIR + +echo "Creating synfig-config script" + -d $PREFIX || mkdir $PREFIX + -d $PREFIX/bin || mkdir $PREFIX/bin + -d $PREFIX/include || mkdir $PREFIX/include + -d $PREFIX/lib || mkdir $PREFIX/lib + -d $PREFIX/sbin || mkdir $PREFIX/sbin + +echo "Cleaning up any previous installation" + -d $PREFIX/include/synfig && rm -fr $PREFIX/include/synfig +ln -s /Library/Frameworks/synfig.framework/Headers $PREFIX/include/synfig + +sed ' +s:@exec_prefix@:/usr/local:g; +s:@prefix@:/usr/local:g; +s:@bindir@:$exec_prefix/bin:g; +s:@libdir@:$exec_prefix/lib:g; +s:@includedir@:$prefix/include:g; +s:@VERSION@:@_VERSION_@:g; +s:@PACKAGE@:@_PACKAGE_@:g; +s:@LIBS@::g; +s:@VERSION@:@_VERSION_@:; +s:@PACKAGE@:@_PACKAGE_@:; +s:@CONFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@synfig_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@CONFIG_CFLAGS@:-framework synfig:; +' < $RESOURCE_DIR/synfig-config.in > $PREFIX/bin/synfig-config +chmod 775 $PREFIX/bin/synfig-config + +echo "Precompiling Headers" +#/usr/bin/c++ -precomp /Library/Frameworks/synfig.framework/Headers/synfig.h -o /Library/Frameworks/synfig.framework/Headers/synfig.p + +echo "Moving synfig tool" +cp $RESOURCE_DIR/synfig $PREFIX/bin || exit 1 + +echo "Done with shell script" + + +exit 0 + + +
View file
_service:obs_scm:synfig-1.5.3.obscpio/synfig-studio/pkg-info/macosx/studio-resources/upgrade.sh
Added
@@ -0,0 +1,61 @@ +#!/bin/sh +# finish up the installation +# this script should be executed using the sudo command +# this file is copied to synfig-devel.post_install and synfig-devel.post_upgrade +# inside the .pkg bundle +LOGFILE="~/synfig-core_install.log" + +/usr/X11R6/bin/fc-cache +/usr/X11R6/bin/fc-list + +exit 0 + + +umask 022 + +RESOURCE_DIR=`dirname $0` +PREFIX=/usr/local + +cd $RESOURCE_DIR + +echo "Creating synfig-config script" + -d $PREFIX || mkdir $PREFIX + -d $PREFIX/bin || mkdir $PREFIX/bin + -d $PREFIX/include || mkdir $PREFIX/include + -d $PREFIX/lib || mkdir $PREFIX/lib + -d $PREFIX/sbin || mkdir $PREFIX/sbin + +echo "Cleaning up any previous installation" + -d $PREFIX/include/synfig && rm -fr $PREFIX/include/synfig +ln -s /Library/Frameworks/synfig.framework/Headers $PREFIX/include/synfig + +sed ' +s:@exec_prefix@:/usr/local:g; +s:@prefix@:/usr/local:g; +s:@bindir@:$exec_prefix/bin:g; +s:@libdir@:$exec_prefix/lib:g; +s:@includedir@:$prefix/include:g; +s:@VERSION@:@_VERSION_@:g; +s:@PACKAGE@:@_PACKAGE_@:g; +s:@LIBS@::g; +s:@VERSION@:@_VERSION_@:; +s:@PACKAGE@:@_PACKAGE_@:; +s:@CONFIG_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@synfig_LIBS@:-F/Library/Frameworks/synfig.framework:; +s:@CONFIG_CFLAGS@:-framework synfig:; +' < $RESOURCE_DIR/synfig-config.in > $PREFIX/bin/synfig-config +chmod 775 $PREFIX/bin/synfig-config + +echo "Precompiling Headers" +#/usr/bin/c++ -precomp /Library/Frameworks/synfig.framework/Headers/synfig.h -o /Library/Frameworks/synfig.framework/Headers/synfig.p + +echo "Moving synfig tool" +cp $RESOURCE_DIR/synfig $PREFIX/bin || exit 1 + +echo "Done with shell script" + + +exit 0 + + +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.