freebsd-ports/java/sigar/Makefile
Mark Linimon bf43557044 For ports that are marked BROKEN on armv6, and also fail to build on
armv7, mark them so.

This is part two of a multipart commit to bring armv7 ports to parity
with armv6.

Approved by:	portmgr (tier-2 blanket)
Obtained from:	lonesome.com -exp run
2017-11-30 06:13:34 +00:00

67 lines
1.6 KiB
Makefile

# Created by: Tom Judge <tj@FreeBSD.org>
# $FreeBSD$
PORTNAME= sigar
PORTVERSION= 1.7.3
PORTREVISION= 5
CATEGORIES= java devel
PKGNAMEPREFIX= java-
MAINTAINER= tj@FreeBSD.org
COMMENT= Java bindings for the Sigar system information API
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/NOTICE
BUILD_DEPENDS= ${ANT_CMD}:devel/apache-ant
LIB_DEPENDS= libsigar.so:devel/sigar
BROKEN_armv6= fails to compile: jni-build.xml: gcc failed with return code 1
BROKEN_armv7= fails to compile: jni-build.xml: gcc failed with return code 1
USE_GITHUB= yes
GH_ACCOUNT= amishHammer
GH_TAGNAME= b5af695
USES= perl5
USES_PERL5= build
USE_JAVA= yes
JAVA_RUN= yes
USE_GCC= any
NO_CCACHE= yes
ANT_CMD?= ${LOCALBASE}/bin/ant
ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
PLATFORM_VER= 1
.else
IGNORE= ${OPSYS} platform is not supported
.endif
LIBNAME= libsigar-${ARCH:S,i386,x86,}-${OPSYS:tl}-${PLATFORM_VER}.so
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar \
%%JAVAJARDIR%%/${LIBNAME}
#post-patch:
# @${REINPLACE_CMD} s/gcc/${CC}/ \
# ${WRKSRC}/bindings/java/hyperic_jni/jni-build.xml
do-build:
${MKDIR} ${WRKSRC}/bin
.if ${CC} != "gcc"
${LN} -s ${LOCALBASE}/bin/${CC} ${WRKSRC}/bin/gcc
.endif
cd ${WRKSRC}/bindings/java && PATH=${PATH}:${WRKSRC}/bin ${ANT}
do-install:
${INSTALL_DATA} ${WRKSRC}/bindings/java/sigar-bin/lib/sigar.jar \
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
${INSTALL_LIB} ${WRKSRC}/bindings/java/sigar-bin/lib/libsigar-${ARCH:S,i386,x86,}-freebsd-${PLATFORM_VER}.so \
${STAGEDIR}${JAVAJARDIR}/${LIBNAME}
.include <bsd.port.post.mk>