Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2015 12:38:44 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381490 - in head/lang/see: . files
Message-ID:  <201503171238.t2HCciZJ069928@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Tue Mar 17 12:38:43 2015
New Revision: 381490
URL: https://svnweb.freebsd.org/changeset/ports/381490
QAT: https://qat.redports.org/buildarchive/r381490/

Log:
  Enable multi-threading.
  
  PR:		198655
  Submitted by:	maintainer

Added:
  head/lang/see/files/
  head/lang/see/files/patch-libsee_dtoa.c   (contents, props changed)
Modified:
  head/lang/see/Makefile

Modified: head/lang/see/Makefile
==============================================================================
--- head/lang/see/Makefile	Tue Mar 17 12:35:35 2015	(r381489)
+++ head/lang/see/Makefile	Tue Mar 17 12:38:43 2015	(r381490)
@@ -3,6 +3,7 @@
 
 PORTNAME=	see
 PORTVERSION=	3.1.1424
+PORTREVISION=	1
 CATEGORIES=	lang devel
 MASTER_SITES=	http://download.openpkg.org/components/cache/see/ \
 		http://lil.fr.distfiles.macports.org/see/ \
@@ -12,10 +13,12 @@ MASTER_SITES=	http://download.openpkg.or
 MAINTAINER=	numisemis@yahoo.com
 COMMENT=	Simple ECMAScript Engine (SEE)
 
-OPTIONS_DEFINE=	GC SEE_DEBUG DOCS
+LICENSE=	BSD
+
+OPTIONS_DEFINE=	GC DEBUG DOCS
 OPTIONS_DEFAULT=	GC
 GC_DESC=	Use Boehm-Weiser garbage collection package
-SEE_DEBUG_DESC=	Internal SEE library debugging
+DEBUG_DESC=	Internal SEE library debugging
 
 CONFLICTS=	see-devel-[0-9]*
 
@@ -27,11 +30,11 @@ USE_PERL5=	build
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 
-CFLAGS+=	-O3 -fomit-frame-pointer
+CFLAGS+=	-O3
 CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
-SEE_DEBUG_CFLAGS_OFF=	-DNDEBUG
+DEBUG_CFLAGS_OFF=	-DNDEBUG
 GC_LIB_DEPENDS=		libgc.so:${PORTSDIR}/devel/boehm-gc
 GC_CONFIGURE_WITH=	boehm-gc
 

Added: head/lang/see/files/patch-libsee_dtoa.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/see/files/patch-libsee_dtoa.c	Tue Mar 17 12:38:43 2015	(r381490)
@@ -0,0 +1,17 @@
+--- libsee/dtoa.c.orig	2009-04-26 23:04:58.000000000 +0200
++++ libsee/dtoa.c	2015-03-16 15:46:21.218950229 +0100
+@@ -252,6 +252,14 @@
+ #include "math.h"
+ #endif
+ 
++#include <pthread.h>
++
++static pthread_mutex_t dtoaLock[2] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER };
++
++#define MULTIPLE_THREADS
++#define ACQUIRE_DTOA_LOCK(n) pthread_mutex_lock(&dtoaLock[n]);
++#define FREE_DTOA_LOCK(n) pthread_mutex_unlock(&dtoaLock[n]);
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif



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