Skip to content

Commit

Permalink
graphics/fotoxx: update the port to version 24.11 (under the old name)
Browse files Browse the repository at this point in the history
The project was renamed to Fotocx.  This was done because a web search
for "fotoxx" returns pornographic web pages ("foto xx") after a few
legitimate results.  This has been a plague for years, and the author
had decided to end it.
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Feb 21, 2024
1 parent 59a7615 commit 8027fcb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 35 deletions.
15 changes: 5 additions & 10 deletions graphics/fotoxx/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
PORTNAME= fotoxx
PORTVERSION= 23.82
PORTREVISION= 1
PORTNAME= fotocx
PORTVERSION= 24.11
CATEGORIES= graphics
MASTER_SITES= https://kornelix.net/downloads/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source

MAINTAINER= danfe@FreeBSD.org
COMMENT= Image editing and collection management program
WWW= https://kornelix.net/fotoxx/fotoxx.html
WWW= https://kornelix.net/fotocx/fotocx.html

LICENSE= GPLv3+

Expand All @@ -22,7 +21,7 @@ RUN_DEPENDS= xdg-open:devel/xdg-utils \

USES= desktop-file-utils gmake gnome jpeg pkgconfig
USE_GNOME= cairo glib20 gdkpixbuf2 gtk30
ALL_TARGET= fotoxx
ALL_TARGET= ${PORTNAME}
CXXFLAGS+= -Wno-register -Wno-writable-strings

WRKSRC= ${WRKDIR}/${PORTNAME}
Expand All @@ -31,11 +30,7 @@ PORTDOCS= *

OPTIONS_DEFINE= DOCS

post-patch:
@${REINPLACE_CMD} -e \
'/#include/s,wait\.h,sys/&,' ${WRKSRC}/fotoxx.h

post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fotoxx
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions graphics/fotoxx/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1702722295
SHA256 (fotoxx-23.82-source.tar.gz) = 323c34903fa4fd96b38a3f5997af970e4ed4f33200b579fdb36165f248d31eb3
SIZE (fotoxx-23.82-source.tar.gz) = 16257916
TIMESTAMP = 1707302474
SHA256 (fotocx-24.11-source.tar.gz) = bc3e12a7ae2deb80ff41b14d392f15010eed93eb383dd184d605967c47a78b95
SIZE (fotocx-24.11-source.tar.gz) = 16322678
22 changes: 11 additions & 11 deletions graphics/fotoxx/files/patch-fotoxx.cc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
--- fotoxx.cc.orig 2023-12-02 22:45:44 UTC
+++ fotoxx.cc
@@ -294,7 +294,7 @@ int main(int argc, ch *argv[])
// delete fotoxx temp files if owner process is no longer running
--- fotocx.cc.orig 2024-02-07 10:14:27 UTC
+++ fotocx.cc
@@ -317,7 +317,7 @@ int main(int argc, ch *argv[])
// delete fotocx temp files if owner process is no longer running

pidlist = 0;
- snprintf(buff,200,"pidof fotoxx fotoxx.x"); // get active fotoxx PIDs 23.3
+ snprintf(buff,200,"pgrep -d\\ fotoxx fotoxx.x");
- snprintf(buff,200,"pidof fotocx fotocx.x"); // get active fotocx PIDs 23.3
+ snprintf(buff,200,"pgrep -d\\ fotocx fotocx.x");
fid = popen(buff,"r");
if (fid) {
pp = fgets_trim(buff,200,fid);
@@ -432,13 +432,15 @@ int main(int argc, ch *argv[])
pp = fgets_trim(buff,200,fid);
@@ -455,13 +455,15 @@ int main(int argc, ch *argv[])

// get SMP thread count // 23.3

- NSMP = 0; // assume at least 4 threads
- NSMP = 0; // assume at least 4 threads
+ NSMP = get_nprocs();
+#if 0
fid = popen("lscpu | grep 'CPU(s):'","r");
Expand All @@ -23,6 +23,6 @@
if (pp && strmatchN(pp,"CPU(s):",7)) NSMP = atoi(pp+8); // default: 2 per P-core + 1 per E-core
}
+#endif
if (NSMP < 1) { // 23.80
if (NSMP < 1) { // 23.80
Plog(1,"cannot get SMP thread count, assume 4 \n");
NSMP = 4;
20 changes: 9 additions & 11 deletions graphics/fotoxx/pkg-plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin/fotoxx
share/applications/fotoxx.desktop
bin/fotocx
share/applications/fotocx.desktop
%%DATADIR%%/data/KB_shortcuts_E
%%DATADIR%%/data/README
%%DATADIR%%/data/colorwheel.jpg
Expand Down Expand Up @@ -77,14 +77,13 @@ share/applications/fotoxx.desktop
%%DATADIR%%/data/patterns/wet-turquoise.jpg
%%DATADIR%%/data/patterns/wood.jpg
%%DATADIR%%/data/plugins
%%DATADIR%%/data/popup_text
%%DATADIR%%/data/raw_loader_commands
%%DATADIR%%/data/slideshow-tone.oga
%%DATADIR%%/data/tags_defined
%%DATADIR%%/data/userguide
%%DATADIR%%/data/widgets.css
%%DATADIR%%/data/worldcities.txt
%%DATADIR%%/icons/fotoxx.png
%%DATADIR%%/icons/fotocx.png
%%DATADIR%%/images/HDF-paint.png
%%DATADIR%%/images/HDF.png
%%DATADIR%%/images/HDR-adjust.png
Expand Down Expand Up @@ -164,8 +163,7 @@ share/applications/fotoxx.desktop
%%DATADIR%%/images/denoise.jpg
%%DATADIR%%/images/devmenu.png
%%DATADIR%%/images/dither1.png
%%DATADIR%%/images/dither2.png
%%DATADIR%%/images/dither3.jpg
%%DATADIR%%/images/dither2.jpg
%%DATADIR%%/images/draw-box.png
%%DATADIR%%/images/draw-line.png
%%DATADIR%%/images/draw-oval.png
Expand Down Expand Up @@ -198,8 +196,8 @@ share/applications/fotoxx.desktop
%%DATADIR%%/images/flatten2.png
%%DATADIR%%/images/folder-tree.png
%%DATADIR%%/images/folder.png
%%DATADIR%%/images/fotoxx-views.jpg
%%DATADIR%%/images/fotoxx.png
%%DATADIR%%/images/fotocx-views.jpg
%%DATADIR%%/images/fotocx.png
%%DATADIR%%/images/gallery-screen.png
%%DATADIR%%/images/gallery-sort.png
%%DATADIR%%/images/gallery-view.jpg
Expand Down Expand Up @@ -324,7 +322,6 @@ share/applications/fotoxx.desktop
%%DATADIR%%/images/stack-split.png
%%DATADIR%%/images/stack-split2.png
%%DATADIR%%/images/stack-versions.png
%%DATADIR%%/images/stretch.png
%%DATADIR%%/images/texture.png
%%DATADIR%%/images/texture2.png
%%DATADIR%%/images/tiles2a.png
Expand Down Expand Up @@ -369,8 +366,9 @@ share/applications/fotoxx.desktop
%%DATADIR%%/images/vignette3.png
%%DATADIR%%/images/warning.png
%%DATADIR%%/images/warp.png
%%DATADIR%%/images/warp_radial.png
%%DATADIR%%/images/warps4.jpg
%%DATADIR%%/images/whiteball.png
%%DATADIR%%/images/zoom.png
share/man/man1/fotoxx.1.gz
share/metainfo/kornelix.fotoxx.metainfo.xml
share/man/man1/fotocx.1.gz
share/metainfo/kornelix.fotocx.metainfo.xml

0 comments on commit 8027fcb

Please sign in to comment.