1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

x11-toolkits/fox17: Update to 1.7.78

Bump PORTREVISION on consumers. Since this is a development version, rebuild
is required even for minor releases due to API/ABI changes.

Changes:	http://www.fox-toolkit.org/news.html
This commit is contained in:
Jason E. Hale 2022-02-24 07:49:18 -05:00
parent 084042c359
commit 943c83b124
5 changed files with 7 additions and 41 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= gogglesmm
PORTVERSION= 1.2.2
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= audio
MAINTAINER= jhale@FreeBSD.org

View File

@ -1,8 +1,7 @@
# Created by: gahr
PORTNAME= fox
PORTVERSION= 1.7.77
PORTREVISION= 2
PORTVERSION= 1.7.78
CATEGORIES= x11-toolkits
MASTER_SITES= http://fox-toolkit.org/ftp/ \
ftp://ftp.fox-toolkit.org/pub/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1619009150
SHA256 (fox-1.7.77.tar.gz) = 0505ffcc7e7e5167faa432a45a0f68f4f716b51a48732f386b3e21372ef26443
SIZE (fox-1.7.77.tar.gz) = 5710846
TIMESTAMP = 1645699908
SHA256 (fox-1.7.78.tar.gz) = bbaf18fe753ef46ff1b9ccf6f64c5204394af8abdc574195030f07271adece24
SIZE (fox-1.7.78.tar.gz) = 5716289

View File

@ -1,33 +0,0 @@
pthread_setname_np() and pthread_getname_np() are only implemented on FreeBSD
12.x >= 1201518 and 13.x >= 1300098. Port to pthread_set_name_np() and
pthread_get_name_np(), respectively, for older versions.
--- lib/FXThread.cpp.orig 2020-12-24 17:03:54 UTC
+++ lib/FXThread.cpp
@@ -911,7 +911,10 @@ FXbool FXThread::description(const FXString& desc){
return 0<=fxSetThreadDescription((HANDLE)tid,udesc);
#elif defined(__APPLE__)
return pthread_setname_np(desc.text())==0;
-#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) && !defined(HAVE_PTHREAD_SETNAME_NP)
+ pthread_set_name_np((pthread_t)tid,desc.text());
+ return true;
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
pthread_setname_np((pthread_t)tid,desc.text());
return true;
#elif defined(HAVE_PTHREAD_SETNAME_NP)
@@ -938,7 +941,13 @@ FXString FXThread::description() const {
if(pthread_getname_np(*((pthread_t*)&tid),desc,ARRAYNUMBER(desc))==0){
return desc;
}
-#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__FreeBSD__) && !defined(HAVE_PTHREAD_GETNAME_NP)
+ FXchar desc[256];
+ pthread_get_name_np((pthread_t)tid,desc,ARRAYNUMBER(desc));
+ if(desc[0]!='\0'){
+ return desc;
+ }
+#elif defined(__NetBSD__) || defined(__OpenBSD__)
FXchar desc[256];
if(pthread_getname_np((pthread_t)tid,desc,ARRAYNUMBER(desc))==0){
return desc;

View File

@ -368,11 +368,11 @@ include/fox-%%MAJORVER%%/xincs.h
lib/libCHART-%%MAJORVER%%.a
lib/libCHART-%%MAJORVER%%.so
lib/libCHART-%%MAJORVER%%.so.0
lib/libCHART-%%MAJORVER%%.so.0.0.77
lib/libCHART-%%MAJORVER%%.so.0.0.78
lib/libFOX-%%MAJORVER%%.a
lib/libFOX-%%MAJORVER%%.so
lib/libFOX-%%MAJORVER%%.so.0
lib/libFOX-%%MAJORVER%%.so.0.0.77
lib/libFOX-%%MAJORVER%%.so.0.0.78
libdata/pkgconfig/fox17.pc
man/man1/ControlPanel-17.1.gz
%%PORTEXAMPLES%%man/man1/PathFinder-17.1.gz