- Update to version 20.04p14 and unbreak this classic port
- Drop workarounds for older math functions and reenable use of sinhl(3), coshl(3), and frexp(3) on FreeBSD versions that have them in libm - Remove useless definite article from COMMENT line - Install manual page with its section suffix (1) instead of "man" - Unmute installation commands, sort pkg-plist, trim pkg-descr while here PR: 203360 Submitted by: pfg Approved by: maintainer timeout (since 2015-09-26)
This commit is contained in:
parent
e4482bc1e2
commit
2d33a4cf46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399429
8 changed files with 68 additions and 63 deletions
|
@ -2,32 +2,36 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= xfractint
|
||||
PORTVERSION= 20.04p12
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 20.04p14
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.fractint.org/ftp/current/linux/ \
|
||||
MASTER_SITES= http://www.fractint.org/ftp/current/linux/ \
|
||||
http://twegner.dyndns.org/fractint/ftp/current/linux/
|
||||
|
||||
MAINTAINER= onemda@gmail.com
|
||||
COMMENT= The Unix port of fractint
|
||||
|
||||
BROKEN= No public distfiles
|
||||
COMMENT= Unix port of FractInt
|
||||
|
||||
USES= gmake
|
||||
USE_XORG= x11 xft
|
||||
|
||||
ALL_TARGET= ${PORTNAME}
|
||||
|
||||
DESKTOP_ENTRIES+="Xfracint" "${COMMENT}" "" "${PORTNAME}" "" "false"
|
||||
DESKTOP_ENTRIES= "Xfracint" "${COMMENT}" "" "${PORTNAME}" "" "false"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 1000034
|
||||
EXTRA_PATCHES= ${FILESDIR}/pre-1000034-libm-patch
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/xfractint ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
@${INSTALL_MAN} ${WRKSRC}/unix/xfractint.man ${STAGEDIR}${PREFIX}/man/man1/${MAN1}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/xfractint ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/unix/xfractint.man \
|
||||
${STAGEDIR}${MANPREFIX}/man/man1/xfractint.1
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/fractint.hlp ${STAGEDIR}${DATADIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/sstools.ini ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/fractint.hlp ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sstools.ini ${STAGEDIR}${DATADIR}
|
||||
.for dir in formulas ifs lsystem maps pars
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (xfractint-20.04p12.tar.gz) = e81affa9d3b3826f14502cedf1fc4a4dd41bcfa71ba32f8e4224748c5b9c69e0
|
||||
SIZE (xfractint-20.04p12.tar.gz) = 1335480
|
||||
SHA256 (xfractint-20.04p14.tar.gz) = 0e2856e596a44f5a8dbd4cb389683ead484776cdba4cce75c6c2a09f86c9b849
|
||||
SIZE (xfractint-20.04p14.tar.gz) = 1336285
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- common/mpmath_c.c.orig 2012-03-10 17:28:37.000000000 -0500
|
||||
+++ common/mpmath_c.c 2012-03-10 17:34:32.000000000 -0500
|
||||
@@ -220,7 +220,7 @@
|
||||
if(t.x < -690)
|
||||
e2x = 0.0;
|
||||
else
|
||||
- e2x = expl(t.x);
|
||||
+ e2x = exp(t.x);
|
||||
#ifdef XFRACT
|
||||
if (isnan(e2x) || isinf(e2x))
|
||||
e2x = 1.0;
|
|
@ -9,12 +9,3 @@
|
|||
#include <malloc.h>
|
||||
#endif
|
||||
#include "port.h"
|
||||
@@ -25,7 +25,7 @@
|
||||
#define FABS(x) fabsl(x)
|
||||
/* the following needs to be changed back to frexpl once the portability
|
||||
issue has been addressed JCO */
|
||||
-#ifndef XFRACT
|
||||
+#ifndef __FreeBSD__
|
||||
#define FREXP(x,y) frexpl(x,y)
|
||||
#else
|
||||
#define FREXP(x,y) frexp(x,y)
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
--- unix/fpu087.c.orig 2012-03-10 17:28:49.000000000 -0500
|
||||
+++ unix/fpu087.c 2012-03-10 17:36:40.000000000 -0500
|
||||
@@ -86,8 +86,8 @@
|
||||
*Sinh = 1.0;
|
||||
*Cosh = 1.0;
|
||||
} else {
|
||||
- *Sinh = (double)sinhl(*Angle);
|
||||
- *Cosh = (double)coshl(*Angle);
|
||||
+ *Sinh = (double)sinh(*Angle);
|
||||
+ *Cosh = (double)cosh(*Angle);
|
||||
}
|
||||
if (isnan(*Sinh) || isinf(*Sinh))
|
||||
*Sinh = 1.0;
|
||||
@@ -119,7 +119,7 @@
|
||||
{
|
||||
LDBL pwr,y;
|
||||
y = x->y;
|
||||
- pwr = expl(x->x);
|
||||
+ pwr = exp(x->x);
|
||||
if (isnan(pwr) || isinf(pwr))
|
||||
pwr = 1.0;
|
||||
z->x = (double)(pwr*cosl(y));
|
44
graphics/xfractint/files/pre-1000034-libm-patch
Normal file
44
graphics/xfractint/files/pre-1000034-libm-patch
Normal file
|
@ -0,0 +1,44 @@
|
|||
--- common/mpmath_c.c.orig 2012-03-10 17:28:37.000000000 -0500
|
||||
+++ common/mpmath_c.c 2012-03-10 17:34:32.000000000 -0500
|
||||
@@ -220,7 +220,7 @@
|
||||
if(t.x < -690)
|
||||
e2x = 0.0;
|
||||
else
|
||||
- e2x = expl(t.x);
|
||||
+ e2x = exp(t.x);
|
||||
#ifdef XFRACT
|
||||
if (isnan(e2x) || isinf(e2x))
|
||||
e2x = 1.0;
|
||||
--- common/soi.c.orig 2011-05-07 15:36:36.000000000 -0500
|
||||
+++ common/soi.c 2012-03-10 17:08:47.000000000 -0500
|
||||
@@ -25,7 +25,7 @@
|
||||
#define FABS(x) fabsl(x)
|
||||
/* the following needs to be changed back to frexpl once the portability
|
||||
issue has been addressed JCO */
|
||||
-#ifndef XFRACT
|
||||
+#ifndef __FreeBSD__
|
||||
#define FREXP(x,y) frexpl(x,y)
|
||||
#else
|
||||
#define FREXP(x,y) frexp(x,y)
|
||||
--- unix/fpu087.c.orig 2012-03-10 17:28:49.000000000 -0500
|
||||
+++ unix/fpu087.c 2012-03-10 17:36:40.000000000 -0500
|
||||
@@ -86,8 +86,8 @@
|
||||
*Sinh = 1.0;
|
||||
*Cosh = 1.0;
|
||||
} else {
|
||||
- *Sinh = (LDBL)sinhl(*Angle);
|
||||
- *Cosh = (LDBL)coshl(*Angle);
|
||||
+ *Sinh = (LDBL)sinh(*Angle);
|
||||
+ *Cosh = (LDBL)cosh(*Angle);
|
||||
}
|
||||
if (isnan(*Sinh) || isinf(*Sinh))
|
||||
*Sinh = 1.0;
|
||||
@@ -119,7 +119,7 @@
|
||||
{
|
||||
LDBL pwr,y;
|
||||
y = x->y;
|
||||
- pwr = expl(x->x);
|
||||
+ pwr = exp(x->x);
|
||||
if (isnan(pwr) || isinf(pwr))
|
||||
pwr = 1.0;
|
||||
z->x = (double)(pwr*cosl(y));
|
|
@ -1,6 +1,4 @@
|
|||
Xfractint - The Unix port of fractint.
|
||||
|
||||
Fractint is an IBM PC program to generate fractals, and was written by
|
||||
FractInt is an IBM PC program to generate fractals, and was written by
|
||||
the Stone Soup Group.
|
||||
|
||||
The Unix port was done by Ken Shirriff and modified by Scott D. Boyd.
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
bin/xfractint
|
||||
man/man1/xfractint.man.gz
|
||||
%%DATADIR%%/fractint.hlp
|
||||
%%DATADIR%%/sstools.ini
|
||||
man/man1/xfractint.1.gz
|
||||
%%DATADIR%%/formulas/fract001.frm
|
||||
%%DATADIR%%/formulas/fract002.frm
|
||||
%%DATADIR%%/formulas/fract003.frm
|
||||
|
@ -13,6 +11,7 @@ man/man1/xfractint.man.gz
|
|||
%%DATADIR%%/formulas/julitile.frm
|
||||
%%DATADIR%%/formulas/new_if.frm
|
||||
%%DATADIR%%/formulas/newton.frm
|
||||
%%DATADIR%%/fractint.hlp
|
||||
%%DATADIR%%/ifs/fract205.ifs
|
||||
%%DATADIR%%/ifs/fractint.ifs
|
||||
%%DATADIR%%/lsystem/fract205.l
|
||||
|
@ -37,6 +36,7 @@ man/man1/xfractint.man.gz
|
|||
%%DATADIR%%/maps/green.map
|
||||
%%DATADIR%%/maps/grey.map
|
||||
%%DATADIR%%/maps/grid.map
|
||||
%%DATADIR%%/maps/headach2.map
|
||||
%%DATADIR%%/maps/headache.map
|
||||
%%DATADIR%%/maps/landscap.map
|
||||
%%DATADIR%%/maps/lyapunov.map
|
||||
|
@ -58,3 +58,4 @@ man/man1/xfractint.man.gz
|
|||
%%DATADIR%%/pars/newphoen.par
|
||||
%%DATADIR%%/pars/orbits.par
|
||||
%%DATADIR%%/pars/phoenix.par
|
||||
%%DATADIR%%/sstools.ini
|
||||
|
|
Loading…
Reference in a new issue