svn commit: r520653 - head/ports-mgmt/portal
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Dec 22 19:23:51 UTC 2019
Author: pkubaj
Date: Sun Dec 22 19:23:51 2019
New Revision: 520653
URL: https://svnweb.freebsd.org/changeset/ports/520653
Log:
ports-mgmt/portal: fix build on GCC architectures
Only add -L${NCURSESLIB} when ${NCURSESLIB} isn't /usr/lib to prevent linking with base libstdc++ on GCC architectures.
PR: 240707
Approved by: culot (maintainer)
Modified:
head/ports-mgmt/portal/Makefile
Modified: head/ports-mgmt/portal/Makefile
==============================================================================
--- head/ports-mgmt/portal/Makefile Sun Dec 22 19:21:45 2019 (r520652)
+++ head/ports-mgmt/portal/Makefile Sun Dec 22 19:23:51 2019 (r520653)
@@ -10,8 +10,6 @@ COMMENT= Front-end to pkg(8)
LICENSE= BSD2CLAUSE
-BROKEN_powerpc64= fails to build: /usr/local/lib/gcc6/include/c++/thread:189: undefined reference to `std::thread::_State::~_State()'
-
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
@@ -19,11 +17,16 @@ USE_GITHUB= yes
GH_ACCOUNT= culot
USES= ncurses compiler:c++11-lib
+
+.include <bsd.port.pre.mk>
+
+.if ${NCURSESLIB} != /usr/lib
CFLAGS+= -I${NCURSESINC}
LDFLAGS+= -L${NCURSESLIB}
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list