summaryrefslogtreecommitdiff
path: root/x11/XaoS
diff options
context:
space:
mode:
authorrhialto <rhialto@pkgsrc.org>2021-06-26 21:21:32 +0000
committerrhialto <rhialto@pkgsrc.org>2021-06-26 21:21:32 +0000
commit8c8bfbf8241aad5bf094c787824a7cf64904dec5 (patch)
tree13537137c8dd78458110f06d192a4d789c7daff1 /x11/XaoS
parent6765a27104ba851964251ef830d93f9de44fc0e5 (diff)
downloadpkgsrc-8c8bfbf8241aad5bf094c787824a7cf64904dec5.tar.gz
x11/XaoS: update to version 4.2.1.
Lots of changes, the biggest of which is that it now uses Qt5 as GUI toolkit. 4.2 New Features Palette editor, save/load palettes, storing user palettes in the .xpf file. The option 'User formulas' maintains a history of recently used formulas. Fractal info in the Help menu. Batch rendering. Enabled panning in rotate mode. Unified Open and Open Image option. Save Image option moved to Save as. 4.1 New Features Added option to show Cartesian coordinate grid. Custom palette helps visualizing palette before applying changes through slider selectable values now. PNGs exported using 'Save Image' option can be imported back and users can continue zooming on it. 4.0 What's new in 4.0 The user interface is based on Qt, so XaoS has a modern look and feel. Works on macOS Catalina, which broke older versions. Animation rendering has been fixed. Menu entries are now standardized. TrueType text rendering so fonts look nicer and non-Latin alphabets are supported. Hindi, Icelandic, Russian, Serbian and Swedish translations. Several minor updates for the other languages. The language can be set in the View menu now. Lots of bug fixes. Zooming is possible also with the mouse wheel. Mouse cursor has been changed to cross. Iteration number N can be used in user formulas. Lots of source code cleanup and refactoring. It may not be obvious to end users but this will allow us to make better features and more frequent releases in the future. 3.7 There were quite a few bug fixes at this point since 3.6 was released.
Diffstat (limited to 'x11/XaoS')
-rw-r--r--x11/XaoS/Makefile68
-rw-r--r--x11/XaoS/PLIST42
-rw-r--r--x11/XaoS/distinfo12
-rw-r--r--x11/XaoS/patches/patch-aa36
-rw-r--r--x11/XaoS/patches/patch-src_engine_zoom.c25
5 files changed, 59 insertions, 124 deletions
diff --git a/x11/XaoS/Makefile b/x11/XaoS/Makefile
index 34e61bd7120..82c4246d2f0 100644
--- a/x11/XaoS/Makefile
+++ b/x11/XaoS/Makefile
@@ -1,37 +1,49 @@
-# $NetBSD: Makefile,v 1.40 2021/06/01 09:12:27 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2021/06/26 21:21:32 rhialto Exp $
-DISTNAME= xaos-3.6
-PKGREVISION= 2
+DISTNAME= xaos-4.2.1
CATEGORIES= x11
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xaos/}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=xaos-project/}
+GITHUB_PROJECT= XaoS
+GITHUB_TAG= refs/tags/release-${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://matek.hu/xaos/
COMMENT= Zoomable fractal rendering doodad
LICENSE= gnu-gpl-v2
-USE_TOOLS+= gmake msgfmt
-USE_PKGLOCALEDIR= YES
-GNU_CONFIGURE= YES
-INFO_FILES= yes
-
-SUBST_CLASSES+= paths
-SUBST_MESSAGE.paths= Fixing hardcoded paths.
-SUBST_STAGE.paths= pre-configure
-SUBST_FILES.paths= configure
-SUBST_SED.paths= -e 's,/usr/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,g'
-
-INSTALLATION_DIRS= ${PKGINFODIR}
-
-CHECK_PORTABILITY_SKIP+= help/applehelpconv
-CHECK_PORTABILITY_SKIP+= help/.svn/text-base/applehelpconv.svn-base
-
-LDFLAGS.SunOS+= -liconv
-
-.include "../../math/gsl/buildlink3.mk"
-.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-BUILDLINK_DEPMETHOD.libXt= build
-.include "../../x11/libXt/buildlink3.mk"
-.include "../../x11/libX11/buildlink3.mk"
+USE_TOOLS+= gmake
+USE_LANGUAGES+= c c++
+
+SUBST_CLASSES+= strip
+SUBST_MESSAGE.strip= Filling in missing path to strip
+SUBST_STAGE.strip= post-configure
+SUBST_FILES.strip= Makefile
+SUBST_SED.strip= -e 's,^STRIP .*=.*,STRIP = ${TOOLS_PLATFORM.strip},'
+
+SUBST_CLASSES+= path
+SUBST_MESSAGE.path= Fixing path to data files
+SUBST_STAGE.path= post-configure
+SUBST_FILES.path= src/include/config.h
+SUBST_SED.path= -e '/^.define DATAPATH/s,".*","${PREFIX}/share/XaoS",'
+
+WRKSRC= ${WRKDIR}/XaoS-release-${PKGVERSION_NOREV}
+
+INSTALLATION_DIRS+= ${PREFIX}/bin
+INSTALLATION_DIRS+= ${PREFIX}/share/XaoS
+
+do-configure:
+ cd ${WRKSRC} && env ${CONFIGURE_ENV} ${QTDIR}/bin/qmake
+
+# The upstream package has no working install target any more.
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/xaos ${DESTDIR}${PREFIX}/bin/
+.for dir in catalogs examples tutorial
+ cd ${WRKSRC} && pax -wr ${dir} ${DESTDIR}${PREFIX}/share/XaoS/
+.endfor
+ cd ${DESTDIR}${PREFIX}/share/XaoS/examples && \
+ mv */* . && \
+ rmdir 0rfelyus Hubicka Langston Malczak ZKovacs ZsKovacs
+
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/x11/XaoS/PLIST b/x11/XaoS/PLIST
index 3a2ca1d9350..99405ec645e 100644
--- a/x11/XaoS/PLIST
+++ b/x11/XaoS/PLIST
@@ -1,24 +1,17 @@
-@comment $NetBSD: PLIST,v 1.13 2014/07/13 09:17:04 mbalmer Exp $
+@comment $NetBSD: PLIST,v 1.14 2021/06/26 21:21:32 rhialto Exp $
bin/xaos
-info/xaos.info
-man/man6/xaos.6
share/XaoS/catalogs/README
-share/XaoS/catalogs/cesky.cat
-share/XaoS/catalogs/deutsch.cat
-share/XaoS/catalogs/english.cat
-share/XaoS/catalogs/espanhol.cat
-share/XaoS/catalogs/francais.cat
-share/XaoS/catalogs/italiano.cat
-share/XaoS/catalogs/magyar.cat
-share/XaoS/catalogs/portuguese.cat
-share/XaoS/catalogs/romanian.cat
-share/XaoS/doc/AUTHORS
-share/XaoS/doc/COPYING
-share/XaoS/doc/ChangeLog
-share/XaoS/doc/ChangeLog.old
-share/XaoS/doc/INSTALL
-share/XaoS/doc/NEWS
-share/XaoS/doc/TODO
+share/XaoS/catalogs/README.i18n
+share/XaoS/catalogs/cs.cat
+share/XaoS/catalogs/de.cat
+share/XaoS/catalogs/en.cat
+share/XaoS/catalogs/es.cat
+share/XaoS/catalogs/fr.cat
+share/XaoS/catalogs/hu.cat
+share/XaoS/catalogs/it.cat
+share/XaoS/catalogs/pt.cat
+share/XaoS/catalogs/ro.cat
+share/XaoS/catalogs/ru.cat
share/XaoS/examples/0rfel1.xpf
share/XaoS/examples/0rfel2.xpf
share/XaoS/examples/2spirals.xpf
@@ -190,7 +183,6 @@ share/XaoS/examples/ufo.xpf
share/XaoS/examples/warriormask.xpf
share/XaoS/examples/whisp.xpf
share/XaoS/examples/zsigapro.xpf
-share/XaoS/help/xaos.hlp
share/XaoS/tutorial/3dtutor.xaf
share/XaoS/tutorial/Bclosing.xaf
share/XaoS/tutorial/Bintro.xaf
@@ -218,6 +210,7 @@ share/XaoS/tutorial/head.xhf
share/XaoS/tutorial/incolor.xaf
share/XaoS/tutorial/innew.xhf
share/XaoS/tutorial/intro.xaf
+share/XaoS/tutorial/iter.xaf
share/XaoS/tutorial/julia.xaf
share/XaoS/tutorial/keys.xhf
share/XaoS/tutorial/line1.xhf
@@ -225,6 +218,7 @@ share/XaoS/tutorial/magnet.xaf
share/XaoS/tutorial/mset.xaf
share/XaoS/tutorial/msetren.xaf
share/XaoS/tutorial/new30.xaf
+share/XaoS/tutorial/new40.xaf
share/XaoS/tutorial/newton.xaf
share/XaoS/tutorial/octo.xaf
share/XaoS/tutorial/other.xaf
@@ -245,11 +239,3 @@ share/XaoS/tutorial/tree.xhf
share/XaoS/tutorial/trice.xaf
share/XaoS/tutorial/truecol.xaf
share/XaoS/tutorial/truecol.xhf
-share/locale/cs/LC_MESSAGES/xaos.mo
-share/locale/de/LC_MESSAGES/xaos.mo
-share/locale/es/LC_MESSAGES/xaos.mo
-share/locale/fr/LC_MESSAGES/xaos.mo
-share/locale/hu/LC_MESSAGES/xaos.mo
-share/locale/it/LC_MESSAGES/xaos.mo
-share/locale/pt/LC_MESSAGES/xaos.mo
-share/locale/ro/LC_MESSAGES/xaos.mo
diff --git a/x11/XaoS/distinfo b/x11/XaoS/distinfo
index 3f65b8dd3d6..73e68d73f5a 100644
--- a/x11/XaoS/distinfo
+++ b/x11/XaoS/distinfo
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.19 2015/12/29 23:50:14 dholland Exp $
+$NetBSD: distinfo,v 1.20 2021/06/26 21:21:32 rhialto Exp $
-SHA1 (xaos-3.6.tar.gz) = 0c68d25c4f9c8eaf557e37d9e4586a04ab56d7a0
-RMD160 (xaos-3.6.tar.gz) = 4cfe8e7f5b98d28cd320f9ab21a9c2d76d122133
-SHA512 (xaos-3.6.tar.gz) = 5f61df978b7842b84a52cfb28f7daf1a5ab11d9d7adadbd0dd5bfb60240fcb2fc59b2a3d34faff7896c0c44c32daaf3941071d70db3d58b06b1aef1bcd1022c1
-Size (xaos-3.6.tar.gz) = 2040707 bytes
-SHA1 (patch-aa) = b7f9bf3bf002cf43808e5cadf95c3418de0aec12
-SHA1 (patch-src_engine_zoom.c) = 50cc7d2ee805fcd5248f8696e53d9c97ddc689db
+SHA1 (xaos-4.2.1.tar.gz) = eab7e4e6786ec0d8622c7b328223a8d1b786c8dc
+RMD160 (xaos-4.2.1.tar.gz) = 8ddff5c13e22db46acba0ff04a0b0a8a7cb7edca
+SHA512 (xaos-4.2.1.tar.gz) = 58aa2c41d1171d4c8fa684707f4fc7619ab5f23cc902358d8bc3303fdd48b26cefe7d54dbf68a4aba9345a0ca97b752b185db19b67caa8b5e9dba50a8b6ad918
+Size (xaos-4.2.1.tar.gz) = 10916985 bytes
diff --git a/x11/XaoS/patches/patch-aa b/x11/XaoS/patches/patch-aa
deleted file mode 100644
index 3d5ca135428..00000000000
--- a/x11/XaoS/patches/patch-aa
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2014/07/13 09:17:04 mbalmer Exp $
-
-Rip out the 16 bit i387 specific code.
-
---- src/engine/fractal.c.orig 2013-11-01 07:54:21.000000000 +0000
-+++ src/engine/fractal.c
-@@ -47,13 +47,6 @@
- #include <complex.h>
- #include <plane.h>
- #include "../include/timers.h"
--#ifdef __GNUC__
--#ifdef __i386__
--#ifndef PC_64
--#include <i386/ctrl87.h>
--#endif
--#endif
--#endif
- #ifdef __alpha__
- #ifdef __linux__
- #include <asm/fpu.h>
-@@ -355,15 +348,6 @@ fractal_context *make_fractalc(const int
- {
- fractal_context *new_ctxt;
-
--#ifndef __BEOS__
--#ifdef __GNUC__
--#ifdef __i386__
--#ifndef NOASSEMBLY
-- _control87(PC_64 | MCW_EM | MCW_RC, MCW_PC | MCW_EM | MCW_RC);
--#endif
--#endif
--#endif
--#endif
- #ifdef __alpha__
- #ifdef __linux__
- extern void ieee_set_fp_control(unsigned long);
diff --git a/x11/XaoS/patches/patch-src_engine_zoom.c b/x11/XaoS/patches/patch-src_engine_zoom.c
deleted file mode 100644
index 90d4a3437d8..00000000000
--- a/x11/XaoS/patches/patch-src_engine_zoom.c
+++ /dev/null
@@ -1,25 +0,0 @@
-$NetBSD: patch-src_engine_zoom.c,v 1.2 2015/12/29 23:50:14 dholland Exp $
-
-Fix compilation on NetBSD 7 on i386.
-
---- src/engine/zoom.c.orig 2015-11-01 20:40:43.000000000 -0800
-+++ src/engine/zoom.c 2015-11-01 20:41:31.000000000 -0800
-@@ -138,13 +138,11 @@
- #endif
-
- #ifndef USE_i386ASM
--static void
--moveoldpoints(void *data1, struct taskinfo *task, int r1, int r2)
--REGISTERS(0);
--static void fillline_8(int line) REGISTERS(0);
--static void fillline_16(int line) REGISTERS(0);
--static void fillline_24(int line) REGISTERS(0);
--static void fillline_32(int line) REGISTERS(0);
-+static void moveoldpoints(void *data1, struct taskinfo *task, int r1, int r2);
-+static INLINE void fillline_8(int line);
-+static INLINE void fillline_16(int line);
-+static INLINE void fillline_24(int line);
-+static INLINE void fillline_32(int line);
- #endif
-
- /*first of all inline driver section */