mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
526869d8dc
A big Thank You to the original contributors of these ports: * Alex Dupre <ale@FreeBSD.org> * Alex Semenyaka <alex@rinet.ru> * Alexander Yerenkow <yerenkow@gmail.com> * Anton Yudin (<contact@toha.org.ua>) * Anton Yudin <toha@toha.org.ua> * Benjamin Close <benjsc@FreeBSD.org> * Björn König <bkoenig@alpha-tierchen.de> * Conor McDermottroe <ports@mcdermottroe.com> * Danilo Egea Gondolfo <danilo@FreeBSD.org * Dave Glowacki <dglo@ssec.wisc.edu> * Ernst de Haan <znerd@FreeBSD.org> * Eugene Grosbein <ports@grosbein.net> * Filippo Natali <filippo@widestore.net> * Gerrit Beine <gerrit.beine@gmx.de> * Greg Lewis <glewis@FreeBSD.org> * Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> * Jason Helfman <jgh@FreeBSD.org> * Jeremy <karlj000@unbc.ca> * Johannes Dieterich <dieterich@ogolem.org> * Johannes Dieterich <jmd@FreeBSD.org> * Jonathan Chen <jonc@chen.org.nz> * Jose Marques * Jose Marques <noway@nohow.demon.co.uk> * Lapo Luchini <lapo@lapo.it> * Lev Serebryakov <lev@FreeBSD.org> * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Matthew Dillon <dillon@backplane.com> * Maxim Sobolev <sobomax@FreeBSD.org> * Mikhail T. <mi@aldan.algebra.com> * Mikhail T. <michael@fun-box.ru> * Mikhail Teterin * Nicola Vitale <nivit@FreeBSD.org> * Nicola Vitale <nivit@email.it> * OISHI Masakuni <yamasa@bsdhouse.org> * OKAZAKI Tetsurou * Pedro Giffuni * Simeo Reig <reig.simeo@gmail.com> * Sutra Zhou <zhoushuqun@gmail.com> * Tom Judge <tj@FreeBSD.org> * Volker Stolz <vs@FreeBSD.org> * Wen Heping <wenheping@gmail.com> * Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> * gldisater@gldis.ca * ijliao * jake@checker.org * jpbeconne * lon_kamikaze@gmx.de * mi * nordwick@xcf.berkeley.edu * nork@FreeBSD.org * olgeni@FreeBSD.org * rasputin * rfarmer@predatorlabs.net * rtdean@cytherianage.net * tux@pinguru.net With hat: portmgr
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
PORTNAME= sigar
|
|
PORTVERSION= 1.7.3
|
|
PORTREVISION= 11
|
|
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
|
|
TEST_DEPENDS= ${JAVALIBDIR}/junit.jar:java/junit
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= polo-language # amishHammer
|
|
GH_TAGNAME= 6719d4d
|
|
|
|
USES= perl5
|
|
USE_PERL5= build
|
|
USE_JAVA= yes
|
|
JAVA_RUN= yes
|
|
NO_CCACHE= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/bindings/java
|
|
|
|
ANT_CMD?= ${LOCALBASE}/bin/ant
|
|
INVOKE_ANT= ${SETENV} PATH=${PATH}:${WRKSRC}/bin JAVA_HOME=${JAVA_HOME} \
|
|
${ANT_CMD}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD
|
|
LIBNAME= libsigar-${ARCH:S,i386,x86,:S,powerpc64,ppc64,}-${OPSYS:tl}-1
|
|
.else
|
|
IGNORE= ${OPSYS} platform is not supported
|
|
.endif
|
|
|
|
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar \
|
|
${JAVAJARDIR}/${LIBNAME}.so
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKSRC}/bin
|
|
${LN} -s `which ${CC}` ${WRKSRC}/bin/gcc
|
|
@cd ${BUILD_WRKSRC} && ${INVOKE_ANT} build
|
|
|
|
do-test:
|
|
@cd ${BUILD_WRKSRC} && ${INVOKE_ANT} \
|
|
-Djunit.jar="${JAVALIBDIR}/junit.jar" test
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/bindings/java/sigar-bin/lib/sigar.jar \
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
${INSTALL_LIB} ${WRKSRC}/bindings/java/sigar-bin/lib/${LIBNAME}.so \
|
|
${STAGEDIR}${JAVAJARDIR}/${LIBNAME}.so
|
|
|
|
.include <bsd.port.post.mk>
|