summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-10-05 12:09:26 +0000
committernia <nia@pkgsrc.org>2019-10-05 12:09:26 +0000
commit8b03fe2307b107dbce8e1a58215c4a8c2a6d0723 (patch)
tree3e28aa811e1204315e0d6820d81c7d5ab113e9f1 /audio
parentd6fd5d6dcf14246a1328a1f99b4c1f6a1426bc1a (diff)
downloadpkgsrc-8b03fe2307b107dbce8e1a58215c4a8c2a6d0723.tar.gz
terminatorx: Update to 4.0.1
- Switched to GTK3 - HiDPI support - New optional PulseAudio backend
Diffstat (limited to 'audio')
-rw-r--r--audio/terminatorx/Makefile55
-rw-r--r--audio/terminatorx/PLIST12
-rw-r--r--audio/terminatorx/distinfo29
-rw-r--r--audio/terminatorx/patches/patch-aa16
-rw-r--r--audio/terminatorx/patches/patch-ab12
-rw-r--r--audio/terminatorx/patches/patch-ac13
-rw-r--r--audio/terminatorx/patches/patch-ad13
-rw-r--r--audio/terminatorx/patches/patch-ae13
-rw-r--r--audio/terminatorx/patches/patch-af13
-rw-r--r--audio/terminatorx/patches/patch-ag13
-rw-r--r--audio/terminatorx/patches/patch-ah13
-rw-r--r--audio/terminatorx/patches/patch-ai12
-rw-r--r--audio/terminatorx/patches/patch-configure15
-rw-r--r--audio/terminatorx/patches/patch-src_main.cc15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__audiofile.cc15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__dialog.cc15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__flash.c15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__midiin.cc13
-rw-r--r--audio/terminatorx/patches/patch-src_tX__seqpar.cc15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__vtt.cc15
-rw-r--r--audio/terminatorx/patches/patch-src_tX__widget.c14
-rw-r--r--audio/terminatorx/patches/patch-src_tx__dial_c15
22 files changed, 174 insertions, 187 deletions
diff --git a/audio/terminatorx/Makefile b/audio/terminatorx/Makefile
index 3706028ecf5..661ddc1be96 100644
--- a/audio/terminatorx/Makefile
+++ b/audio/terminatorx/Makefile
@@ -1,45 +1,58 @@
-# $NetBSD: Makefile,v 1.54 2019/07/21 22:24:29 wiz Exp $
+# $NetBSD: Makefile,v 1.55 2019/10/05 12:09:26 nia Exp $
-DISTNAME= terminatorX-3.82
-PKGNAME= ${DISTNAME:S/X/x/}
-PKGREVISION= 36
+DISTNAME= terminatorX-4.0.1
+PKGNAME= ${DISTNAME:S/X/x/1}
CATEGORIES= audio
-MASTER_SITES= http://terminatorx.org/dist/
-EXTRACT_SUFX= .tar.bz2
+MASTER_SITES= https://terminatorx.org/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://terminatorx.org/
+HOMEPAGE= https://terminatorx.org/
COMMENT= Realtime audio synthesizer
LICENSE= gnu-gpl-v2
-DEPENDS+= mpg123-[0-9]*:../../audio/mpg123
-DEPENDS+= sox-[0-9]*:../../audio/sox
DEPENDS+= vorbis-tools-[0-9]*:../../audio/vorbis-tools
-USE_LANGUAGES= c c++03
-USE_LIBTOOL= yes
-USE_TOOLS+= pkg-config
-GNU_CONFIGURE= yes
+GNU_CONFIGURE= yes
+USE_TOOLS+= pkg-config
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++03
-LIBS+= ${LIBOSSAUDIO}
-CONFIGURE_ARGS+= --disable-alsa
+CONFIGURE_ARGS+= --disable-gtktest
+CONFIGURE_ARGS+= --disable-scheduler
+
+.include "../../mk/oss.buildlink3.mk"
+.if ${OSS_TYPE} == "none"
+CONFIGURE_ARGS+= --disable-oss
+.else
+CONFIGURE_ARGS+= --enable-oss
+LIBS+= ${LIBOSSAUDIO}
SUBST_CLASSES+= oss
SUBST_STAGE.oss= pre-configure
SUBST_FILES.oss= src/tX_global.c
SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_MESSAGE.oss= Fixing hardcoded audio device.
+.endif
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_MESSAGE.prefix= Setting path to PREFIX in source files.
+SUBST_FILES.prefix+= src/tX_global.c
+SUBST_FILES.prefix+= src/tX_ladspa.cc
+SUBST_SED.prefix+= -e "s|/usr/lib/ladspa|${PREFIX}/lib/ladspa|g"
+SUBST_SED.prefix+= -e "s|/usr/share/ladspa|${PREFIX}/share/ladspa|g"
.include "../../audio/ladspa/buildlink3.mk"
.include "../../audio/libaudiofile/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
+.include "../../audio/mpg123/buildlink3.mk"
+.include "../../audio/sox/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../textproc/gnome-doc-utils/buildlink3.mk"
+.include "../../textproc/liblrdf/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../mk/omf-scrollkeeper.mk"
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../x11/libXxf86dga/buildlink3.mk"
-.include "../../x11/xorgproto/buildlink3.mk"
-
-.include "../../mk/oss.buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/audio/terminatorx/PLIST b/audio/terminatorx/PLIST
index ffc9c7ecc48..87bcd71db39 100644
--- a/audio/terminatorx/PLIST
+++ b/audio/terminatorx/PLIST
@@ -1,6 +1,10 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:32:23 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/10/05 12:09:26 nia Exp $
bin/terminatorX
man/man1/terminatorX.1
-share/omf/terminatorX/terminatorX-manual-C.omf
-share/terminatorX/doc/terminatorX-manual/C/figures/signalflow.png
-share/terminatorX/doc/terminatorX-manual/C/terminatorX-manual.xml
+share/appdata/terminatorX.appdata.xml
+share/applications/terminatorX.desktop
+share/icons/hicolor/512x512/apps/terminatorX.png
+share/icons/hicolor/512x512/mimetypes/terminatorX-mime.png
+share/mime-info/terminatorX.keys
+share/mime-info/terminatorX.mime
+share/pixmaps/terminatorX.xpm
diff --git a/audio/terminatorx/distinfo b/audio/terminatorx/distinfo
index 94fcf7f1296..ade2cec29e4 100644
--- a/audio/terminatorx/distinfo
+++ b/audio/terminatorx/distinfo
@@ -1,17 +1,14 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 01:12:52 agc Exp $
+$NetBSD: distinfo,v 1.10 2019/10/05 12:09:26 nia Exp $
-SHA1 (terminatorX-3.82.tar.bz2) = 8d492fc759ffb77c2549190081077e12f765233f
-RMD160 (terminatorX-3.82.tar.bz2) = b70c688101844a07eddcd3e090cd6e805e93f066
-SHA512 (terminatorX-3.82.tar.bz2) = 9fbb297ecffc50d5bf39daff9dcdc619879b255673072af2d843f97b26e4fb667a8a4cf831a6debbfe95631acd938dad1edfc988db7c02421ece3170ffc1b1f0
-Size (terminatorX-3.82.tar.bz2) = 395755 bytes
-SHA1 (patch-aa) = 12100a880e86430acec603721b0e3110731225e3
-SHA1 (patch-ab) = 16e264ac60c0ec65c525baddc5c3e71d039cc0c3
-SHA1 (patch-ac) = 4a86d5f59ecf6c072589bf5e57d7ab0ef4d7d7eb
-SHA1 (patch-ad) = e3125815472b334882bc190405a2ff217a018fb3
-SHA1 (patch-ae) = 5412826df902f180d93de078ec1a5bcc8a6b1bfa
-SHA1 (patch-af) = 7129f695f1c7e79800d123b4a3d5db7a8f6c3f5d
-SHA1 (patch-ag) = 53094ee9beb48478ee4ea3c375422c858fc2fc81
-SHA1 (patch-ah) = f2d7ca4631b177840b88d82d614e11ba779b4ef5
-SHA1 (patch-ai) = 7fe25f7b29fcb807b00bee363337f163f0171813
-SHA1 (patch-src_tX__midiin.cc) = 4e5b34e5c99ecc6a5c750cc2e5c9fe700b1871fb
-SHA1 (patch-src_tx__dial_c) = b2c6824b1c103d3f86943d6040e741aab6158cb9
+SHA1 (terminatorX-4.0.1.tar.gz) = a51b51471698bb954592877f1c2495c00a39c374
+RMD160 (terminatorX-4.0.1.tar.gz) = 75a1d0d86152d95a956ee652e056b1f1479d1b63
+SHA512 (terminatorX-4.0.1.tar.gz) = dae7d401870db39692d57e1fe5df47be7b50179a8cd739b60bdfda211cbe29e8abdc116bda23a286ddf49533e76175ac2a5811e0516b1a7d50b7873f7db4715b
+Size (terminatorX-4.0.1.tar.gz) = 1928137 bytes
+SHA1 (patch-configure) = ab0e0f7b49c854bffab957a460ff4602ca6ad519
+SHA1 (patch-src_main.cc) = 327a9067e571236d47a5ba7448c71c6460f01701
+SHA1 (patch-src_tX__audiofile.cc) = 37c2ce405a8740705bf9811ddc782cedf57f5f1a
+SHA1 (patch-src_tX__dialog.cc) = 1ba42dffc0bfe5fe786f2ca8f27b0e582dba02c3
+SHA1 (patch-src_tX__flash.c) = dbcbac5742b90915d953702c45083c8cbec2589a
+SHA1 (patch-src_tX__seqpar.cc) = e2db0feaa01fbbd3b4f84b93abfdc409fcd1ca7d
+SHA1 (patch-src_tX__vtt.cc) = 9947e84f1b0067935f750989d37919b88587149f
+SHA1 (patch-src_tX__widget.c) = eed43a8a4143035074645cfe33d4d14990f35494
diff --git a/audio/terminatorx/patches/patch-aa b/audio/terminatorx/patches/patch-aa
deleted file mode 100644
index 141eb983358..00000000000
--- a/audio/terminatorx/patches/patch-aa
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2011/11/24 20:34:34 marino Exp $
-
---- src/tX_dialog.cc.orig 2005-12-12 00:13:12.000000000 +0000
-+++ src/tX_dialog.cc
-@@ -252,7 +252,11 @@ GList *get_alsa_device_list() {
- #ifdef USE_OSS
- static GList *oss_devices=NULL;
-
-+#if defined(__FreeBSD__)
-+int oss_select_dsp_only(struct dirent *entry){
-+#else
- int oss_select_dsp_only(const struct dirent *entry){
-+#endif
- return (strstr(entry->d_name, "dsp")!=0);
- }
-
diff --git a/audio/terminatorx/patches/patch-ab b/audio/terminatorx/patches/patch-ab
deleted file mode 100644
index bab9c4b0862..00000000000
--- a/audio/terminatorx/patches/patch-ab
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/tX_widget.c.orig 2007-08-05 18:25:29.000000000 +0000
-+++ src/tX_widget.c
-@@ -29,7 +29,6 @@
- #include "tX_widget.h"
- #include "tX_types.h"
- #include "tX_global.h"
--#include <malloc.h>
- #include <stdlib.h>
- #include <string.h>
-
diff --git a/audio/terminatorx/patches/patch-ac b/audio/terminatorx/patches/patch-ac
deleted file mode 100644
index 5dc09e0059a..00000000000
--- a/audio/terminatorx/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/main.cc.orig 2007-08-05 18:25:55.000000000 +0000
-+++ src/main.cc
-@@ -39,7 +39,7 @@
-
- #include <stdio.h>
- #include "tX_mastergui.h"
--#include <malloc.h>
-+#include <stdlib.h>
- #include <math.h>
- #include <stdio.h>
- #ifndef WIN32
diff --git a/audio/terminatorx/patches/patch-ad b/audio/terminatorx/patches/patch-ad
deleted file mode 100644
index 27f4541ef2a..00000000000
--- a/audio/terminatorx/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/tX_flash.c.orig 2007-08-05 18:26:20.000000000 +0000
-+++ src/tX_flash.c
-@@ -28,7 +28,7 @@
- #include "tX_flash.h"
- #include "tX_types.h"
- #include "tX_global.h"
--#include <malloc.h>
-+#include <stdlib.h>
-
- #ifndef WIN32
- #include <unistd.h>
diff --git a/audio/terminatorx/patches/patch-ae b/audio/terminatorx/patches/patch-ae
deleted file mode 100644
index e7b347df28b..00000000000
--- a/audio/terminatorx/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/tX_vtt.cc.orig 2007-08-05 18:28:09.000000000 +0000
-+++ src/tX_vtt.cc
-@@ -29,7 +29,7 @@
- #include "tX_vtt.h"
- #include "tX_global.h"
- #include <stdio.h>
--#include "malloc.h"
-+#include <stdlib.h>
- #include <math.h>
- #include "tX_mastergui.h"
- #include "tX_sequencer.h"
diff --git a/audio/terminatorx/patches/patch-af b/audio/terminatorx/patches/patch-af
deleted file mode 100644
index 99fa5555cea..00000000000
--- a/audio/terminatorx/patches/patch-af
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-af,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/tX_audiofile.cc.orig 2007-08-05 18:29:28.000000000 +0000
-+++ src/tX_audiofile.cc
-@@ -39,7 +39,7 @@
- #include "tX_audiofile.h"
-
- #include <string.h>
--#include <malloc.h>
-+#include <stdlib.h>
- #include "wav_file.h"
- #include "tX_loaddlg.h"
- #include "tX_endian.h"
diff --git a/audio/terminatorx/patches/patch-ag b/audio/terminatorx/patches/patch-ag
deleted file mode 100644
index 68d37581a4e..00000000000
--- a/audio/terminatorx/patches/patch-ag
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2007/08/05 18:57:06 joerg Exp $
-
---- src/tX_seqpar.cc.orig 2007-08-05 18:29:59.000000000 +0000
-+++ src/tX_seqpar.cc
-@@ -29,7 +29,7 @@
- #include "tX_sequencer.h"
- #include "tX_extdial.h"
- #include "tX_engine.h"
--#include <malloc.h>
-+#include <stdlib.h>
-
- #define TX_SEQPAR_DEFAULT_SCALE 0.05
-
diff --git a/audio/terminatorx/patches/patch-ah b/audio/terminatorx/patches/patch-ah
deleted file mode 100644
index 3a703c73040..00000000000
--- a/audio/terminatorx/patches/patch-ah
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2008/10/03 18:03:32 joerg Exp $
-
---- src/tX_prelis.cc.orig 2008-10-03 17:51:18.000000000 +0000
-+++ src/tX_prelis.cc
-@@ -88,7 +88,7 @@ void prelis_start(char *name) {
- usempg123=1;
- else
- #endif
--#ifdef USE_SOX_INPUT
-+#if defined(USE_SOX_INPUT) && defined(USE_MPG123_INPUT)
- usempg123=0;
- #else
- return;
diff --git a/audio/terminatorx/patches/patch-ai b/audio/terminatorx/patches/patch-ai
deleted file mode 100644
index eb519d6c043..00000000000
--- a/audio/terminatorx/patches/patch-ai
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2011/11/24 20:34:34 marino Exp $
-
---- src/tX_global.h.orig 2004-11-03 13:25:50.000000000 +0000
-+++ src/tX_global.h
-@@ -33,6 +33,7 @@
- extern "C" {
- #endif /* __cplusplus */
-
-+#include <string.h>
- #include <limits.h>
- #include <stdio.h>
- #include "tX_types.h"
diff --git a/audio/terminatorx/patches/patch-configure b/audio/terminatorx/patches/patch-configure
new file mode 100644
index 00000000000..c0300d28587
--- /dev/null
+++ b/audio/terminatorx/patches/patch-configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Fix shell portability.
+
+--- configure.orig 2016-07-24 14:24:22.000000000 +0000
++++ configure
+@@ -5177,7 +5177,7 @@ $as_echo "no" >&6; }
+ fi
+
+
+-if test "$GLIB_COMPILE_RESOURCES" == ""; then :
++if test "$GLIB_COMPILE_RESOURCES" = ""; then :
+
+ as_fn_error $? "glib-compile-resources not found" "$LINENO" 5
+
diff --git a/audio/terminatorx/patches/patch-src_main.cc b/audio/terminatorx/patches/patch-src_main.cc
new file mode 100644
index 00000000000..6f613139507
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_main.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_main.cc,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/main.cc.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/main.cc
+@@ -27,7 +27,7 @@
+
+ #include <stdio.h>
+ #include "tX_mastergui.h"
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <math.h>
+ #include <stdio.h>
+ #ifndef WIN32
diff --git a/audio/terminatorx/patches/patch-src_tX__audiofile.cc b/audio/terminatorx/patches/patch-src_tX__audiofile.cc
new file mode 100644
index 00000000000..c241edf7442
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__audiofile.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tX__audiofile.cc,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/tX_audiofile.cc.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_audiofile.cc
+@@ -30,7 +30,7 @@
+ #include "tX_audiofile.h"
+
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include "wav_file.h"
+ #include "tX_loaddlg.h"
+ #include "tX_endian.h"
diff --git a/audio/terminatorx/patches/patch-src_tX__dialog.cc b/audio/terminatorx/patches/patch-src_tX__dialog.cc
new file mode 100644
index 00000000000..4128418ed3a
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__dialog.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tX__dialog.cc,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Fix function argument list when building without ALSA.
+
+--- src/tX_dialog.cc.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_dialog.cc
+@@ -244,7 +244,7 @@ void append_alsa_device_list(GtkComboBox
+ }
+ }
+ #else
+-void append_alsa_device_list(GtkComboBoxText *combo) {
++void append_alsa_device_list(GtkComboBoxText *combo, char *current) {
+ }
+ #endif
+
diff --git a/audio/terminatorx/patches/patch-src_tX__flash.c b/audio/terminatorx/patches/patch-src_tX__flash.c
new file mode 100644
index 00000000000..f70215da62b
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__flash.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tX__flash.c,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/tX_flash.c.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_flash.c
+@@ -27,7 +27,7 @@
+ #include "tX_flash.h"
+ #include "tX_types.h"
+ #include "tX_global.h"
+-#include <malloc.h>
++#include <stdlib.h>
+
+ #ifndef WIN32
+ #include <unistd.h>
diff --git a/audio/terminatorx/patches/patch-src_tX__midiin.cc b/audio/terminatorx/patches/patch-src_tX__midiin.cc
deleted file mode 100644
index 815ec15cc78..00000000000
--- a/audio/terminatorx/patches/patch-src_tX__midiin.cc
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_tX__midiin.cc,v 1.1 2012/07/01 09:42:20 sbd Exp $
-
---- src/tX_midiin.cc.orig 2003-08-21 22:41:50.000000000 +0000
-+++ src/tX_midiin.cc
-@@ -447,7 +447,7 @@ gboolean tX_midiin::midi_learn_destroy(G
-
- void tX_midiin::store_connections(FILE *rc, char *indent)
- {
-- gzFile *rz=NULL;
-+ gzFile rz=NULL;
-
- tX_store("%s<midi_connections>\n", indent);
- strcat(indent, "\t");
diff --git a/audio/terminatorx/patches/patch-src_tX__seqpar.cc b/audio/terminatorx/patches/patch-src_tX__seqpar.cc
new file mode 100644
index 00000000000..caa6cafd270
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__seqpar.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tX__seqpar.cc,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/tX_seqpar.cc.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_seqpar.cc
+@@ -28,7 +28,7 @@
+ #include "tX_sequencer.h"
+ #include "tX_extdial.h"
+ #include "tX_engine.h"
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ #define TX_SEQPAR_DEFAULT_SCALE 0.05
diff --git a/audio/terminatorx/patches/patch-src_tX__vtt.cc b/audio/terminatorx/patches/patch-src_tX__vtt.cc
new file mode 100644
index 00000000000..471442805ef
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__vtt.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tX__vtt.cc,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/tX_vtt.cc.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_vtt.cc
+@@ -28,7 +28,7 @@
+ #include "tX_vtt.h"
+ #include "tX_global.h"
+ #include <stdio.h>
+-#include "malloc.h"
++#include <stdlib.h>
+ #include <math.h>
+ #include "tX_mastergui.h"
+ #include "tX_sequencer.h"
diff --git a/audio/terminatorx/patches/patch-src_tX__widget.c b/audio/terminatorx/patches/patch-src_tX__widget.c
new file mode 100644
index 00000000000..4055124c653
--- /dev/null
+++ b/audio/terminatorx/patches/patch-src_tX__widget.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_tX__widget.c,v 1.1 2019/10/05 12:09:26 nia Exp $
+
+Use standard stdlib.h instead of non-standard malloc.h.
+
+--- src/tX_widget.c.orig 2016-07-24 14:24:08.000000000 +0000
++++ src/tX_widget.c
+@@ -28,7 +28,6 @@
+ #include "tX_widget.h"
+ #include "tX_types.h"
+ #include "tX_global.h"
+-#include <malloc.h>
+ #include <stdlib.h>
+ #include <string.h>
+
diff --git a/audio/terminatorx/patches/patch-src_tx__dial_c b/audio/terminatorx/patches/patch-src_tx__dial_c
deleted file mode 100644
index 701ebcaed16..00000000000
--- a/audio/terminatorx/patches/patch-src_tx__dial_c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_tx__dial_c,v 1.1 2011/09/04 05:10:20 dholland Exp $
-
-Fix up gcc/c99 inline mess.
-
---- src/tX_dial.c~ 2004-10-29 20:37:11.000000000 +0000
-+++ src/tX_dial.c
-@@ -266,7 +266,7 @@ static void gtk_tx_dial_size_allocate (G
- }
- }
-
--inline void gtk_tx_dial_draw (GtkTxDial *tx_dial, GtkWidget *widget)
-+static inline void gtk_tx_dial_draw (GtkTxDial *tx_dial, GtkWidget *widget)
- {
- if (GTK_WIDGET_DRAWABLE (widget)) {
- gdk_pixbuf_render_to_drawable(knob_pixmaps[tx_dial->old_image],