Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 23:25:52 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r323423 - in head/lang/hiphop-php: . files
Message-ID:  <201307212325.r6LNPqfU043020@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sun Jul 21 23:25:52 2013
New Revision: 323423
URL: http://svnweb.freebsd.org/changeset/ports/323423

Log:
  Add option to create a DEBUG build

Added:
  head/lang/hiphop-php/files/patch-hphp-util-assertions.h   (contents, props changed)
Modified:
  head/lang/hiphop-php/Makefile

Modified: head/lang/hiphop-php/Makefile
==============================================================================
--- head/lang/hiphop-php/Makefile	Sun Jul 21 22:48:14 2013	(r323422)
+++ head/lang/hiphop-php/Makefile	Sun Jul 21 23:25:52 2013	(r323423)
@@ -3,6 +3,7 @@
 
 PORTNAME=	hiphop-php
 PORTVERSION=	2.1
+PORTREVISION=	1
 CATEGORIES=	lang devel www
 MASTER_SITES=	https://github.com/facebook/hiphop-php/archive/:main \
 		http://unicode.org/Public/UNIDATA/:unidata \
@@ -45,6 +46,8 @@ LIB_DEPENDS=	icudata:${PORTSDIR}/devel/i
 		unwind:${PORTSDIR}/devel/libunwind \
 		glog:${PORTSDIR}/devel/glog
 
+OPTIONS_DEFINE=	DEBUG
+
 ONLY_FOR_ARCHS=		amd64
 ONLY_FOR_ARCHS_REASON=	This program is developed for amd64 only
 
@@ -97,6 +100,13 @@ DISTFILES+=	${DISTNAME}${EXTRACT_SUFX}:m
 		8859-15.TXT:mappings \
 		8859-16.TXT:mappings
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDEBUG}
+CMAKE_BUILD_TYPE=	Debug
+CONFIGURE_ARGS+=	-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+.endif
+
 .include <bsd.port.pre.mk>
 
 _CFLAGS=	${CFLAGS} -DHAVE_POSIX_FALLOCATE=1

Added: head/lang/hiphop-php/files/patch-hphp-util-assertions.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/hiphop-php/files/patch-hphp-util-assertions.h	Sun Jul 21 23:25:52 2013	(r323423)
@@ -0,0 +1,11 @@
+--- hphp/util/assertions.h.orig	2013-07-22 00:36:45.262881238 +0200
++++ hphp/util/assertions.h	2013-07-22 00:37:05.484417990 +0200
+@@ -86,7 +86,7 @@
+                         const char* file,
+                         unsigned int line,
+                         const char* func) {
+-#if !defined(NDEBUG) && !defined(__APPLE__)
++#if !defined(NDEBUG) && !defined(__APPLE__) && !defined(__FreeBSD__)
+   __assert_fail(e, file, line, func);
+ #else
+   extern void impl_assert_fail(const char*,



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