1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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

This commit is contained in:
John Marino 2014-11-22 13:26:24 +00:00
parent e5cccf70ee
commit 568ad25d50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373058

View File

@ -35,19 +35,24 @@ WRKSRC= ${WRKDIR}/amishHammer-sigar-${GH_COMMIT}
.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 \