Tue Aug 28 11:54:54 2018 UTC ()
Update to 20.4.14. The changelog, while extremely long, only reaches back
to 20.0. Please consult https://fractint.org/ftp/current/dos/whatsnew.txt
for an approximate understanding of what's new since 3.10 (the previous
version in pkgsrc).


(schmonz)
diff -r1.14 -r1.15 pkgsrc/math/xfractint/Makefile
diff -r1.3 -r1.4 pkgsrc/math/xfractint/PLIST
diff -r1.12 -r1.13 pkgsrc/math/xfractint/distinfo
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-Makefile
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_biginit.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_fracsubr.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_fractalb.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_fractals.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_fractint.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_frasetup.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_lsys.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_lsysf.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_memory.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_miscres.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_prompts1.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_prompts2.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_soi.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-common_soi1.c
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-headers_externs.h
diff -r0 -r1.1 pkgsrc/math/xfractint/patches/patch-headers_port.h
diff -r1.4 -r0 pkgsrc/math/xfractint/patches/patch-aa
diff -r1.5 -r0 pkgsrc/math/xfractint/patches/patch-ab
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ac
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ad
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ae
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-af
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ai
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-aj
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ak
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-am
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ap
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ar
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-as
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-at
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-au
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-av
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-aw
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-ax
diff -r1.1 -r0 pkgsrc/math/xfractint/patches/patch-externs.h
diff -r1.3 -r0 pkgsrc/math/xfractint/patches/patch-ag
diff -r1.3 -r0 pkgsrc/math/xfractint/patches/patch-ah
diff -r1.3 -r0 pkgsrc/math/xfractint/patches/patch-ao
diff -r1.2 -r0 pkgsrc/math/xfractint/patches/patch-al
diff -r1.2 -r0 pkgsrc/math/xfractint/patches/patch-an
diff -r1.2 -r0 pkgsrc/math/xfractint/patches/patch-aq

cvs diff -r1.14 -r1.15 pkgsrc/math/xfractint/Makefile (expand / switch to unified diff)

--- pkgsrc/math/xfractint/Makefile 2018/01/01 18:16:38 1.14
+++ pkgsrc/math/xfractint/Makefile 2018/08/28 11:54:54 1.15
@@ -1,38 +1,31 @@ @@ -1,38 +1,31 @@
1# $NetBSD: Makefile,v 1.14 2018/01/01 18:16:38 rillig Exp $ 1# $NetBSD: Makefile,v 1.15 2018/08/28 11:54:54 schmonz Exp $
2 2
3DISTNAME= xfrac310 3DISTNAME= xfractint-20.04p14
4PKGNAME= xfractint-3.10 4PKGNAME= ${DISTNAME:S/04p/4./}
5PKGREVISION= 2 
6CATEGORIES= math 5CATEGORIES= math
7MASTER_SITES= https://fractint.org/ftp/current/linux/ 6MASTER_SITES= https://fractint.org/ftp/current/linux/
8EXTRACT_SUFX= .zip 
9 7
10MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://fractint.org/ 9HOMEPAGE= https://fractint.org/
12COMMENT= Fractint for X11 10COMMENT= Fractint for X11
13 11
14WRKSRC= ${WRKDIR} 
15USE_LIBTOOL= yes 12USE_LIBTOOL= yes
 13USE_TOOLS+= gmake
16 14
17MAKE_FLAGS+= BINDIR=${PREFIX}/bin 15MAKE_FLAGS+= BINDIR=${PREFIX}/bin
18MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1 16MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}/man1
19MAKE_FLAGS+= SRCDIR=${PREFIX}/share/xfractint 17MAKE_FLAGS+= SRCDIR=${PREFIX}/share/xfractint
20BUILD_TARGET= xfractint 18BUILD_TARGET= xfractint
21 19
22INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/xfractint 20INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/xfractint/pars
 21INSTALLATION_DIRS+= share/xfractint/formulas share/xfractint/ifs
 22INSTALLATION_DIRS+= share/xfractint/lsystem share/xfractint/maps
 23INSTALLATION_DIRS+= share/xfractint/extra
23 24
24MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q} 25MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
25 26
26# xfractint sources assume <malloc.h> exists. 
27# Create a fake one for platforms that don't have it. 
28# 
29post-wrapper: 
30 if ${TEST} ! -f /usr/include/malloc.h; then \ 
31 ${ECHO} "#include <stdlib.h>" \ 
32 > ${BUILDLINK_DIR}/include/malloc.h; \ 
33 fi 
34 
35.include "../../mk/curses.buildlink3.mk" 27.include "../../mk/curses.buildlink3.mk"
36.include "../../mk/termcap.buildlink3.mk" 28.include "../../mk/termcap.buildlink3.mk"
37.include "../../x11/libX11/buildlink3.mk" 29.include "../../x11/libX11/buildlink3.mk"
 30.include "../../x11/libXft/buildlink3.mk"
38.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/math/xfractint/PLIST (expand / switch to unified diff)

--- pkgsrc/math/xfractint/PLIST 2009/06/14 18:05:50 1.3
+++ pkgsrc/math/xfractint/PLIST 2018/08/28 11:54:54 1.4
@@ -1,167 +1,64 @@ @@ -1,167 +1,64 @@
1@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:05:50 joerg Exp $ 1@comment $NetBSD: PLIST,v 1.4 2018/08/28 11:54:54 schmonz Exp $
2bin/xfractint 2bin/xfractint
3man/man1/xfractint.1 3man/man1/xfractint.1
4share/xfractint/Carlson1.map 4share/xfractint/debugfla.txt
5share/xfractint/Digiorg1.map 5share/xfractint/extra/all_maps.zip
6share/xfractint/Digiorg2.map 6share/xfractint/extra/frmtut.zip
7share/xfractint/Gallet01.map 7share/xfractint/extra/if_else.zip
8share/xfractint/Gallet02.map 8share/xfractint/extra/phctutor.zip
9share/xfractint/Gallet03.map 9share/xfractint/formulas/fract001.frm
10share/xfractint/Gallet04.map 10share/xfractint/formulas/fract002.frm
11share/xfractint/Gallet05.map 11share/xfractint/formulas/fract003.frm
12share/xfractint/Gallet06.map 12share/xfractint/formulas/fract196.frm
13share/xfractint/Gallet07.map 13share/xfractint/formulas/fract200.frm
14share/xfractint/Gallet08.map 14share/xfractint/formulas/fract_sy.frm
15share/xfractint/Gallet09.map 15share/xfractint/formulas/fractint.frm
16share/xfractint/Gallet10.map 16share/xfractint/formulas/ikenaga.frm
17share/xfractint/Gallet11.map 17share/xfractint/formulas/julitile.frm
18share/xfractint/Gallet12.map 18share/xfractint/formulas/new_if.frm
19share/xfractint/Gallet13.map 19share/xfractint/formulas/newton.frm
20share/xfractint/Gallet14.map 
21share/xfractint/Gallet15.map 
22share/xfractint/Gallet16.map 
23share/xfractint/Gallet17.map 
24share/xfractint/Gallet18.map 
25share/xfractint/Lindaa01.map 
26share/xfractint/Lindaa02.map 
27share/xfractint/Lindaa03.map 
28share/xfractint/Lindaa04.map 
29share/xfractint/Lindaa05.map 
30share/xfractint/Lindaa06.map 
31share/xfractint/Lindaa07.map 
32share/xfractint/Lindaa08.map 
33share/xfractint/Lindaa09.map 
34share/xfractint/Lindaa10.map 
35share/xfractint/Lindaa11.map 
36share/xfractint/Lindaa12.map 
37share/xfractint/Lindaa14.map 
38share/xfractint/Lindaa15.map 
39share/xfractint/Lindaa16.map 
40share/xfractint/Lindaa17.map 
41share/xfractint/Morgan1.map 
42share/xfractint/Morgan2.map 
43share/xfractint/Morgan3.map 
44share/xfractint/Morgen3.map 
45share/xfractint/Skydye01.map 
46share/xfractint/Skydye02.map 
47share/xfractint/Skydye03.map 
48share/xfractint/Skydye04.map 
49share/xfractint/Skydye05.map 
50share/xfractint/Skydye06.map 
51share/xfractint/Skydye07.map 
52share/xfractint/Skydye08.map 
53share/xfractint/Skydye09.map 
54share/xfractint/Skydye10.map 
55share/xfractint/Skydye11.map 
56share/xfractint/Skydye12.map 
57share/xfractint/Wizzl011.map 
58share/xfractint/Wizzl012.map 
59share/xfractint/Wizzl013.map 
60share/xfractint/Wizzl014.map 
61share/xfractint/Wizzl015.map 
62share/xfractint/Wizzl016.map 
63share/xfractint/Wizzl017.map 
64share/xfractint/Wizzl018.map 
65share/xfractint/Wizzl019.map 
66share/xfractint/Wizzl020.map 
67share/xfractint/altern.map 
68share/xfractint/blues.map 
69share/xfractint/bud2.map 
70share/xfractint/bud3.map 
71share/xfractint/bud4.map 
72share/xfractint/bud5.map 
73share/xfractint/bud6.map 
74share/xfractint/bud7.map 
75share/xfractint/cellular.par 
76share/xfractint/chroma.map 
77share/xfractint/damien1.map 
78share/xfractint/damien2.map 
79share/xfractint/damien3.map 
80share/xfractint/damien4.map 
81share/xfractint/damien5.map 
82share/xfractint/default.map 
83share/xfractint/demo.par 
84share/xfractint/droz10.map 
85share/xfractint/droz11.map 
86share/xfractint/droz12.map 
87share/xfractint/droz13.map 
88share/xfractint/droz14.map 
89share/xfractint/droz15.map 
90share/xfractint/droz21.map 
91share/xfractint/droz22.map 
92share/xfractint/droz23.map 
93share/xfractint/droz28.map 
94share/xfractint/droz31.map 
95share/xfractint/droz33.map 
96share/xfractint/droz34.map 
97share/xfractint/droz35.map 
98share/xfractint/droz36.map 
99share/xfractint/droz38.map 
100share/xfractint/droz39.map 
101share/xfractint/droz40.map 
102share/xfractint/droz44.map 
103share/xfractint/droz46.map 
104share/xfractint/droz49.map 
105share/xfractint/droz52.map 
106share/xfractint/droz54.map 
107share/xfractint/droz56.map 
108share/xfractint/droz60.map 
109share/xfractint/droz62.map 
110share/xfractint/droz8.map 
111share/xfractint/drozdis1.map 
112share/xfractint/firestrm.map 
113share/xfractint/fract18.par 
114share/xfractint/fract19.par 
115share/xfractint/fract200.frm 
116share/xfractint/fract200.par 
117share/xfractint/fractint.frm 
118share/xfractint/fractint.hlp 20share/xfractint/fractint.hlp
119share/xfractint/fractint.ifs 21share/xfractint/fractsrc.txt
120share/xfractint/fractint.l 22share/xfractint/hc.txt
121share/xfractint/fractint.par 23share/xfractint/ifs/fractint.ifs
122share/xfractint/froth3.map 24share/xfractint/lsystem/fractint.l
123share/xfractint/froth316.map 25share/xfractint/lsystem/penrose.l
124share/xfractint/froth6.map 26share/xfractint/lsystem/tiling.l
125share/xfractint/froth616.map 27share/xfractint/maps/altern.map
126share/xfractint/gamma1.map 28share/xfractint/maps/blues.map
127share/xfractint/gamma2.map 29share/xfractint/maps/chroma.map
128share/xfractint/glasses1.map 30share/xfractint/maps/default.map
129share/xfractint/glasses2.map 31share/xfractint/maps/firestrm.map
130share/xfractint/goodega.map 32share/xfractint/maps/froth3.map
131share/xfractint/green.map 33share/xfractint/maps/froth316.map
132share/xfractint/grey.map 34share/xfractint/maps/froth6.map
133share/xfractint/grid.map 35share/xfractint/maps/froth616.map
134share/xfractint/headache.map 36share/xfractint/maps/gamma1.map
135share/xfractint/icons.par 37share/xfractint/maps/gamma2.map
136share/xfractint/landscap.map 38share/xfractint/maps/glasses1.map
137share/xfractint/lkmtch00.map 39share/xfractint/maps/glasses2.map
138share/xfractint/lkmtch01.map 40share/xfractint/maps/goodega.map
139share/xfractint/lkmtch02.map 41share/xfractint/maps/green.map
140share/xfractint/lkmtch03.map 42share/xfractint/maps/grey.map
141share/xfractint/lkmtch04.map 43share/xfractint/maps/grid.map
142share/xfractint/lkmtch05.map 44share/xfractint/maps/headache.map
143share/xfractint/lkmtch06.map 45share/xfractint/maps/landscap.map
144share/xfractint/lkmtch07.map 46share/xfractint/maps/lyapunov.map
145share/xfractint/lkmtch08.map 47share/xfractint/maps/neon.map
146share/xfractint/lkmtch09.map 48share/xfractint/maps/paintjet.map
147share/xfractint/lkmtch10.map 49share/xfractint/maps/royal.map
148share/xfractint/lkmtch11.map 50share/xfractint/maps/topo.map
149share/xfractint/lkmtch12.map 51share/xfractint/maps/volcano.map
150share/xfractint/lkmtch13.map 52share/xfractint/pars/cellular.par
151share/xfractint/lkmtch14.map 53share/xfractint/pars/demo.par
152share/xfractint/lkmtch15.map 54share/xfractint/pars/fract18.par
153share/xfractint/lkmtch16.map 55share/xfractint/pars/fract19.par
154share/xfractint/lkmtch17.map 56share/xfractint/pars/fract200.par
155share/xfractint/lkmtch18.map 57share/xfractint/pars/fractint.par
156share/xfractint/lkmtch19.map 58share/xfractint/pars/icons.par
157share/xfractint/lyapunov.map 59share/xfractint/pars/lyapunov.par
158share/xfractint/lyapunov.par 60share/xfractint/pars/music.par
159share/xfractint/music.par 61share/xfractint/pars/newphoen.par
160share/xfractint/neon.map 62share/xfractint/pars/orbits.par
161share/xfractint/paintjet.map 63share/xfractint/pars/phoenix.par
162share/xfractint/penrose.l 64share/xfractint/sstools.ini
163share/xfractint/phoenix.par 
164share/xfractint/royal.map 
165share/xfractint/tiling.l 
166share/xfractint/topo.map 
167share/xfractint/volcano.map 

cvs diff -r1.12 -r1.13 pkgsrc/math/xfractint/distinfo (expand / switch to unified diff)

--- pkgsrc/math/xfractint/distinfo 2017/05/22 23:36:44 1.12
+++ pkgsrc/math/xfractint/distinfo 2018/08/28 11:54:54 1.13
@@ -1,31 +1,23 @@ @@ -1,31 +1,23 @@
1$NetBSD: distinfo,v 1.12 2017/05/22 23:36:44 joerg Exp $ 1$NetBSD: distinfo,v 1.13 2018/08/28 11:54:54 schmonz Exp $
2 2
3SHA1 (xfrac310.zip) = 420de4ca20623b4fe6b6367a269e5525b6bff3af 3SHA1 (xfractint-20.04p14.tar.gz) = fff0a713145ffd271c6ce4bf8ad657404959895a
4RMD160 (xfrac310.zip) = ede481d77f8f5b71a6cef9d7ec4b2e09d9662f5b 4RMD160 (xfractint-20.04p14.tar.gz) = 8d69895ca3237caa76c9c1c93ee5abaeb77191c2
5SHA512 (xfrac310.zip) = 8ccc48ba445ed295b18f18234e4d60e78a739cf83f6594659a9ed43a279e5bba46e1de008db3ea33e01b9de430c74c4002f434cf9e7a2a8fbd1c0fdca1633872 5SHA512 (xfractint-20.04p14.tar.gz) = 7d13c719f4f4b0680455b9b7f86644928d8145606973d208e5bf0d26b4f7b04ddbf8d2080ea35c872b21e079f1a116f3ef94e9acb36a45d43c16403c473e2acd
6Size (xfrac310.zip) = 1074760 bytes 6Size (xfractint-20.04p14.tar.gz) = 1336285 bytes
7SHA1 (patch-aa) = 51d654407fc5621ba69bb5656f7ff7ba65d8ef39 7SHA1 (patch-Makefile) = 03a988a7e92d657ce127c86fe9ae5e096d8f496c
8SHA1 (patch-ab) = a68613c56f7ce81433aa73529e4eef7a9a9df694 8SHA1 (patch-common_biginit.c) = 41a1bdf7f9fe36ffb1a1b68cff680d0f325bc097
9SHA1 (patch-ac) = 443495aed2e6b7ca8f4659b298b4b789d681c847 9SHA1 (patch-common_fracsubr.c) = 8b2b1229cf0b596fb2991237f834d1f756d6b3ce
10SHA1 (patch-ad) = 9e337c7bff36aee223630bbc1585c91bb1961325 10SHA1 (patch-common_fractalb.c) = 37c07f9721f7854bb7e731e583255bfa69e4602c
11SHA1 (patch-ae) = 6a7c39bafa4832e920f2cb1458a94b817f1832e5 11SHA1 (patch-common_fractals.c) = 147ad7576a703d851b258dcf2285c921f00912c3
12SHA1 (patch-af) = d95099b13cdef7421fd09be09627e4db5646e948 12SHA1 (patch-common_fractint.c) = e3deac60b59bf2bf510a422c7516f6fc40242a28
13SHA1 (patch-ag) = 86e16be766422192b957ef413ed651ea0a1d4388 13SHA1 (patch-common_frasetup.c) = 437fabb24fe719f8cef3a71e6752c9f2e0cc6c25
14SHA1 (patch-ah) = ced928746cac6c07b7ad3c6cae6800179d8dc256 14SHA1 (patch-common_lsys.c) = 45829daabf07f43ace1e5d5c76ae6a22a31f8e1c
15SHA1 (patch-ai) = e6b4ef5637cc8d05d6dd9b0f1e098d51bc692310 15SHA1 (patch-common_lsysf.c) = 0f2a7420647c8c62b7ff0c549eeba03dad84b734
16SHA1 (patch-aj) = 578a8a0dcff9021f65bd5368ae8232c89a325081 16SHA1 (patch-common_memory.c) = c3e9cf9f1056041a91bd77001025a61f3b1aa477
17SHA1 (patch-ak) = 2d128d7575070d3452702f219aa51c468928f38a 17SHA1 (patch-common_miscres.c) = 835135f844491b1dbdb61070d27ad12c380a5bd8
18SHA1 (patch-al) = 73cf3be0f7cf656f8235acc1f9a0625179a8a36d 18SHA1 (patch-common_prompts1.c) = 4ca3330a960a536d23e336609fce548d73fce92e
19SHA1 (patch-am) = ae214e36ff64009d18724e80638f1fa55544d19e 19SHA1 (patch-common_prompts2.c) = 2f5dde94b79aeb18e4c7c9a548e5a9c7febe02cc
20SHA1 (patch-an) = d4effdac0afa8efc68cc3eae80e62bfe8c9281a1 20SHA1 (patch-common_soi.c) = d5c48bbc8d71c45e9ae98ac94dfd46ece6cee87d
21SHA1 (patch-ao) = c9fb472e44bbc4d939fe00725be9b06fd8cecb26 21SHA1 (patch-common_soi1.c) = 72d5cb187512b34d87e660e316e3d95ab023e4f0
22SHA1 (patch-ap) = 87f6bc9db67554f600428e3369f83849b81d23fa 22SHA1 (patch-headers_externs.h) = fdd427cfe013f9d4e77486a537d60ade3488c493
23SHA1 (patch-aq) = 58fdcdcf92c6d1a5bd63f0652d74d73b98a2c0a6 23SHA1 (patch-headers_port.h) = 4f6be6b63369b5aa80400473ac82703de60dfd46
24SHA1 (patch-ar) = 6052e96b0b008c75ca43f71dd26452195d9b96de 
25SHA1 (patch-as) = e35ce93cb4ef9785eb144e7a8b4d26b2b323d8c9 
26SHA1 (patch-at) = 01a906fe87d2bd56f2fc3dd2196445c6c2b3cc40 
27SHA1 (patch-au) = c2e983ba469379e910c695a56e1ace9c2e5ce791 
28SHA1 (patch-av) = 9ea1fc10c51a4cf5d374c5dacbbabd85f1977819 
29SHA1 (patch-aw) = 5aa67b824d005c5ba7a0d821422e627573370b10 
30SHA1 (patch-ax) = 33169e3d0b2577b6c4ad2eda77e72ca2160a24fd 
31SHA1 (patch-externs.h) = b3704abc87131ade8fbac96749e97f70a753c565 

File Added: pkgsrc/math/xfractint/patches/patch-Makefile
$NetBSD: patch-Makefile,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- Makefile.orig	2014-05-03 13:12:33.000000000 +0000
+++ Makefile
@@ -159,19 +159,21 @@ CC = /usr/bin/gcc
 # LIBS = -L/usr/X11R6/lib -lX11 -lm -lncurses
 # LIBS = -lX11 -lm -lcurses
 
-ifeq ($(ARCH),athlon64)
-LIBS = -L/usr/X11R6/lib64 -lX11 -lm
-else
-LIBS = -L/usr/X11R6/lib -lX11 -lm
-endif
+#ifeq ($(ARCH),athlon64)
+#LIBS = -L/usr/X11R6/lib64 -lX11 -lm
+#else
+#LIBS = -L/usr/X11R6/lib -lX11 -lm
+#endif
+#
+#ifeq ($(NCURSES),-DNCURSES)
+#LIBS += -lncurses
+#endif
+#
+#ifeq ($(WITHXFT),-DWITH_XFT)
+#LIBS += -lXft -lfontconfig
+#endif
 
-ifeq ($(NCURSES),-DNCURSES)
-LIBS += -lncurses
-endif
-
-ifeq ($(WITHXFT),-DWITH_XFT)
-LIBS += -lXft -lfontconfig
-endif
+LIBS = ${X11_LDFLAGS} ${LDFLAGS} -lX11 -lXft -lm -lcurses -ltermcap
 
 # HPUX fixes thanks to David Allport, Bill Broadley, and R. Lloyd.
 # AIX fixes thanks to David Sanderson & Elliot Jaffe.
@@ -343,18 +345,15 @@ clean:
 	cd $(UDIR) ; ${MAKE} clean
 
 install: xfractint fractint.hlp
-	$(STRIP) xfractint
-	$(INSTALL) -d $(BINDIR) $(MANDIR) $(SRCDIR)/$(PDIR) $(SRCDIR)/$(FDIR) \
-		$(SRCDIR)/$(IDIR) $(SRCDIR)/$(LDIR) $(SRCDIR)/$(MDIR) $(SRCDIR)/$(XDIR)
-	$(INSTALL) xfractint -T $(BINDIR)/xfractint;
-	$(INSTALL) -m 644 -T $(UDIR)/xfractint.man $(MANDIR)/xfractint.1;
-	$(INSTALL) -m 644 -t $(SRCDIR) fractint.hlp sstools.ini $(DOCS)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(PDIR) $(PARFILES)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(FDIR) $(FRMFILES)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(IDIR) $(IFSFILES)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(LDIR) $(LFILES)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(MDIR) $(MAPFILES)
-	$(INSTALL) -m 644 -t $(SRCDIR)/$(XDIR) $(XTRAFILES)
+	$(BSD_INSTALL_PROGRAM) xfractint $(DESTDIR)$(BINDIR)/xfractint;
+	$(BSD_INSTALL_MAN) $(UDIR)/xfractint.man $(DESTDIR)$(MANDIR)/xfractint.1;
+	$(BSD_INSTALL_DATA) fractint.hlp sstools.ini $(DOCS) $(DESTDIR)$(SRCDIR)
+	$(BSD_INSTALL_DATA) $(PARFILES) $(DESTDIR)$(SRCDIR)/$(PDIR)
+	$(BSD_INSTALL_DATA) $(FRMFILES) $(DESTDIR)$(SRCDIR)/$(FDIR)
+	$(BSD_INSTALL_DATA) $(IFSFILES) $(DESTDIR)$(SRCDIR)/$(IDIR)
+	$(BSD_INSTALL_DATA) $(LFILES) $(DESTDIR)$(SRCDIR)/$(LDIR)
+	$(BSD_INSTALL_DATA) $(MAPFILES) $(DESTDIR)$(SRCDIR)/$(MDIR)
+	$(BSD_INSTALL_DATA) $(XTRAFILES) $(DESTDIR)$(SRCDIR)/$(XDIR)
 
 uninstall:
 	cd $(SRCDIR); rm -f $(PARFILES)

File Added: pkgsrc/math/xfractint/patches/patch-common_biginit.c
$NetBSD: patch-common_biginit.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/biginit.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/biginit.c
@@ -7,11 +7,7 @@ is in the allocations of memory for the 
 */
 
 #include <string.h>
-#ifdef __APPLE__
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"
 #include "prototyp.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_fracsubr.c
$NetBSD: patch-common_fracsubr.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/fracsubr.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/fracsubr.c
@@ -352,8 +352,8 @@ init_restart:
 
    if(fractype != CELLULAR && fractype != ANT)  /* fudgetolong fails w >10 digits in double */
    {
-      creal = fudgetolong(param[0]); /* integer equivs for it all */
-      cimag = fudgetolong(param[1]);
+      my_creal = fudgetolong(param[0]); /* integer equivs for it all */
+      my_cimag = fudgetolong(param[1]);
       xmin  = fudgetolong(xxmin);
       xmax  = fudgetolong(xxmax);
       x3rd  = fudgetolong(xx3rd);

File Added: pkgsrc/math/xfractint/patches/patch-common_fractalb.c
$NetBSD: patch-common_fractalb.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/fractalb.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/fractalb.c
@@ -8,13 +8,7 @@ fractal routines.
 
 #include <limits.h>
 #include <string.h>
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#elif !defined(__386BSD__)
-#include <malloc.h>
-#endif
+#include <stdlib.h>
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"
 #include "prototyp.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_fractals.c
$NetBSD: patch-common_fractals.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/fractals.c.orig	2015-01-19 18:35:16.000000000 +0000
+++ common/fractals.c
@@ -39,13 +39,7 @@ an appropriate setup, per_image, per_pix
 
 #include <limits.h>
 #include <string.h>
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#elif !defined(__386BSD__)
-#include <malloc.h>
-#endif
+#include <stdlib.h>
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"
 #include "prototyp.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_fractint.c
$NetBSD: patch-common_fractint.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/fractint.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/fractint.c
@@ -95,7 +95,7 @@ int compiled_by_turboc = 0;
 
         int     fractype;               /* if == 0, use Mandelbrot  */
         char    stdcalcmode;            /* '1', '2', 'g', 'b'       */
-        long    creal, cimag;           /* real, imag'ry parts of C */
+        long    my_creal, my_cimag;     /* real, imag'ry parts of C */
         long    delx, dely;             /* screen pixel increments  */
         long    delx2, dely2;           /* screen pixel increments  */
         LDBL    delxx, delyy;           /* screen pixel increments  */

File Added: pkgsrc/math/xfractint/patches/patch-common_frasetup.c
$NetBSD: patch-common_frasetup.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/frasetup.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/frasetup.c
@@ -1,12 +1,6 @@
 #include <limits.h>
 #include <string.h>
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#elif !defined(__386BSD__)
-#include <malloc.h>
-#endif
+#include <stdlib.h>
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"
 #include "prototyp.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_lsys.c
$NetBSD: patch-common_lsys.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/lsys.c.orig	2015-01-19 18:35:16.000000000 +0000
+++ common/lsys.c
@@ -1,12 +1,6 @@
 
 #include <string.h>
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_lsysf.c
$NetBSD: patch-common_lsysf.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/lsysf.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/lsysf.c
@@ -1,11 +1,5 @@
 #include <string.h>
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_memory.c
$NetBSD: patch-common_memory.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/memory.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/memory.c
@@ -1,10 +1,6 @@
 #include <string.h>
 #include <limits.h>
-#ifdef __APPLE__
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
 #if (!defined(XFRACT) && !defined(WINFRACT))
 #include <io.h>

File Added: pkgsrc/math/xfractint/patches/patch-common_miscres.c
$NetBSD: patch-common_miscres.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/miscres.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/miscres.c
@@ -5,11 +5,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <time.h>
-#ifdef __APPLE__
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
 #ifndef XFRACT
 #include <io.h>

File Added: pkgsrc/math/xfractint/patches/patch-common_prompts1.c
$NetBSD: patch-common_prompts1.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/prompts1.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/prompts1.c
@@ -10,13 +10,7 @@
 #include <sys/stat.h>
 #endif
 #endif
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#elif !defined(__386BSD__)
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
   /* see Fractint.c for a description of the "include"  hierarchy */
 #include "port.h"

File Added: pkgsrc/math/xfractint/patches/patch-common_prompts2.c
$NetBSD: patch-common_prompts2.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/prompts2.c.orig	2015-08-08 13:22:41.000000000 +0000
+++ common/prompts2.c
@@ -22,13 +22,7 @@
 #endif
 
 #endif
-#ifdef __TURBOC__
-#include <alloc.h>
-#elif defined(__APPLE__)
-#include <malloc/malloc.h>
-#elif !defined(__386BSD__)
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 
 #ifdef XFRACT
 #include <fcntl.h>

File Added: pkgsrc/math/xfractint/patches/patch-common_soi.c
$NetBSD: patch-common_soi.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/soi.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/soi.c
@@ -13,11 +13,7 @@
  */
 #include <time.h>
 #include <string.h>
-#ifdef __APPLE__
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 #include "port.h"
 #include "prototyp.h"
 

File Added: pkgsrc/math/xfractint/patches/patch-common_soi1.c
$NetBSD: patch-common_soi1.c,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- common/soi1.c.orig	2014-05-03 13:12:35.000000000 +0000
+++ common/soi1.c
@@ -13,11 +13,7 @@
  */
 #include <time.h>
 #include <string.h>
-#ifdef __APPLE__
-#include <malloc/malloc.h>
-#else
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 #include "port.h"
 #include "prototyp.h"
 

File Added: pkgsrc/math/xfractint/patches/patch-headers_externs.h
$NetBSD: patch-headers_externs.h,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- headers/externs.h.orig	2015-04-26 13:25:57.000000000 +0000
+++ headers/externs.h
@@ -63,7 +63,7 @@ extern int                   calc_status
 extern char                  calibrate;
 extern int                   checkcurdir;
 extern int                   chkd_vvs;
-extern long                  cimag;
+extern long                  my_cimag;
 extern double                closenuff;
 extern double                closeprox;
 extern _CMPLX                coefficient;
@@ -89,7 +89,7 @@ extern double                cosx;
 extern LDBL                  cosx;
 #endif
 extern int                   cpu;
-extern long                  creal;
+extern long                  my_creal;
 extern int                   curcol;
 extern int                   curpass;
 extern int                   currow;

File Added: pkgsrc/math/xfractint/patches/patch-headers_port.h
$NetBSD: patch-headers_port.h,v 1.1 2018/08/28 11:54:54 schmonz Exp $

--- headers/port.h.orig	2015-07-04 13:09:32.000000000 +0000
+++ headers/port.h
@@ -44,7 +44,7 @@
 /* If endian.h is not present, it can be handled in the code below, */
 /* but if you have this file, it can make it more fool proof. */
 #if (defined(XFRACT) && !defined(__sun))
-#if defined(sgi)
+#if defined(sgi) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <sys/endian.h>
 #elif defined(__APPLE__)
 #include <machine/endian.h>
@@ -353,6 +353,10 @@ extern struct DIR_SEARCH DTA;   /* Disk 
 #define DO_NOT_USE_LONG_DOUBLE
 #endif
 
+#if defined(__NetBSD__) || defined(__DragonFly__)
+#define DO_NOT_USE_LONG_DOUBLE
+#endif
+
 #ifndef DO_NOT_USE_LONG_DOUBLE
 #ifdef LDBL_DIG
 /* this is what we're hoping for */

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-aa

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ab

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ac

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ad

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ae

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-af

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ai

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-aj

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ak

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-am

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ap

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ar

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-as

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-at

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-au

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-av

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-aw

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ax

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-externs.h

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ag

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ah

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-ao

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-al

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-an

File Deleted: pkgsrc/math/xfractint/patches/Attic/patch-aq