Files
ports/textproc/opensp/Makefile
T
Dimitry Andric af011365cf textproc/opensp: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/opensp's build infrastructure does not explicitly set
its C++ standard, this leads to an error:

  Recognizer.cxx:42:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    register const Trie *pos = trie_.pointer();
    ^~~~~~~~~

To work around the error, define the register keyword away using
CPPFLAGS.

PR:		271851
Approved by:	fernape
MFH:		2023Q2
2023-06-06 18:58:39 +02:00

38 lines
1010 B
Makefile

PORTNAME= OpenSP
PORTVERSION= 1.5.2
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= SF/openjade/${PORTNAME:tl}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Collection of SGML/XML tools
WWW= http://openjade.sourceforge.net/doc/
LICENSE= JamesClark
LICENSE_NAME= License of James Clark's Software
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= gmake iconv libtool localbase perl5
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \
--datadir=${PREFIX}/share/sgml/openjade \
--disable-doc-build
CPPFLAGS+= -Dregister=
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
PORTDOCS= *.htm NEWS AUTHORS README ABOUT-NLS BUGS ChangeLog
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS:N\*.htm} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>