svn commit: r510181 - head/lang/maude

Piotr Kubaj pkubaj at FreeBSD.org
Thu Aug 29 19:37:18 UTC 2019


Author: pkubaj
Date: Thu Aug 29 19:37:17 2019
New Revision: 510181
URL: https://svnweb.freebsd.org/changeset/ports/510181

Log:
  lang/maude: fix build on GCC architectures
  
  Don't link unconditinally with $NCURSESLIB. When NCURSESLIB is /usr/lib and the system compiler is base GCC, GCC from ports (currently GCC9) is used. Passing -L/usr/lib makes GCC try to link to base libstdc++ instead the one from ports.
  
  Also add USES=localbase:ldflags.
  
  PR:		239481
  Approved by:	linimon (mentor), greg at unrelenting.technology (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D21397

Modified:
  head/lang/maude/Makefile

Modified: head/lang/maude/Makefile
==============================================================================
--- head/lang/maude/Makefile	Thu Aug 29 18:44:54 2019	(r510180)
+++ head/lang/maude/Makefile	Thu Aug 29 19:37:17 2019	(r510181)
@@ -19,13 +19,12 @@ LIB_DEPENDS=	libbdd.so:science/buddy \
 		libgmp.so:math/gmp \
 		libsigsegv.so:devel/libsigsegv
 
-USES=		alias autoreconf bison ncurses
+USES=		alias autoreconf bison compiler:c++11-lang localbase:ldflags \
+		ncurses
 
 WRKSRC=		${WRKDIR}/maude-${PORTVERSION}
 
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${NCURSESINC} -I${LOCALBASE}/include
-LDFLAGS+=	-L${NCURSESLIB} -L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--datadir=${DATADIR}
 MAKE_JOBS_UNSAFE=	yes
 
@@ -40,8 +39,13 @@ CVC4_CONFIGURE_WITH=	cvc4
 
 PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README
 
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
 
+.if ${NCURSESLIB} != /usr/lib
+CPPFLAGS+=	-I${NCURSESINC}
+LDFLAGS+=	-L${NCURSESLIB}
+.endif
+
 .if ${PORT_OPTIONS:MFULL_MAUDE}
 MASTER_SITES+=	http://maude.cs.illinois.edu/w/images/c/ca/:fm
 FULL_MAUDE=	full-maude.maude
@@ -71,4 +75,4 @@ post-install-DOCS-on:
 post-install-FULL_MAUDE-on:
 	${INSTALL_DATA} ${WRKDIR}/${FULL_MAUDE} ${STAGEDIR}${DATADIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list