Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 13:26:24 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r373058 - head/java/sigar
Message-ID:  <201411221326.sAMDQOFZ065164@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Nov 22 13:26:24 2014
New Revision: 373058
URL: https://svnweb.freebsd.org/changeset/ports/373058
QAT: https://qat.redports.org/buildarchive/r373058/

Log:
  java/sigar: Check OSVERSION with OPSYS and break non-FreeBSD platforms

Modified:
  head/java/sigar/Makefile

Modified: head/java/sigar/Makefile
==============================================================================
--- head/java/sigar/Makefile	Sat Nov 22 13:25:49 2014	(r373057)
+++ head/java/sigar/Makefile	Sat Nov 22 13:26:24 2014	(r373058)
@@ -35,19 +35,24 @@ WRKSRC=		${WRKDIR}/amishHammer-sigar-${G
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 1000000
+.if ${OPSYS} == FreeBSD
+.  if ${OSVERSION} >= 1000000
 PLATFORM_VER=	1
-.elif ${OSVERSION} >= 900000
+.  elif ${OSVERSION} >= 900000
 PLATFORM_VER=	9
-.elif ${OSVERSION} >= 800000
+.  elif ${OSVERSION} >= 800000
 PLATFORM_VER=	8
-.elif ${OSVERSION} >= 700000
+.  elif ${OSVERSION} >= 700000
 PLATFORM_VER=	7
-.elif ${OSVERSION} >= 600000
+.  elif ${OSVERSION} >= 600000
 PLATFORM_VER=	6
-.else
+.  else
 BROKEN=		Unsupported FreeBSD version
+.  endif
+.else
+BROKEN=		${OPSYS} platform is not supported
 .endif
+
 LIBNAME=	libsigar-${ARCH:S,i386,x86,}-freebsd-${PLATFORM_VER}.so
 
 PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411221326.sAMDQOFZ065164>