From 03e0467c0dd4f0d72358cb474e627c6b01eb8d43 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 1 Jul 2014 13:11:22 +0000 Subject: [PATCH] Fix building with readline from ports and do not hardcode the gcc version --- devel/libbobcat/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devel/libbobcat/Makefile b/devel/libbobcat/Makefile index 5cfdbcc0750e..a9ed6fc93d2c 100644 --- a/devel/libbobcat/Makefile +++ b/devel/libbobcat/Makefile @@ -15,6 +15,7 @@ LICENSE= GPLv3 BUILD_DEPENDS= icmake:${PORTSDIR}/devel/icmake \ yodl>=3.0:${PORTSDIR}/textproc/yodl +USE_GCC= yes USE_XORG= x11 DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} @@ -22,11 +23,10 @@ PORTDOCS= * PLIST_SUB+= PORTVERSION="${PORTVERSION}" -USE_GCC= 4.7 USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/bobcat-${PORTVERSION} -USES= shebangfix +USES= readline shebangfix SHEBANG_LANG= icmake icmake_OLD_CMD= /usr/bin/icmake @@ -50,8 +50,8 @@ post-patch: s|"/share/man"|"/man"| ; \ s|"-d"|"-Pp"| ; \ s|#define MANHTML|| ; \ - s|g++|g++47| ; \ - s|gcc|gcc47|' \ + s|g++|${CXX}| ; \ + s|gcc|${CC}|' \ ${WRKSRC}/INSTALL.im @${REINPLACE_CMD} -e 's|"-isystem tmp -Wall -O3"|"-isystem tmp ${LOCALBASE}/include -Wall ${CXXFLAGS}"|' \ ${WRKSRC}/build