1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/japanese/zinnia/Makefile
Dimitry Andric abdd4cf0e5 japanese/zinnia: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because japanese/zinnia's build infrastructure does not explicitly set
its C++ standard, this leads to an error:

  svm.cpp:50:10: error: no member named 'random_shuffle' in namespace 'std'
      std::random_shuffle(index.begin(), index.begin() + active_size);
      ~~~~~^

This is because std::random_shuffle has been removed from C++17. An
suitable replacement is std::shuffle, using a std::random_device in
combination with std::mt19937 as the random number engine.

PR:		271953
Approved by:	fernape
MFH:		2023Q2
2023-06-12 20:36:01 +02:00

32 lines
666 B
Makefile

PORTNAME= zinnia
PORTVERSION= 0.06
PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= SF
MAINTAINER= beyert@cs.ucr.edu
COMMENT= Simple, customizable, and portable online handwriting recognition system
WWW= http://zinnia.sourceforge.net/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
PORTDOCS= index-ja.html index.html
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/^pkgconfigdir/s!=.*!= ${PREFIX}/libdata/pkgconfig!' \
${WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>