PACKAGES_PATH=$HOME/synfig-packages # path where to write packages files
PACKAGES_BUILDROOT=/tmp/synfig-buildroot # path of for build infrastructure
+MAKE_THREADS=2 #count of threads for make
# full = clean, configure, make
# standart = configure, make
cd libsigc++-${LIBSIGCPP}
#make clean || true
./configure --prefix=${PREFIX}/ --includedir=${PREFIX}/include --disable-static --enable-shared
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd glibmm-${GLIBMM}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared --disable-fulldocs
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd libxml++-${LIBXMLPP}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
--without-openexr
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd glew
#[[ $DOCLEAN == 1 ]] && make clean || true
sed -i -e 's/\r//g' config/config.guess
- make -j2
+ make -j$MAKE_THREADS
make install GLEW_DEST=${PREFIX} libdir=/lib bindir=/bin includedir=/include
cd ..
popd
cd cairomm-${CAIROMM}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared --enable-docs=no
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
fi
cd gtkmm-${GTKMM}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared --disable-examples --disable-demos --disable-docs
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd freeglut-${FREEGLUT}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --disable-warnings --enable-shared
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd unix
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared --with-gl-inc=${PREFIX}/include --with-gl-lib=${PREFIX}/lib --with-glut-inc=${PREFIX}/include --with-glut-lib=${PREFIX}/lib --with-x
- make all -j2
+ make all -j$MAKE_THREADS
make install
cd ..
popd
cd gtkglext-${GTKGLEXT}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-gtk-doc --disable-static --enable-shared
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
cd gtkglextmm-${GTKGLEXTMM}
#[[ $DOCLEAN == 1 ]] && make clean || true
./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-dependency-tracking --disable-static --enable-shared
- make -j2
+ make -j$MAKE_THREADS
make install
popd
cd ..
[ ! -d git-${GITVERSION} ] && tar -xjf git-${GITVERSION}.tar.bz2
cd git-${GITVERSION}
./configure
- make -j2
+ make -j$MAKE_THREADS
make install
cd ..
popd
/bin/sh ./configure --prefix=${PREFIX} --includedir=${PREFIX}/include $DEBUG
fi
-make -j2
+make -j$MAKE_THREADS
make install
popd
# export LDFLAGS=''
#fi
-make -j2
+make -j$MAKE_THREADS
make install
popd
/bin/sh ./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --disable-static --enable-shared $DEBUG
fi
-make -j2
+make -j$MAKE_THREADS
make install
for n in AUTHORS COPYING NEWS README
if [[ `cat /etc/chroot.id` == "Synfig Packages Buildroot" ]]; then
echo "We are in chroot now."
- echo "[user]" > $HOME/.gitconfig
- echo "email = packages@synfig.org" >> $HOME/.gitconfig
- echo "name = Synfig Packager" >> $HOME/.gitconfig
+ echo "[user]" > /root/.gitconfig
+ echo "email = packages@synfig.org" >> /root/.gitconfig
+ echo "name = Synfig Packager" >> /root/.gitconfig