1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/java/sigar/Makefile
Gerald Pfeifer d09ed096c4 */*: Replace USE_GCC=any with USE_GCC=yes
USE_GCC=any has been equivalent to USE_GCC=yes in most cases (such
as i386 and amd64 since 12.x and depending on configuration 11.x,
most newer installations on other platforms, and 13.x across the
board).

Since commit 96c17633d9 Mk/bsd.gcc.mk is treating them as
different spellings of the same, so continue the deorbiting of the
USE_GCC=any form and simply replace it with USE_GCC=yes.

This should not make any functional difference at all.

Discussed with:	mat, linimon, pkubaj
2021-06-04 05:53:21 +00:00

67 lines
1.6 KiB
Makefile

# Created by: Tom Judge <tj@FreeBSD.org>
PORTNAME= sigar
PORTVERSION= 1.7.3
PORTREVISION= 10
CATEGORIES= java devel
PKGNAMEPREFIX= java-
MAINTAINER= ports@FreeBSD.org
COMMENT= Java bindings for the Sigar system information API
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/NOTICE
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
BUILD_DEPENDS= ${ANT_CMD}:devel/apache-ant
LIB_DEPENDS= libsigar.so:devel/sigar
USE_GITHUB= yes
GH_ACCOUNT= amishHammer
GH_TAGNAME= b5af695
USES= perl5
USE_PERL5= build
USE_JAVA= yes
JAVA_VERSION= 8
JAVA_RUN= yes
USE_GCC= yes
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,:S,powerpc64,ppc64,}-${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,:S,powerpc64,ppc64,}-freebsd-${PLATFORM_VER}.so \
${STAGEDIR}${JAVAJARDIR}/${LIBNAME}
.include <bsd.port.post.mk>