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:
parent
e5cccf70ee
commit
568ad25d50
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373058
@ -35,6 +35,7 @@ WRKSRC= ${WRKDIR}/amishHammer-sigar-${GH_COMMIT}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD
|
||||
. if ${OSVERSION} >= 1000000
|
||||
PLATFORM_VER= 1
|
||||
. elif ${OSVERSION} >= 900000
|
||||
@ -48,6 +49,10 @@ PLATFORM_VER= 6
|
||||
. 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 \
|
||||
|
Loading…
Reference in New Issue
Block a user