svn commit: r373058 - head/java/sigar

John Marino marino at FreeBSD.org
Sat Nov 22 13:26:24 UTC 2014


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 \


More information about the svn-ports-all mailing list