Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2014 15:45:31 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363623 - head/net-mgmt/netams
Message-ID:  <201407311545.s6VFjVWb058252@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Thu Jul 31 15:45:30 2014
New Revision: 363623
URL: http://svnweb.freebsd.org/changeset/ports/363623
QAT: https://qat.redports.org/buildarchive/r363623/

Log:
  Fix build without gcc.

Modified:
  head/net-mgmt/netams/Makefile

Modified: head/net-mgmt/netams/Makefile
==============================================================================
--- head/net-mgmt/netams/Makefile	Thu Jul 31 15:24:56 2014	(r363622)
+++ head/net-mgmt/netams/Makefile	Thu Jul 31 15:45:30 2014	(r363623)
@@ -104,6 +104,10 @@ pre-patch:
 	@${REINPLACE_CMD} -e 's|locate_file "libglib-2\.0\.so".*|v1="" \&\& v2="" \&\& v3=""|' \
 		-e 's|locate_file "openssl/md5\.h".*|v1=""|' ${WRKSRC}/configure.sh
 
+post-patch:
+	@${REINPLACE_CMD} -e '/^CC/s|g++|${CC}|; /^CPP/s|g++|${CXX}|; /^CFLAGS/s/=/+=/' \
+		${WRKSRC}/src/Makefile
+
 do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}/tools/oracle
 	${INSTALL_DATA} ${WRKSRC}/addon/netams.conf ${STAGEDIR}${PREFIX}/etc/netams.conf.sample



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