svn commit: r381490 - in head/lang/see: . files
Vanilla I. Shu
vanilla at FreeBSD.org
Tue Mar 17 12:38:45 UTC 2015
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 at 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
More information about the svn-ports-all
mailing list