2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2019-present Peter Vicman (peter.vicman@gmail.com)
|
|
|
|
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="apache-ant"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="1.10.14"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="Apache License 2.0"
|
|
|
|
PKG_SITE="https://ant.apache.org/"
|
|
|
|
PKG_URL="https://archive.apache.org/dist/ant/source/${PKG_NAME}-${PKG_VERSION}-src.tar.xz"
|
2022-12-29 23:27:25 +00:00
|
|
|
PKG_DEPENDS_HOST="jdk-zulu:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="Apache Ant is a Java library and command-line tool that help building software."
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
make_host() {
|
|
|
|
(
|
2022-12-29 23:27:25 +00:00
|
|
|
export JAVA_HOME=$(get_build_dir jdk-zulu)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-22 12:22:43 +00:00
|
|
|
### Work around for down/missing ftp server.
|
2023-02-22 12:55:57 +00:00
|
|
|
TMPCACHE="${ROOT}/.ant/tempcache"
|
2023-02-22 12:22:43 +00:00
|
|
|
if [ ! -d "${TMPCACHE}" ]
|
|
|
|
then
|
|
|
|
mkdir -p ${TMPCACHE}
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e "${TMPCACHE}/NetRexx.zip" ]
|
|
|
|
then
|
2023-02-22 12:55:57 +00:00
|
|
|
curl -Lo ${TMPCACHE}/NetRexx.zip https://public.dhe.ibm.com/software/awdtools/netrexx/NetRexx.zip
|
2023-02-22 12:22:43 +00:00
|
|
|
fi
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
./bootstrap.sh
|
2023-02-22 12:55:57 +00:00
|
|
|
./bootstrap/bin/ant -f fetch.xml -Ddest=optional -Dtemp.dir=${TMPCACHE}
|
2022-02-05 14:23:32 +00:00
|
|
|
./build.sh -Ddist.dir=${PKG_BUILD}/binary dist
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
|
|
|
mkdir -p ${TOOLCHAIN}/bin
|
|
|
|
cp binary/bin/ant ${TOOLCHAIN}/bin
|
|
|
|
cp -r binary/lib ${TOOLCHAIN}
|
|
|
|
}
|