Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2019 18:18:33 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512530 - head/audio/grip
Message-ID:  <201909211818.x8LIIXLm054927@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Sep 21 18:18:33 2019
New Revision: 512530
URL: https://svnweb.freebsd.org/changeset/ports/512530

Log:
  Fix build on GCC-based systems:
  
    /usr/local/lib/libgraphite2.so.3: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/audio/grip/Makefile

Modified: head/audio/grip/Makefile
==============================================================================
--- head/audio/grip/Makefile	Sat Sep 21 18:14:05 2019	(r512529)
+++ head/audio/grip/Makefile	Sat Sep 21 18:18:33 2019	(r512530)
@@ -18,7 +18,8 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libid3.so:audio/id3lib \
 		libpopt.so:devel/popt
 
-USES=		gmake libtool localbase pathfix pkgconfig
+USES=		compiler:c++11-lang gmake gnome libtool localbase \
+		pathfix pkgconfig xorg
 USE_XORG=	ice sm x11 xext
 USE_GNOME=	cairo gdkpixbuf2 gnomeprefix libgnomeui vte
 
@@ -50,6 +51,8 @@ DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
 DEFAULT_CDROM_DEVICE=/dev/cd0
 .endif
 
+.include <bsd.port.pre.mk>
+
 pre-everything::
 .if !defined(WITH_CDROM_DEVICE)
 	@${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}"
@@ -60,5 +63,8 @@ pre-everything::
 post-patch:
 	@${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
 		${WRKSRC}/src/grip.c
+.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
+	${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/src/cdpar.c
+.endif
 
-.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?201909211818.x8LIIXLm054927>