Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2016 12:00:26 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412462 - head/games/pioneer
Message-ID:  <201604031200.u33C0Qff005064@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Apr  3 12:00:26 2016
New Revision: 412462
URL: https://svnweb.freebsd.org/changeset/ports/412462

Log:
  - Switch profiler which depends on x86 assembly off by default, fixing build on arm
  
  PR:		207559
  Submitted by:	lightside@gmx.coma (maintainer)

Modified:
  head/games/pioneer/Makefile

Modified: head/games/pioneer/Makefile
==============================================================================
--- head/games/pioneer/Makefile	Sun Apr  3 11:20:55 2016	(r412461)
+++ head/games/pioneer/Makefile	Sun Apr  3 12:00:26 2016	(r412462)
@@ -63,10 +63,12 @@ DESKTOP_ENTRIES="Pioneer" "${COMMENT}" \
 SUB_FILES=	pkg-message
 SUB_LIST=	QUICKSTART_PATH="${QUICKSTART_PATH}"
 
-OPTIONS_DEFINE=		DOCS MODELCOMPILER
+OPTIONS_DEFINE=		DOCS MODELCOMPILER PROFILER
 OPTIONS_DEFAULT=	MODELCOMPILER
 MODELCOMPILER_DESC=	Build/install modelcompiler tool
 MODELCOMPILER_PLIST_FILES=	bin/${PORTNAME}-modelcompiler
+PROFILER_DESC=		Build with internal profiler
+PROFILER_CONFIGURE_ON=	--enable-profiler
 
 .include <bsd.port.options.mk>
 
@@ -94,6 +96,14 @@ post-patch-MODELCOMPILER-off: .SILENT
 	${REINPLACE_CMD} -e 's/pioneer modelcompiler/pioneer/' \
 		${WRKSRC}/src/Makefile.am
 
+post-patch-PROFILER-off: .SILENT
+	${REINPLACE_CMD} -e '/^SUBDIRS/s/ profiler//' \
+		${WRKSRC}/contrib/Makefile.am
+	${REINPLACE_CMD} -i '.p.bak' -e '/libjson.a/s| \\|| ; /libprofiler.a/d' \
+		${WRKSRC}/src/Makefile.am
+	${REINPLACE_CMD} -i '.p.bak' -e '/contrib\/profiler/d' \
+		${WRKSRC}/configure.ac
+
 post-install:
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
 	${INSTALL_DATA} ${WRKSRC}/application-icon/pngs/pioneer-256x256.png \



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