From d8514027af51a4c227e4e52496fca34762c99d81 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 3 May 2020 19:00:38 +0200 Subject: [PATCH] Update documentation and info files --- configure | 68 +++++++++++++++++++++++++++++++++++++++++ desktop/desktop.desktop | 2 +- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 configure diff --git a/configure b/configure new file mode 100644 index 0000000..8fbd09a --- /dev/null +++ b/configure @@ -0,0 +1,68 @@ + + +#this file is sourced by ../configure +#therefore all paths are on that level, not our own. + +#debugsym=true +prefix=/usr/local +required_version_python=3.6 +required_version_pyqt=5.0 +required_version_nuitka=0.6 + + +for arg in "$@"; do + case "$arg" in + --prefix=*) + prefix=`echo $arg | sed 's/--prefix=//'` + ;; + + #--enable-debug) + # debugsym=true;; + #--disable-debug) + # debugsym=false;; + + --help) + echo 'usage: ./configure [options]' + echo 'options:' + echo ' --prefix=: installation prefix' + #echo ' --enable-debug: include debug symbols' + #echo ' --disable-debug: do not include debug symbols' + echo 'all invalid options are silently ignored' + exit 0 + ;; + esac +done + +echo "PREFIX=$prefix" + +echo "Checking Dependencies. No output is good" + +function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } + +command -v python3 >/dev/null 2>&1 || { echo >&2 "Python3 >= $required_version_python is required but it's not installed. Aborting."; exit 1; } +PY3VERSION=$(python3 -c 'import platform; print(platform.python_version())') +if version_gt $required_version_python $PY3VERSION; then echo "Python3 must be version >= $required_version_python but is $PY3VERSION. Aborting."; exit 1; fi + +python3 -c 'import PyQt5' >/dev/null 2>&1 || { echo >&2 "PyQt for Python3 >= $required_version_pyqt is required but it's not installed. Aborting."; exit 1; } +PYQTVERSION=$(python3 -c 'from PyQt5.QtCore import QT_VERSION_STR; print(QT_VERSION_STR)') +if version_gt $required_version_pyqt $PYQTVERSION; then echo "PyQt must be version >= $required_version_pyqt but is $PYQTVERSION. Aborting."; exit 1; fi + +command -v nuitka3 >/dev/null 2>&1 || { echo >&2 "Nuitka3 is required but it's not installed. Aborting."; exit 1; } +NUITKAVERSION=$(python3 -c 'import nuitka.Version; print(nuitka.Version.getNuitkaVersion())') +if version_gt $required_version_nuitka $NUITKAVERSION; then echo "Nuitka3 must be version >= $required_version_nuitka but is $NUITKAVERSION. Aborting."; exit 1; fi + +echo "Sub-Configure for calfbox" +set -e +#We need to be in the directory, +cd template/calfbox && ./autogen.sh && ./configure --prefix=$(pwd)/../../site-packages --without-ncurses --without-python --without-libusb $cboxconfigure > /dev/null +cd ../.. + +echo "generating makefile" +printf "PREFIX=$prefix\nPROGRAM=$program\nVERSION=$version\n" >Makefile + +#if $debugsym; then +# echo 'dbg = -g' >>Makefile +#fi +cat template/Makefile.in >>Makefile + +echo 'configuration complete, type make to build.' diff --git a/desktop/desktop.desktop b/desktop/desktop.desktop index 6018c3c..d5435e9 100644 --- a/desktop/desktop.desktop +++ b/desktop/desktop.desktop @@ -6,5 +6,5 @@ Exec=argodejo Icon=argodejo Terminal=false StartupNotify=false -Version=0.1 +Version=1.0 Categories=AudioVideo;Audio;X-Recorders;X-Multitrack;X-Jack;