|
|
ce0d6b |
# jasper - from gdkpixbuf | jpeg, freeglut
|
|
|
ce0d6b |
# atspi2 - from atspi2atk | glib
|
|
|
ce0d6b |
# gobjectintrospection - from gdkpixbuf | glib
|
|
|
ce0d6b |
|
|
|
ce0d6b |
# atk - from gtk | glib
|
|
|
ce0d6b |
# atspi2atk - from gtk | atk, atspi2
|
|
|
ce0d6b |
# gdkpixbuf - from gtk | jpeg, png, tiff, jasper, glib, gobjectintrospection
|
|
|
c5973d |
# rsvg - from gtk,adwa..| xml, gdkpixbuf, cairo, pango
|
|
|
ce0d6b |
|
|
|
ce0d6b |
# gtk - from gtkmm | epoxy, rsvg, atk, atspi2atk, gdkpixbuf, cairo, pango
|
|
|
ce0d6b |
# atkmm - from gtkmm | atk, glibmm
|
|
|
ce0d6b |
# cairomm - from gtkmm | cairo, sigcpp
|
|
|
ce0d6b |
# pangomm - from gtkmm | pango, glibmm, cairomm
|
|
|
ce0d6b |
|
|
|
ce0d6b |
# synfigcore | -
|
|
|
ce0d6b |
# gtkmm | gtk, atkmm, cairomm, pangomm
|
|
|
54782b |
# adwaitaicons | gtk, rsvg
|
|
|
54782b |
# gnomethemes | gtk, rsvg
|
|
|
ce0d6b |
|
|
|
8026a9 |
DEPS="synfigcore-master gtkmm-3.22.0"
|
|
|
c35e3a |
DEPS_NATIVE="libtool-2.4.6 synfigcore-master"
|
|
|
ce0d6b |
|
|
|
132b2e |
if [ "$PLATFORM" = "linux" ]; then
|
|
|
132b2e |
DEPS="$DEPS jack-0.125.0"
|
|
|
132b2e |
fi
|
|
|
132b2e |
|
|
|
ce0d6b |
PK_DIRNAME="synfig"
|
|
|
ce0d6b |
PK_URL="https://github.com/synfig/$PK_DIRNAME.git"
|
|
|
f26837 |
PK_GIT_CHECKOUT="origin/testing"
|
|
|
ce0d6b |
PK_CPPFLAGS="-std=c++11"
|
|
|
4d9b8b |
|
|
|
4d9b8b |
# put COPYING to front for license agreement page of NSIS installer
|
|
|
4d9b8b |
PK_LICENSE_FILES="synfig-studio/COPYING synfig-studio/README synfig-studio/AUTHORS"
|
|
|
ce0d6b |
|
|
|
99b145 |
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
|
|
|
ce0d6b |
|
|
|
183b24 |
pkhook_version() {
|
|
|
183b24 |
cat "$PK_DIRNAME/synfig-studio/configure.ac" \
|
|
|
c6496b |
| egrep "AC_INIT\(\[Synfig Studio\],"| sed "s|.*Studio\],\[||" | sed "s|\],\[.*||" \
|
|
|
183b24 |
|| return 1
|
|
|
183b24 |
}
|
|
|
183b24 |
|
|
|
ce0d6b |
pkbuild() {
|
|
|
3ec770 |
cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-studio" || return 1
|
|
|
3ec770 |
if ! check_packet_function $NAME build.configure; then
|
|
|
3ec770 |
./bootstrap.sh || return 1
|
|
|
3ec770 |
./configure \
|
|
|
3ec770 |
--host=$HOST \
|
|
|
3ec770 |
--prefix=$INSTALL_PACKET_DIR \
|
|
|
3ec770 |
--sysconfdir=$INSTALL_PACKET_DIR/etc \
|
|
|
5bc671 |
$PK_CONFIGURE_OPTIONS \
|
|
|
5bc671 |
|| return 1
|
|
|
3ec770 |
set_done $NAME build.configure
|
|
|
3ec770 |
fi
|
|
|
a4ce59 |
make -j${THREADS} || make || make || return 1
|
|
|
ce0d6b |
}
|
|
|
ce0d6b |
|
|
|
ce0d6b |
pkinstall() {
|
|
|
ce0d6b |
cd "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-studio"
|
|
|
ce0d6b |
if ! make install; then
|
|
|
ce0d6b |
return 1
|
|
|
ce0d6b |
fi
|
|
|
94cef0 |
|
|
|
3ec770 |
cd "$INSTALL_PACKET_DIR"
|
|
|
a8518c |
|
|
|
a8518c |
# configuration
|
|
|
a8518c |
if [ "$PLATFORM" = "win" ]; then
|
|
|
a8518c |
mv "share/pixmaps/synfigstudio/"* "share/pixmaps/"
|
|
|
a8518c |
mkdir -p "share/gtk-3.0"
|
|
|
1c8182 |
cp "$BUILD_PACKET_DIR/$PK_DIRNAME/autobuild/gtk-3.0/settings.ini" "share/gtk-3.0/" || return 1
|
|
|
a8518c |
mkdir -p "lib/gdk-pixbuf-2.0/2.10.0"
|
|
|
a8518c |
cp "$FILES_PACKET_DIR/loaders.cache" "lib/gdk-pixbuf-2.0/2.10.0/" || return 1
|
|
|
a8518c |
fi
|
|
|
94cef0 |
|
|
|
21fb9b |
# add examples
|
|
|
21fb9b |
cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME/synfig-core/examples" "$INSTALL_PACKET_DIR/share/synfig/" || return 1
|
|
|
21fb9b |
|
|
|
ece819 |
# copy system libraries
|
|
|
ece819 |
if [ "$PLATFORM" = "win" ]; then
|
|
|
ece819 |
local TARGET="$INSTALL_PACKET_DIR/bin/"
|
|
|
31c087 |
|
|
|
31c087 |
local LOCAL_DIR="/usr/local/$HOST/sys-root/$HOST/lib/"
|
|
|
31c087 |
cp "$LOCAL_DIR"/libgcc*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libstdc*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libquadmath*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libgfortran*.dll "$TARGET" || return 1
|
|
|
31c087 |
|
|
|
31c087 |
local LOCAL_DIR="/usr/local/$HOST/sys-root/bin/"
|
|
|
31c087 |
cp "$LOCAL_DIR"/libwinpthread*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libgettextlib*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libintl*.dll "$TARGET" || return 1
|
|
|
31c087 |
cp "$LOCAL_DIR"/libiconv*.dll "$TARGET" || return 1
|
|
|
ece819 |
else
|
|
|
ece819 |
local TARGET="$INSTALL_PACKET_DIR/lib/"
|
|
|
31c087 |
copy_system_gcc_libs "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libudev "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libdb "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libpcre "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libdirect "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libfusion "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libbz2 "$TARGET" || return 1
|
|
|
31c087 |
copy_system_lib libselinux "$TARGET" || return 1
|
|
|
ece819 |
fi
|
|
|
ece819 |
}
|
|
|
ece819 |
|
|
|
ece819 |
pkhook_postlicense() {
|
|
|
ece819 |
local TARGET="$LICENSE_PACKET_DIR"
|
|
|
ece819 |
if [ "$PLATFORM" = "win" ]; then
|
|
|
ece819 |
local LOCAL_DIR="/usr/$HOST/sys-root/mingw/bin/"
|
|
|
31c087 |
copy_system_license gcc "$TARGET" || return 1
|
|
|
31c087 |
copy_system_license mingw-w64 "$TARGET" || return 1
|
|
|
31c087 |
copy_system_license gettext "$TARGET" || return 1
|
|
|
31c087 |
copy_system_license iconv "$TARGET" || return 1
|
|
|
ece819 |
else
|
|
|
b16af1 |
copy_system_license gcc "$TARGET" || return 1
|
|
|
94cef0 |
copy_system_license libudev "$TARGET" || return 1
|
|
|
94cef0 |
copy_system_license libdb "$TARGET" || return 1
|
|
|
94cef0 |
copy_system_license libpcre "$TARGET" || return 1
|
|
|
94cef0 |
copy_system_license libdirectfb "$TARGET" || return 1
|
|
|
94cef0 |
copy_system_license libbz2 "$TARGET" || return 1
|
|
|
b93340 |
copy_system_license libselinux "$TARGET" || return 1
|
|
|
ece819 |
fi
|
|
|
ce0d6b |
}
|