head 1.9; access; symbols pkgsrc-2026Q2:1.8.0.10 pkgsrc-2026Q2-base:1.8 pkgsrc-2026Q1:1.8.0.8 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.6 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.4 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.2 pkgsrc-2025Q2-base:1.8 pkgsrc-2019Q2:1.4.0.2 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.2.0.2 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @ * @; 1.9 date 2026.08.25.08.02.32; author fox; state dead; branches; next 1.8; commitid 1CIwLmVFCFAfCZSG; 1.8 date 2025.03.31.22.33.49; author nia; state Exp; branches; next 1.7; commitid N8huY42YElRzTgPF; 1.7 date 2019.08.05.17.03.59; author fox; state dead; branches; next 1.6; commitid izQrvall1upkrRxB; 1.6 date 2019.08.02.16.54.10; author fox; state Exp; branches; next 1.5; commitid hH992934cwAqutxB; 1.5 date 2019.07.30.00.06.50; author fox; state Exp; branches; next 1.4; commitid pn8ZjKUPkYJO00xB; 1.4 date 2019.06.20.11.39.06; author fox; state Exp; branches; next 1.3; commitid 22wpiv7mwPJ28VrB; 1.3 date 2019.04.19.02.05.14; author fox; state Exp; branches; next 1.2; commitid qUvlnlMreqTKWTjB; 1.2 date 2019.03.21.10.16.40; author fox; state Exp; branches; next 1.1; commitid fLk6d8BCALR8BdgB; 1.1 date 2018.12.01.18.20.09; author fox; state Exp; branches; next ; commitid AiGNCCeN9cw9O72B; desc @@ 1.9 log @audio/fasttracker2: Update to 2.23 Changes since 2.22: v2.23 - 23.08.2026 * Fixed: If the "WAV exporting" screen was open, the "Render individual tracks" checkbox would have a much taller clickable area than it should, which could interfere with for example moving sample loops in the sample editor screen or interacting with the pattern editor. * Fixed: Several of the functions in Smp. Ed. -> Effects didn't set the "song is modified" flag. * Fixed: When zapping the song, the Disk Op. module filename wasn't reset * The Zap dialog's text was maybe a bit unclear. Changed from "Total devastation of the..." to "What do you want to clear?". Also changed the "All" button to "Everything". @ text @$NetBSD: patch-src_ft2__diskop.c,v 1.8 2025/03/31 22:33:49 nia Exp $ Fix build with older glibc which does not like fts.h being included when _FILE_OFFSET_BITS is defined. --- src/ft2_diskop.c.orig 2025-03-31 21:27:31.508418094 +0000 +++ src/ft2_diskop.c @@@@ -3,7 +3,9 @@@@ #include #endif +#ifndef __linux #define _FILE_OFFSET_BITS 64 +#endif #include #include @ 1.8 log @fasttracker2: Build fixes, clean up. Verified to build on illumos, CentOS 7, FreeBSD, macOS by drecklypkg ci. @ text @d1 1 a1 1 $NetBSD$ @ 1.7 log @fasttracker2: Removes patches applied upstream. Part of previous commit that updated to b164. @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.6 2019/08/02 16:54:10 fox Exp $ d3 2 a4 7 1. Added and before the include of . While fts(3) is not yet standardized by POSIX, NetBSD contains an implementation that was expected to comply with the eventual standard, and fts(3) on NetBSD documents that the above includes are required. Resolves build failure on netbsd-8. 2. Added SunOS / SmartOS compatibility. d6 1 a6 4 Note: Contacted the upstream author regarding the patch and awaiting a reply. https://16-bits.org/ft2.php --- src/ft2_diskop.c.orig 2019-06-20 21:20:34.000000000 +0000 d8 2 a9 11 @@@@ -15,6 +15,8 @@@@ #include #include // SHGetFolderPathW() #else +#include +#include #include // for fts_open() and stuff in recursiveDelete() #include #include @@@@ -1395,6 +1397,10 @@@@ static int8_t findFirst(DirRec *searchRe int64_t fSize; d12 2 a13 2 +#if defined(__sun) || defined(sun) + struct stat s; a14 6 + searchRec->nameU = NULL; // this one must be initialized #ifdef _WIN32 @@@@ -1422,9 +1428,19 @@@@ static int8_t findFirst(DirRec *searchRe return LFF_SKIP; d16 2 a17 37 searchRec->filesize = 0; + +#if defined(__sun) || defined(sun) + stat(fData->d_name, &s); + searchRec->isDir = (s.st_mode != S_IFDIR) ? true : false; +#else searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; +#endif +#if defined(__sun) || defined(sun) + if (s.st_mode == S_IFLNK) +#else if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) +#endif { if (stat(fData->d_name, &st) == 0) { @@@@ -1488,9 +1504,19 @@@@ static int8_t findNext(DirRec *searchRec return LFF_SKIP; searchRec->filesize = 0; + +#if defined(__sun) || defined(sun) + stat(fData->d_name, &s); + searchRec->isDir = (s.st_mode != S_IFDIR) ? true : false; +#else searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; +#endif +#if defined(__sun) || defined(sun) + if (s.st_mode == S_IFLNK) +#else if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) +#endif { if (stat(fData->d_name, &st) == 0) { @ 1.6 log @fasttracker2: Improve patch comments and DESCR. @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.5 2019/07/30 00:06:50 fox Exp $ @ 1.5 log @fasttracker2: Fixes builds for SmartOS. 1. Adds the __sun / sun macro check. 2. libiconv is now explicitly linked to allow multi-platform builds. 3. Uses stat(2) in SmartOS for checking directory types. Thanks to wilbury for testing. @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.4 2019/06/20 11:39:06 fox Exp $ d3 7 a9 2 1. Added / to prevent "unknown type name" (dev_t, ino_t and nlink_t) error from the included . d11 2 a12 1 2. Added SunOS / SmartOS compatibility. @ 1.4 log @fasttracker2: update to b160 Changes since b159 Beta #160 - 19.06.2019 - Bugfix: Certain instrument properties could be modified even if the current instrument was zero. This is a special ins. number for pattern editing, it's not a real instrument. (You can set ins. #0 by pressing 0 on the numpad). - Bugfix: It was impossible to select an instrument higher than 0x60 (100) when using the numpad keys. - Bugfix: "Srnk." (shrink pattern) would erase the last row after its operation - Bugfix: When loading a floating point .wav, it would only load silence unless the amplitude peaked at max (1.0). - Bugfix: 16-bit mono .aiff files would not load correctly at all! - When loading 24-bit .wav/.aiff files, properly normalize amplitude before converting to 16-bit. This now takes up more CPU time and RAM, but it's worth it. - Default instrument envelopes were always read from preset slot #1. I don't like this at all, as it could mess things up when loading sample-only songs. It has now been changed to always use the stock envelope values when loading such files or when a new project is started (or instruments zapped). - Properly reject .it (Impulse Tracker) modules when attempted to be loaded - Code cleanup. Proper space alignment for special tab indents, removed extreme use of parenthesis, spaces etc. @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.3 2019/04/19 02:05:14 fox Exp $ d3 2 a4 2 Added / to prevent "unknown type name" (dev_t, ino_t and nlink_t) error from the included . d6 3 a8 1 --- src/ft2_diskop.c.orig 2019-04-19 01:53:39.359713817 +0000 d19 51 @ 1.3 log @fasttracker2: update to b149 Changes since b148: Beta #149 - 18.04.2019 (updated the same day) - Bug fix: If the window is minimized while you double-click on an associated module in your OS, maximize the window before asking if you want to discard unsaved changes. >> Updates: - Updated rtmidi to version 4.0 - Windows: Updated SDL to version 2.0.9 (finally found a way to prevent a serious bug with 2.0.9, hence why I have been using 2.0.8 for a long time). - Increased "volume toolbox" (Smp. Ed.) range from -200..200% to -500..500% - Windows: Default Disk Op. directory is now "\Users\username" @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.2 2019/03/21 10:16:40 fox Exp $ d8 1 a8 1 @@@@ -13,6 +13,8 @@@@ @ 1.2 log @fasttracker2: update to b142 Changes since b141: Beta #142 - 18.03.2019 - XM loader: fixed a bug where XMs with stereo samples would display a warning message box for every stereo sample loaded, instead of just one. @ text @d1 1 a1 1 $NetBSD: patch-src_ft2__diskop.c,v 1.1 2018/12/01 18:20:09 fox Exp $ d6 1 a6 1 --- src/ft2_diskop.c.orig 2019-03-18 16:59:48.000000000 +0000 d8 1 a8 2 @@@@ -12,6 +12,8 @@@@ #include d10 1 @ 1.1 log @Import of Fasttracker II clone beta #120 as audio/fasttracker2. fasttracker2 is a Fasttracker II clone in C using SDL 2. This clone is meant for computers with a modern GPU and CPU (about 2007 or newer recommended). It's also designed for 60Hz refresh rates, so it can act choppy if you're above 60Hz. @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- src/ft2_diskop.c.orig 2018-11-23 13:36:02.000000000 +0000 d14 1 a14 1 #include /* for fts_open() and stuff in recursiveDelete() */ @