Skip to content

Commit

Permalink
devel/libexplain: Fix build on 14
Browse files Browse the repository at this point in the history
- Refactor USES=localbase
- Pet portclippy

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jun 12, 2023
1 parent a4021dd commit a053d7c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions devel/libexplain/Makefile
Expand Up @@ -12,20 +12,31 @@ WWW= http://libexplain.sourceforge.net/
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/LICENSE

DEPRECATED= Upstream last release was in 2014
#BROKEN_FreeBSD_14= Build fails with lots of error on llvm15

BUILD_DEPENDS= gsed:textproc/gsed
RUN_DEPENDS= lsof:sysutils/lsof

USES= bison gettext ghostscript:build gmake groff iconv libtool:build
USES= bison gettext ghostscript:build gmake groff iconv libtool:build localbase
USE_LDCONFIG= yes

GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_header_linux_kd_h=no
USE_LDCONFIG= yes

CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS

PATCHLEVEL= D012

OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
USES+= llvm:max=14
CPP= clang-cpp${LLVM_VERSION}
CC= clang${LLVM_VERSION}
CXX= clang++${LLVM_VERSION}
MAKE_JOBS_UNSAFE= yes
.endif

.include <bsd.port.pre.mk>

Expand Down

0 comments on commit a053d7c

Please sign in to comment.