38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://sourceware.org/elfutils/
|
|
TERMUX_PKG_DESCRIPTION="ELF object file access library"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.185
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL="https://sourceware.org/elfutils/ftp/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2"
|
|
TERMUX_PKG_SHA256=dc8d3e74ab209465e7f568e1b3bb9a5a142f8656e2b57d10049a73da2ae6b5a6
|
|
# libandroid-support for langinfo.
|
|
TERMUX_PKG_DEPENDS="libandroid-support, zlib, libcurl"
|
|
TERMUX_PKG_BUILD_DEPENDS="argp, zstd, liblzma, libmicrohttpd, libsqlite, libarchive, libbz2"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_c99=yes --disable-symbol-versioning"
|
|
TERMUX_PKG_CONFLICTS="libelf-dev"
|
|
TERMUX_PKG_REPLACES="libelf-dev"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
CXXFLAGS+=" -Wno-unused-const-variable"
|
|
CFLAGS+=" -Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
|
|
|
|
# Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses
|
|
CFLAGS+=" -D__USE_BSD"
|
|
|
|
CFLAGS+=" -DFNM_EXTMATCH=0"
|
|
|
|
if [ "$TERMUX_ARCH" = "arm" ]; then
|
|
CFLAGS="${CFLAGS/-Oz/-O1}"
|
|
fi
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/stdio_ext.h .
|
|
cp $TERMUX_PKG_BUILDER_DIR/obstack.h .
|
|
cp $TERMUX_PKG_BUILDER_DIR/qsort_r.h .
|
|
cp $TERMUX_PKG_BUILDER_DIR/aligned_alloc.c libelf
|
|
cp -r $TERMUX_PKG_BUILDER_DIR/search src/
|
|
|
|
autoreconf -ivf
|
|
}
|