ports/textproc/lttoolbox/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

34 lines
845 B
Makefile

PORTNAME= lttoolbox
DISTVERSION= 3.7.1
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= https://github.com/apertium/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Tool for lexical, morphological analysis and generation of words
WWW= https://wiki.apertium.org/wiki/Lttoolbox
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= utf8cpp>0:devel/utf8cpp
LIB_DEPENDS= libicuio.so:devel/icu \
libxml2.so:textproc/libxml2
USES= autoreconf compiler:c++14-lang libtool pathfix pkgconfig tar:bz2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CFLAGS+= -I${LOCALBASE}/include/utf8cpp
LDFLAGS+= -lpthread
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
EXTRA_PATCHES= ${FILESDIR}/extra-patch-llvm16
.endif
.include <bsd.port.post.mk>