Blame docker-builder-data/build/script/packet/synfigcore-master.sh

ce0d6b
# automake
ce0d6b
# intltool
ce0d6b
# libdb-dev        - libdb already installed - required
ce0d6b
# bzip2            - required
ce0d6b
# libasound2-dev   - required 
ce0d6b
# libffi-dev       - libffi5 already installed - glib
ce0d6b
# libdbus-1-dev    - atspi2
ce0d6b
# libxtst-dev      - atspi2
ce0d6b
ce0d6b
# uuid-dev         - libuuid1 already installed - gilib via libmount-dev
ce0d6b
# libpciaccess-dev - libpciaccess0 already installed
ce0d6b
ce0d6b
# libncurses-dev   - gettext
ce0d6b
# libtinfo-dev     - gettext
ce0d6b
# libunistring-dev - gettext
ce0d6b
ce0d6b
# libjasper-dev
ce0d6b
# libdirectfb-dev
ce0d6b
# python-dev
ce0d6b
ce0d6b
# libxml-parser-perl
ce0d6b
ce0d6b
ce0d6b
ce0d6b
# +	jpeg
ce0d6b
# +	tiff
ce0d6b
#  	glib         - from glibmm
ce0d6b
# 	harfbuzz     - not used in core - pango
ce0d6b
# 	fontconfig   - from the system
ce0d6b
#	pixman       - from cairo
ce0d6b
# +	cairo
ce0d6b
# +	pango        - also from cairo
ce0d6b
#   croco        - not used in core - for gettext
ce0d6b
# +	jack
ce0d6b
# 	mesa         - opengl not used in this build 
ce0d6b
# 	sigcpp       - from glibmm
ce0d6b
# +	glibmm
ce0d6b
# +	xmlpp
ce0d6b
# +	mlt
ce0d6b
# +	imagemagick
ce0d6b
#   ogg          - not used in core - ffmpeg, vorbis, theora
ce0d6b
#   vorbis       - not used in core - ffmpeg
ce0d6b
#   samplerate   - not used in core - mlt
ce0d6b
#   sox          - not used in core - mlt
ce0d6b
#   lame         - not used in core - ffmpeg
ce0d6b
#   theora       - not used in core - ffmpeg
ce0d6b
#   x264         - not used in core - ffmpeg
ce0d6b
#   faac         - not used in core - mlt
ce0d6b
#   yasm         - not used in core - ffmpeg
ce0d6b
# + ffmpeg
ce0d6b
#   sdl          - not used in core - ffmpeg, mlt
ce0d6b
# +	fftw
ce0d6b
# +	boost
ce0d6b
# . m4           - from autoconf 
ce0d6b
# . autoconf     - from automake
ce0d6b
# . automake     - from intltool 
ce0d6b
# . tool (libtool) - from the system
ce0d6b
# . gettext      - from intltool 
ce0d6b
# . intltool      - from the system
ce0d6b
ce0d6b
DEPS=" \
ce0d6b
 synfigetl-master \
efc424
 jpeg-9b tiff-4.0.6 fftw-3.3.5 imagemagick-6.8.7 \
efc424
 ffmpeg-3.1.5 mlt-6.2.0 \
6a65b0
 boost-1.61.0 cairo-1.15.4 pango-1.40.3 "
c35e3a
DEPS_NATIVE="libtool-2.4.6"
ce0d6b
6a65b0
if [ "$PLATFORM" = "win" ]; then
6a65b0
    DEPS="$DEPS glibmm-2.50.0 xmlpp-2.40.1"
6a65b0
else
6a65b0
    DEPS="$DEPS glibmm-2.41.4 xmlpp-2.22.0"
6a65b0
fi
6a65b0
3b09af
if [ "$PLATFORM" = "linux" ]; then
3b09af
    DEPS="$DEPS jack-0.125.0"
efc424
fi
efc424
ce0d6b
PK_DIRNAME="synfig"
ce0d6b
PK_URL="https://github.com/synfig/$PK_DIRNAME.git"
980907
PK_GIT_OPTIONS="--branch testing"
99b145
PK_LICENSE_FILES="synfig-core/AUTHORS synfig-core/README"
ce0d6b
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
ce0d6b
ce0d6b
pkbuild() {
3b09af
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core" || return 1
3b09af
    if ! check_packet_function $NAME build.configure; then
3b09af
        libtoolize --ltdl --copy --force || return 1
3b09af
        autoreconf --install --force || return 1
3b09af
        ./configure \
3b09af
            --host=$HOST \
3b09af
            --prefix=$INSTALL_PACKET_DIR \
3b09af
            --sysconfdir=$INSTALL_PACKET_DIR/etc \
3b09af
            --with-boost-libdir=$ENVDEPS_PACKET_DIR/lib \
6c6ca0
            --without-opengl \
6c6ca0
           || return 1
3b09af
        set_done $NAME build.configure
3b09af
    fi
3b09af
    make -j${THREADS} || return 1
ce0d6b
}
ce0d6b
ce0d6b
pkinstall() {
ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core"
ce0d6b
    if ! make install; then
ce0d6b
        return 1
ce0d6b
    fi
ce0d6b
}