openbsd-ports/devel/apache-ant/Makefile
2013-04-28 16:34:53 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2013/04/28 16:34:53 jasper Exp $
COMMENT= build tool for java applications
DISTNAME= apache-ant-1.8.4
CATEGORIES= devel
HOMEPAGE= http://ant.apache.org/
# Apache Software License 2.0 &
# W3C Consortium License (August 14 1998)
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_APACHE:=ant/binaries/} \
http://archive.apache.org/dist/ant/binaries/
EXTRACT_SUFX= -bin.tar.bz2
MODULES= java
MODJAVA_VER= 1.6+
RUN_DEPENDS= java/javaPathHelper
NO_BUILD= Yes
NO_TEST= Yes
ANTHOME= ${PREFIX}/ant
ANTDOCS= ${PREFIX}/share/doc/java/ant
TXT= LICENSE NOTICE README WHATSNEW
do-install:
@${INSTALL_DATA_DIR} ${ANTHOME}/bin
.for i in ant antRun runant.pl
@${INSTALL_SCRIPT} ${WRKDIST}/bin/$i ${ANTHOME}/bin
@ln -s ${TRUEPREFIX}/ant/bin/$i ${PREFIX}/bin/$i
.endfor
@${INSTALL_DATA_DIR} ${ANTDOCS}
@cp -Rp ${WRKDIST}/manual/* ${ANTDOCS}
@chown -R ${SHAREOWN}:${SHAREGRP} ${ANTDOCS}
@cd ${WRKDIST} && ${INSTALL_DATA} ${TXT} ${ANTDOCS}
@${INSTALL_DATA_DIR} ${ANTHOME}/lib
@cd ${WRKDIST}/lib && ${INSTALL_DATA} *.jar ${ANTHOME}/lib
.include <bsd.port.mk>