net/pacemaker1: fix building port with clang 11

wrong reason was added to BROKEN conditional;
  remove BROKEN flag if OSVERSION >= 1300000;
  current commit also fixes ability to build this port.
This commit is contained in:
Vinícius Zavam 2021-10-17 15:40:38 +00:00
parent 4523b2c8fa
commit 00f889e034
No known key found for this signature in database
GPG key ID: 415C653413B43475

View file

@ -1,7 +1,7 @@
# Created by: David Shane Holden <dpejesh@yahoo.com>
PORTVERSION= 1.1.24
PORTREVISION= 1
PORTREVISION= 2
PKGNAMESUFFIX= 1
.include "${.CURDIR}/Makefile.common"
@ -24,8 +24,9 @@ REPLACE_ARGS_GETOPT= -e 's,getopt,${LOCALBASE}/bin/getopt,'
.include <bsd.port.pre.mk>
# Fix building it with clang 11
.if ${OSVERSION} >= 1300000
BROKEN= "includes <sys/timeb.h> which is deprecated"
CFLAGS+= -fcommon
.endif
.if ${PYTHON_SUFFIX} > 36