~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pango: Update from 1.40.13 to 1.42.0
[termux-packages]
/
packages
/
elfutils
/
build.sh
diff --git
a/packages/elfutils/build.sh
b/packages/elfutils/build.sh
index
18e6435
..
bd6f28b
100644
(file)
--- a/
packages/elfutils/build.sh
+++ b/
packages/elfutils/build.sh
@@
-1,48
+1,46
@@
-TERMUX_PKG_VERSION=0.166
-TERMUX_PKG_HOMEPAGE=https://fedorahosted.org/elfutils/
+TERMUX_PKG_HOMEPAGE=https://sourceware.org/elfutils/
TERMUX_PKG_DESCRIPTION="ELF object file access library"
TERMUX_PKG_DESCRIPTION="ELF object file access library"
-TERMUX_PKG_SRCURL=https://fedorahosted.org/releases/e/l/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2
+TERMUX_PKG_VERSION=0.170
+TERMUX_PKG_SHA256=1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066
+TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/elfutils/${TERMUX_PKG_VERSION}/elfutils-${TERMUX_PKG_VERSION}.tar.bz2
# libandroid-support for langinfo.
TERMUX_PKG_DEPENDS="libandroid-support, liblzma, libbz2"
# libandroid-support for langinfo.
TERMUX_PKG_DEPENDS="libandroid-support, liblzma, libbz2"
+TERMUX_PKG_CLANG=no
# Use "eu-" as program prefix to avoid conflict with binutils programs.
# This is what several linux distributions do.
# Use "eu-" as program prefix to avoid conflict with binutils programs.
# This is what several linux distributions do.
-TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--program-prefix='eu-'"
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--program-prefix='eu-'
+--disable-symbol-versioning"
# The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar"
# The ar.c file is patched away for now:
TERMUX_PKG_RM_AFTER_INSTALL="bin/eu-ar"
-LDFLAGS+=" -lintl"
-
CFLAGS+=" -DTERMUX_EXPOSE_MEMPCPY=1
-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
+termux_step_pre_configure() {
+
CFLAGS+="
-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error"
-# Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses:
-CFLAGS+=" -D__USE_BSD"
+
# Exposes ACCESSPERMS in <sys/stat.h> which elfutils uses:
+
CFLAGS+=" -D__USE_BSD"
-termux_step_pre_configure () {
- # Install argp lib.
- ARGP_FILE=$TERMUX_PKG_CACHEDIR/argp-standalone.1.3.tar.gz
- if [ ! -f $ARGP_FILE ]; then
- curl -o $ARGP_FILE http://www.lysator.liu.se/~nisse/archive/argp-standalone-1.3.tar.gz
- fi
+ CFLAGS+=" -DFNM_EXTMATCH=0"
- cd $TERMUX_PKG_TMPDIR
- tar xf $ARGP_FILE
- cd argp-standalone-1.3
- ./configure --host=$TERMUX_HOST_PLATFORM
-
mak
e
+ # Install argp lib.
+ ARGP_FILE=$TERMUX_PKG_CACHEDIR/argp-standalone.1.3.tar.gz
+ termux_download http://www.lysator.liu.se/~nisse/archive/argp-standalone-1.3.tar.gz \
+ $ARGP_FILE \
+
dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8b
e
- cp $TERMUX_PKG_BUILDER_DIR/error.h .
- cp $TERMUX_PKG_BUILDER_DIR/stdio_ext.h .
- cp $TERMUX_PKG_BUILDER_DIR/obstack.h .
- cp $TERMUX_PKG_BUILDER_DIR/qsort_r.h .
+ cd $TERMUX_PKG_TMPDIR
+ tar xf $ARGP_FILE
+ cd argp-standalone-1.3
+ ORIG_CFLAGS="$CFLAGS"
+ CFLAGS+=" -std=gnu89"
+ ./configure --host=$TERMUX_HOST_PLATFORM
+ make
+ CFLAGS="$ORIG_CFLAGS"
- LDFLAGS+=" -L$TERMUX_PKG_TMPDIR/argp-standalone-1.3"
- CPPFLAGS+=" -isystem $TERMUX_PKG_TMPDIR/argp-standalone-1.3"
-}
-
-#termux_step_post_make_install () {
-#make install-includeHEADERS
-#}
+ cp $TERMUX_PKG_BUILDER_DIR/error.h .
+ cp $TERMUX_PKG_BUILDER_DIR/stdio_ext.h .
+ cp $TERMUX_PKG_BUILDER_DIR/obstack.h .
+ cp $TERMUX_PKG_BUILDER_DIR/qsort_r.h .
-termux_step_post_massage () {
- # Remove to avoid spurios linking to libelf (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=10648):
- rm -f $TERMUX_PREFIX/lib/libelf*
+ LDFLAGS+=" -L$TERMUX_PKG_TMPDIR/argp-standalone-1.3"
+ CPPFLAGS+=" -isystem $TERMUX_PKG_TMPDIR/argp-standalone-1.3"
}
}