termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.33k stars 3.07k forks source link

[Package]: 1) Media Lovin Framework(mlt) 2) Jack1 codebase 3) Jack2 codebase 4) Gmerlin Suite(Tools List: gmerlin, gavl, gmerlin av_decoder, gmerlin_effectv, gmerlin_encoders, lemuria) 5) rtaudio #8294

Closed tathastu871 closed 2 years ago

tathastu871 commented 2 years ago

Package description

Multimedia tools and libs: (Used with ffmpeg, audacity, shotcut)

[Note: Checked/Ticked blocks contains complete and tested build.sh. Their PR can be made by termux developers to include them in official repo]

Home page URL

---------------------------‐-------‐--------------------------------------------- Dependencies: Homepage: mjpegtools rubberband libquicktime speex theora libmpcdec liba52 libmpeg2 libdca x264 libdvdread mad lame FFmpeg faac faad2 libcdio gmerlin-dependencies tap-plugins swh-plugins cmt Ladspa plugins libvisual libcddb libmusicbrainz vorbis libxml libtiff libpng libjpeg gtk-2.4.x flac esound Alsa yasm nasm

Source Code : mjpegtools rubberband libquicktime speex theora libmpcdec liba52 libmpeg2 libdca x264 libdvdread mad lame FFmpeg faac faad2 libcdio gmerlin-dependencies tap-plugins swh-plugins cmt Ladspa plugins libvisual libcddb libmusicbrainz vorbis libxml libtiff libpng libjpeg gtk-2.4.x flac esound Alsa yasm nasm ------------------------------------------‐-------‐------------------------------

Source code URL

1) MLT Framework : https://github.com/mltframework/mlt/archive/refs/tags/v7.2.0.tar.gz 2) rtaudio : https://github.com/thestk/rtaudio/archive/refs/tags/5.2.0.tar.gz 3) Gmerlin a) Gmerlin all in one suite: https://sourceforge.net/projects/gmerlin/files/gmerlin-all-in-one/20120608/gmerlin-all-in-one-20120608.tar.bz2/download b) Gmerlin dependencies all in one tarball: https://sourceforge.net/projects/gmerlin/files/gmerlin-dependencies/20120608/gmerlin-dependencies-20120608.tar.bz2/download 4) Jack audio https://github.com/jackaudio/jack1.git https://github.com/jackaudio/jack2/archive/v1.9.19.tar.gz

Packaging policy acknowledgement

Additional information

Incomplete build scripts given below:

TERMUX_PKG_HOMEPAGE=https://www.mltframework.org/
TERMUX_PKG_DESCRIPTION="Multimedia Framework. Author, manage, and run multitrack audio/video compositions."
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_VERSION=7.2.0
TERMUX_PKG_SRCURL=https://github.com/mltframework/mlt/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=34b737fae61dabddf3ec64477298decb9b2076388ccbda7e50114996b268086d
TERMUX_PKG_DEPENDS="qt5-qtbase, frei0r-plugins, qt5-qtsvg, swig"
TERMUX_PKG_SUGGESTS="doxygen, ffmpeg, ffmpeg-dev, fftw, fftw-static, sdl*, libexif, libexif-static, jack, moveit, libsoxr, sox-static, sox, rtaudio, alsa, rubberband, libsndfile, libsndfile-static, libsamplerate"
TERMUX_PKG_FORCE_CMAKE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DCMAKE_PREFIX=${PREFIX} -DCMAKE_BUILD_TYPE=Release -Wno-dev"
TERMUX_PKG_HOMEPAGE=https://jackaudio.org/
TERMUX_PKG_DESCRIPTION="jack1 codebase"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.0"
TERMUX_PKG_DEPENDS="libdb, ndk-sysroot, libandroid-glob, celt"
TERMUX_PKG_GIT_BRANCH=master
TERMUX_PKG_SRCURL=https://github.com/jackaudio/jack1.git
termux_step_pre_configure() {
    cd ${TERMUX_PKG_SRCDIR} &&
        fgrep 'lpthread' -r | cut -f1 -d ':' | xargs -n1 sed -i 's/-lpthread -lm/-landroid-glob -lm/g'
    sed '/sys\/sem\.h/ s/sys/linux/' ${TERMUX_PKG_SRCDIR}/libjack/shm.c -i
    ${TERMUX_PKG_SRCDIR}/autogen.sh &&
        cd ${TERMUX_PKG_SRCDIR} &&
        autoupdate &&
        LDFLAGS=" -landroid-glob"
    }
TERMUX_PKG_HOMEPAGE=jackaudio.org
TERMUX_PKG_DESCRIPTION=
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE=GPL-2.0
TERMUX_PKG_VERSION=1.9.19
TERMUX_PKG_SRCURL=https://github.com/jackaudio/jack2/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9030f4dc11773351b6ac96affd9c89803a5587ebc1b091e5ff866f433327e4b0
TERMUX_PKG_HOMEPAGE=https://frei0r.dyne.org/
TERMUX_PKG_DESCRIPTION="A large collection of free and portable video plugins"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=1.7.0
TERMUX_PKG_SRCURL=https://github.com/dyne/frei0r/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=6f7cf95ea2257687cc31db0ed9c9bc0eec152e953d515f346eabec048ed2b29d
TERMUX_PKG_DEPENDS="doxygen, freetype, freetype-static"
TERMUX_PKG_SUGGESTS="opencv, libcairo, libcairo-static, gavl"

------------------------------------------‐-------‐------------------------------

TERMUX_PKG_HOMEPAGE=https://www.musepack.net/
TERMUX_PKG_DESCRIPTION="Library to implement ReplayGain standard for audio"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE=LGPL
TERMUX_PKG_VERSION=475
TERMUX_PKG_SRCURL=https://files.musepack.net/source/libreplaygain_r${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482
termux_step_pre_configure() { 
    cd ${TERMUX_PKG_SRCDIR} && autoreconf -vif
}

TERMUX_PKG_HOMEPAGE=http://faac.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Freeware Advanced Audio Coder AAC Decoder"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE=GPL-2.0
TERMUX_PKG_LICENSE_FILE="COPYING"
TERMUX_PKG_VERSION=2.8.6
_VERSION_REAL=$(echo $(cut -d '.' -f1,2 <<< ${TERMUX_PKG_VERSION}).0)
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/faac/files/faad2-src/faad2-${_VERSION_REAL}/faad2-${TERMUX_PKG_VERSION}.tar.gz/download
TERMUX_PKG_SHA256=654977adbf62eb81f4fca00152aca58ce3b6dd157181b9edd7bed687a7c73f21
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--build=aarch64-unknown-linux-gnu"
termux_step_pre_configure() {
    LDFLAGS=" -lm"
}
TERMUX_PKG_HOMEPAGE=http://faac.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Freeware Advanced Audio Coder AAC Enoder"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE=GPL-2.0
TERMUX_PKG_LICENSE_FILE="COPYING"
TERMUX_PKG_VERSION=1.29.9.2
_VERSION_REAL=$(cut -f1,2 -d '.' <<< ${TERMUX_PKG_VERSION})
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/faac/files/faac-src/faac-${_VERSION_REAL}/faac-${TERMUX_PKG_VERSION}.tar.gz/download
TERMUX_PKG_SHA256=d45f209d837c49dae6deebcdd87b8cc3b04ea290880358faecf5e7737740c771
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--build=aarch64-unknown-linux-gnu"
TERMUX_PKG_HOMEPAGE=https://www.videolan.org/developers/libdca.html
TERMUX_PKG_DESCRIPTION="libdca is a free library for decoding DTS"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE="COPYING"
TERMUX_PKG_VERSION=0.0.7
TERMUX_PKG_SRCURL=https://code.videolan.org/videolan/libdca/-/archive/${TERMUX_PKG_VERSION}/libdca-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=758a025db36356d5df829d2204f7aca618c7dfbe1e5d98ab633df33a6e32d61a
TERMUX_PKG_DEPENDS="ndk-sysroot"
termux_step_pre_configure() {
    cd ${TERMUX_PKG_SRCDIR} &&
        sed '/sys\/soundcard.h/ s/sys/linux/' libao/audio_out_oss.c -i
    ${TERMUX_PKG_SRCDIR}/bootstrap
}
TERMUX_PKG_HOMEPAGE=http://schrodinger.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Portable implementation of Dirac"
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.0, MPL-2.0, MIT"
TERMUX_PKG_LICENSE_FILE="COPYING.GPL, COPYING.LGPL, 
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0.0
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/schrodinger/files/schrodinger/${TERMUX_PKG_VERSION}/schroedinger-${TERMUX_PKG_VERSION}.tar.gz/download
TERMUX_PKG_SHA256=1decf7c5f54eafa3944e8ca4e3fd34cb8ae4a648
TERMUX_PKG_DEPENDS="x11-repo, gtk-doc, liboil"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--build=aarch64-unknown-linux-gnu"
xtkoba commented 2 years ago

Please open one issue per package unless they are inseparable from each other.

tathastu871 commented 2 years ago

Mostly packages given here are dependencies of each other. And some packages enhances others defined here. Thats why i have given build.sh so that others can just copy paste to PR. Ticked/Checked scripts are complete and tested so they be added and merged to repo

tathastu871 commented 2 years ago

Errors While Compiling: 1) libvisual : make errors

/data/data/com.termux/files/usr/include/c++/v1/__config:796:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/__config:796:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/cstddef:47:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/type_traits:424:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/limits:124:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/math.h:330:15: error: no type named 'enable_if' in namespace 'std'
/data/data/com.termux/files/usr/include/c++/v1/math.h:330:24: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/cstdlib:97:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/cmath:315:1: error: expected unqualified-id
8 errors generated.
/data/data/com.termux/files/usr/include/c++/v1/cstddef:47:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/type_traits:424:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/limits:124:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/math.h:330:15: error: no type named 'enable_if' in namespace 'std'
/data/data/com.termux/files/usr/include/c++/v1/math.h:330:24: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/cstdlib:97:1: error: expected unqualified-id
/data/data/com.termux/files/usr/include/c++/v1/cstring:66:1: error: expected unqualified-id
8 errors generated.

Help needed

tathastu871 commented 2 years ago

While compiling mjpegtools pthread related errors occur if supress them using #ifndef __android....#endif It thows ld.lld: error: ./.libs/liblavplay.so: undefined reference to pthread_cancel [--no-allow-shlib-undefined] clang-13: error: linker command failed with exit code 1 (use -v to see invocation) Help needed to solve it

tathastu871 commented 2 years ago

Please open one issue per package unless they are inseparable from each other. Seems you have compiled many packages for termux so please Help compiling these packages. i am no programmer.

Since now there is possibility of wxwidgets to be included in termux as PR has already been made by you.

Packages mentioned here are needed to enhance audacity and shotcut like programs if in future these two programs are also available in termux

Randrianasulu commented 2 years ago

While compiling mjpegtools pthread related errors occur if supress them using #ifndef __android....#endif It thows ld.lld: error: ./.libs/liblavplay.so: undefined reference to pthread_cancel [--no-allow-shlib-undefined] clang-13: error: linker command failed with exit code 1 (use -v to see invocation) Help needed to solve it

I used libbthread for compiling mjpegtools as part of Cinelerra-gg.. Used to be part of termux at some time?

https://lists.gnu.org/archive/html/bug-gnulib/2018-05/msg00062.html https://github.com/tux-mind/libbthread

tathastu871 commented 2 years ago

anyone up for adding above mentioned packages in termux repo