distribution/packages/devel/apache-ant/package.mk

41 lines
1.2 KiB
Makefile
Raw Normal View History

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"
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"
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() {
(
export JAVA_HOME=$(get_build_dir jdk-zulu)
2022-02-05 14:23:32 +00:00
### Work around for down/missing ftp server.
2023-02-22 12:55:57 +00:00
TMPCACHE="${ROOT}/.ant/tempcache"
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
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}
}