Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2018 12:00:56 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485765 - head/multimedia/mkvtoolnix
Message-ID:  <201811241200.wAOC0uNU035667@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sat Nov 24 12:00:56 2018
New Revision: 485765
URL: https://svnweb.freebsd.org/changeset/ports/485765

Log:
  Fix build on GCC-based architectures
  
  PR:		232822
  Submitted by:	pkubaj@anongoth.pl
  Reviewed by:	riggs, linimon

Modified:
  head/multimedia/mkvtoolnix/Makefile

Modified: head/multimedia/mkvtoolnix/Makefile
==============================================================================
--- head/multimedia/mkvtoolnix/Makefile	Sat Nov 24 11:53:38 2018	(r485764)
+++ head/multimedia/mkvtoolnix/Makefile	Sat Nov 24 12:00:56 2018	(r485765)
@@ -26,7 +26,7 @@ LIB_DEPENDS=	libvorbis.so:audio/libvorbis \
 		libpugixml.so:textproc/pugixml \
 		libmatroska.so:multimedia/libmatroska
 
-USES=		compiler:c++14-lang iconv localbase pkgconfig tar:xz
+USES=		compiler:c++17-lang iconv localbase pkgconfig tar:xz
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	ac_cv_path_PO4A=no
 CONFIGURE_ARGS=	--with-boost=${LOCALBASE} \
@@ -59,6 +59,12 @@ QT5_LIB_DEPENDS=	libcmark.so:textproc/cmark
 MANTRANS_DESC=		Build and install manpage translations
 MANTRANS_BUILD_DEPENDS=	po4a:textproc/po4a
 
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} != clang
+USE_CXXSTD=	c++17
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e '/LIBS="-lintl/s,-liconv,$$ICONV_LIBS,' \
 		${WRKSRC}/configure
@@ -70,4 +76,4 @@ post-configure-NLS-off:
 	@${REINPLACE_CMD} -e 's|#define HAVE_LIBINTL_H|//#define HAVE_LIBINTL_H|g' ${WRKSRC}/config.h
 	@${REINPLACE_CMD} -e 's|S["LIBINTL_LIBS"]=|#S["LIBINTL_LIBS"]=|g' ${WRKSRC}/config.status
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811241200.wAOC0uNU035667>