termux-packages/packages/gpac/build.sh

36 lines
1.2 KiB
Bash
Raw Normal View History

2022-01-05 22:45:50 +01:00
TERMUX_PKG_HOMEPAGE=https://gpac.wp.imt.fr/
TERMUX_PKG_DESCRIPTION="An open-source multimedia framework focused on modularity and standards compliance"
2022-04-08 04:24:24 +02:00
# License: LGPL-2.1-or-later
2022-01-05 22:45:50 +01:00
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
2022-04-08 04:24:24 +02:00
TERMUX_PKG_VERSION=2.0.0
TERMUX_PKG_SRCURL=https://github.com/gpac/gpac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c820386f9d583c740fc3f57cb93864a8164838516dabc96de2f61d5b7429e0b6
TERMUX_PKG_DEPENDS="ffmpeg, freetype, liba52, libjpeg-turbo, liblzma, libmad, libnghttp2, libpng, libtheora, libvorbis, openjpeg, openssl, pulseaudio, xvidcore, zlib"
TERMUX_PKG_BUILD_DEPENDS="libogg"
2022-01-05 22:45:50 +01:00
TERMUX_PKG_EXTRA_MAKE_ARGS="STRIP=:"
2022-01-14 21:42:54 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-x11"
2022-01-05 22:45:50 +01:00
termux_step_pre_configure() {
CFLAGS+=" -fPIC"
for f in $CFLAGS $CPPFLAGS; do
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --extra-cflags=$f"
done
for f in $LDFLAGS; do
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --extra-ldflags=$f"
done
2022-04-08 04:24:24 +02:00
_NEED_DUMMY_LIBPTHREAD_A=
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
if [ ! -e $_LIBPTHREAD_A ]; then
_NEED_DUMMY_LIBPTHREAD_A=true
echo '!<arch>' > $_LIBPTHREAD_A
fi
}
termux_step_post_make_install() {
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
rm -f $_LIBPTHREAD_A
fi
2022-01-05 22:45:50 +01:00
}