aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/hyperic-sigar/Makefile
blob: 0c9af1af7909b944bd22ea4224e7c18743b001de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    hyperic-sigar
# Date created:    08 Feb 2010
# Whom:        Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=   hyperic-sigar
PORTVERSION=    1.6.4
CATEGORIES= sysutils
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= sigar/sigar/${PORTVERSION:C/\.[0-9]+$//}
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= skv@FreeBSD.org
COMMENT=    SIGAR - System Information Gatherer and Reporter

WRKSRC=     ${WRKDIR}/${DISTNAME}/bindings/java/

USE_JAVA=   yes
JAVA_VERSION=   1.6+
USE_ANT=    yes
USE_PERL5_BUILD=yes
USE_LDCONFIG=   yes

SHLIB_MAJOR=    0
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"

.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
BROKEN= fails to build with new utmpx
.endif

do-install:
    ${MKDIR} ${PREFIX}/include ${PREFIX}/lib ${JAVAJARDIR}
    ${INSTALL_DATA} ${WRKSRC}/sigar-bin/include/*.h ${PREFIX}/include/
    ${INSTALL_DATA} ${WRKSRC}/sigar-bin/lib/libsigar-*.so ${PREFIX}/lib/libsigar.so.${SHLIB_MAJOR}
    ${LN} -sf ${PREFIX}/lib/libsigar.so.${SHLIB_MAJOR} ${PREFIX}/lib/libsigar.so
    ${INSTALL_DATA} ${WRKSRC}/sigar-bin/lib/sigar.jar ${JAVAJARDIR}/

.include <bsd.port.post.mk>