mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
9c152ae646
- bsd.java.mk 2.0 compliant - added 'devel' category - Build from source - Install documentation Approved by: glewis (mentor)
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Ports collection makefile for: java-getopt
|
|
# Date created: Apr 7, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= getopt
|
|
PORTVERSION= 1.0.10
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ftp://ftp.urbanophile.com/pub/arenn/software/sources/
|
|
PKGNAMEPREFIX= java-
|
|
DISTNAME= ${PKGNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java version of GNU getopt family functions
|
|
|
|
USE_JAVA= yes
|
|
USE_ANT= yes
|
|
ALL_TARGETS= jar
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
.if !defined(NOPORTDOCS)
|
|
OTHERDOCS= COPYING.LIB ChangeLog README
|
|
PORTDOCS= api ${OTHERDOCS}
|
|
ALL_TARGETS+= javadoc
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${WRKSRC}/gnu/getopt/buildx.xml ${WRKSRC}/build.xml
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/build/lib/gnu.getopt.jar ${JAVAJARDIR}/${PORTNAME}.jar
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${DOCSDIR}/api
|
|
@cd ${WRKSRC}/build/ && ${FIND} api \
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/gnu/getopt/,} ${DOCSDIR}/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|