Skip to content

Commit

Permalink
graphics/fotoxx: update the port to version 22.1
Browse files Browse the repository at this point in the history
Older versions are not fetchable (never do this).

Reported by:	pkg-fallout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jan 8, 2022
1 parent 7b0210d commit e1cea31
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 42 deletions.
2 changes: 1 addition & 1 deletion graphics/fotoxx/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Created by: Rod Person <rodperson@rodperson.com>

PORTNAME= fotoxx
PORTVERSION= 21.60
PORTVERSION= 22.1
CATEGORIES= graphics
MASTER_SITES= https://kornelix.net/downloads/downloads/

Expand Down
6 changes: 3 additions & 3 deletions graphics/fotoxx/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1634502156
SHA256 (fotoxx-21.60.tar.gz) = 2973e967b04b79ed85ec4dc9ed77d78cd5881340dfc976a61ba85dcbeb4b0dfd
SIZE (fotoxx-21.60.tar.gz) = 8679841
TIMESTAMP = 1641036641
SHA256 (fotoxx-22.1.tar.gz) = 8c69f8029ca971c51dad55461c14f9a6ec35550e1f71436ec25bdcc4365d575f
SIZE (fotoxx-22.1.tar.gz) = 8801382
29 changes: 0 additions & 29 deletions graphics/fotoxx/files/patch-f.enhance.cc

This file was deleted.

29 changes: 29 additions & 0 deletions graphics/fotoxx/files/patch-f.refine.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--- f.refine.cc.orig 2022-01-01 11:16:58 UTC
+++ f.refine.cc
@@ -223,7 +223,7 @@ void m_edit_dist(GtkWidget *, cchar *menu)
EFedit_dist.Farea = 2; // select area usable
EFedit_dist.Frestart = 1; // restart allowed
EFedit_dist.Fscript = 1; // scripting supported
- EFedit_dist.threadfunc = thread;
+ EFedit_dist.threadfunc = edit_dist_names::thread;
if (! edit_setup(EFedit_dist)) return; // setup edit

/***
@@ -589,7 +589,7 @@ void m_flatten_dist(GtkWidget *, cchar *menu)
EFflatten_dist.Frestart = 1; // restartable
EFflatten_dist.Fpaintedits = 1; // use with paint edits OK
EFflatten_dist.Fscript = 1; // scripting supported
- EFflatten_dist.threadfunc = thread;
+ EFflatten_dist.threadfunc = flatten_dist_names::thread;
if (! edit_setup(EFflatten_dist)) return; // setup edit
Eww = E0pxm->ww;
@@ -1066,7 +1066,7 @@ void flatten_dist_func(int _NZ, int _flatten, int _deb
EFflatten_dist.menufunc = m_flatten_dist;
EFflatten_dist.Farea = 2; // select area usable
EFflatten_dist.Frestart = 1; // restartable
- EFflatten_dist.threadfunc = thread;
+ EFflatten_dist.threadfunc = flatten_dist_names::thread;
if (! edit_setup(EFflatten_dist)) return; // setup edit
9 changes: 0 additions & 9 deletions graphics/fotoxx/files/patch-zfuncs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@
elapsed = time2.tv_sec - time1.tv_sec;
elapsed += 0.000000001 * (time2.tv_nsec - time1.tv_nsec);
time1 = time2;
@@ -1432,7 +1468,7 @@ void zloop(double dsecs)
// ... protected code // only one thread at a time can be in here
// spinlock(0);

-pthread_mutex_t spinmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; // 21.44
+pthread_mutex_t spinmutex = PTHREAD_MUTEX_INITIALIZER;

void spinlock(int lock)
{
@@ -1649,6 +1685,10 @@ int main_thread()
return 0;
}
Expand Down

0 comments on commit e1cea31

Please sign in to comment.