1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/java/java-getopt/Makefile
Baptiste Daroussin 5d908e6e7d Change DESTDIRNAME into a ant compatible argument when a port is staged
While here remove previous workarounds.

Submitted by:	ale
Discussed with:	jkim, glewis
2013-11-12 10:36:16 +00:00

52 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= java-getopt
PORTVERSION= 1.0.14
CATEGORIES= java devel
MASTER_SITES= http://www.urbanophile.com/arenn/hacking/getopt/
MAINTAINER= ports@FreeBSD.org
COMMENT= Java version of GNU getopt family functions
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
USE_JAVA= yes
USE_ANT= yes
ALL_TARGET= jar
NO_WRKSUBDIR= yes
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
OTHERDOCS= COPYING.LIB ChangeLog README
PORTDOCS= api ${OTHERDOCS}
ALL_TARGET+= javadoc
.endif
post-extract:
@${CP} ${WRKSRC}/gnu/getopt/buildx.xml ${WRKSRC}/build.xml
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/build/lib/gnu.getopt.jar \
${STAGEDIR}/${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [ DONE ]"
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${STAGEDIR}/${DOCSDIR}/api
@cd ${WRKSRC}/build/ && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} \
${STAGEDIR}/${DOCSDIR} > /dev/null 2>&1
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/gnu/getopt/,} \
${STAGEDIR}/${DOCSDIR}/
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>