mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
Some parts of CLucene use std::binary_function, which was deprecated in C++11, and has been completely removed as of C++17. This shows up while building libreoffice with clang >= 16 or gcc >= 11, because C++17 is the default standard now. Apply a diff from https://bugs.gentoo.org/869170 that fixes this, by removing usage of std::binary_function, and replacing it with typedefs. PR: 271846 Approved by: fluffy (maintainer) MFH: 2023Q2
27 lines
671 B
Makefile
27 lines
671 B
Makefile
PORTNAME= clucene
|
|
PORTVERSION= 2.3.3.4
|
|
PORTREVISION= 21
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-core-unstable/2.3
|
|
DISTNAME= ${PORTNAME}-core-${PORTVERSION}
|
|
|
|
MAINTAINER= office@FreeBSD.org
|
|
COMMENT= C++ port of Lucene
|
|
WWW= https://sourceforge.net/projects/clucene/
|
|
|
|
LICENSE= APACHE20 LGPL21
|
|
LICENSE_COMB= dual
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libboost_regex.a:devel/boost-libs
|
|
|
|
USES= cmake
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_ARGS= -DBUILD_CONTRIBS_LIB=ON
|
|
CXXFLAGS+= -D__LONG_LONG_SUPPORTED -D_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR_REL}|' \
|
|
${WRKSRC}/src/core/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|