2019-12-31 01:43:11 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.xvid.com/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="High performance and high quality MPEG-4 library"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2019-12-31 01:43:11 +01:00
|
|
|
TERMUX_PKG_VERSION=1.3.7
|
|
|
|
TERMUX_PKG_SHA256=abbdcbd39555691dd1c9b4d08f0a031376a3b211652c0d8b3b8aa9be1303ce2d
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="xvidcore-dev"
|
|
|
|
TERMUX_PKG_REPLACES="xvidcore-dev"
|
2019-12-31 01:43:11 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://downloads.xvid.com/downloads/xvidcore-$TERMUX_PKG_VERSION.tar.gz
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2015-07-01 00:56:09 +02:00
|
|
|
rm -f $TERMUX_PREFIX/lib/libxvid*
|
2015-06-13 01:03:31 +02:00
|
|
|
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_BUILDDIR/build/generic
|
|
|
|
export TERMUX_PKG_SRCDIR=$TERMUX_PKG_BUILDDIR
|
2016-03-25 02:38:17 +01:00
|
|
|
|
|
|
|
if [ $TERMUX_ARCH = i686 ]; then
|
|
|
|
# Avoid text relocations:
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-assembly"
|
|
|
|
fi
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|
|
|
|
|