1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/devel/libvirt-java/Makefile
2014-03-12 20:11:00 +00:00

52 lines
1.1 KiB
Makefile

# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= libvirt-java
PORTVERSION= 0.5.1
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= http://libvirt.org/sources/java/ \
ftp://libvirt.org/libvirt/java/
MAINTAINER= jgh@FreeBSD.org
COMMENT= Java bindings for Libvirt virtualization API
LICENSE= MIT
LIB_DEPENDS= libvirt.so:${PORTSDIR}/devel/libvirt
BUILD_DEPENDS= jna>=4.0:${PORTSDIR}/devel/jna \
junit>=4.8.2:${PORTSDIR}/java/junit
USE_JAVA= YES
JAVA_VERSION= 1.6+
USE_ANT= YES
ALL_TARGET= jar
PLIST_FILES= %%JAVAJARDIR%%/libvirt-${PORTVERSION}.jar
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/java|${JAVAJARDIR}|' \
${WRKSRC}/build.properties
post-build-script:
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC} && \
${ANT} docs
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/target/libvirt-${PORTVERSION}.jar \
${STAGEDIR}${JAVAJARDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/target/javadoc && \
${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>