fasttracker2: Improve patch comments and DESCR.diff -r1.1 -r1.2 pkgsrc/audio/fasttracker2/DESCR
(fox)
@@ -1,5 +1,8 @@ | @@ -1,5 +1,8 @@ | |||
1 | fasttracker2 is a Fasttracker II clone in C using SDL 2. | 1 | fasttracker2 is a Fasttracker II clone in C using SDL 2. | |
2 | 2 | |||
3 | fasttracker2 is a music tracker (a type of music sequencer software) | |||
4 | for creating and playing back tracker music. | |||
5 | ||||
3 | This clone is meant for computers with a modern GPU and CPU (about | 6 | This clone is meant for computers with a modern GPU and CPU (about | |
4 | 2007 or newer recommended). It's also designed for 60Hz refresh | 7 | 2007 or newer recommended). It's also designed for 60Hz refresh | |
5 | rates, so it can act choppy if you're above 60Hz. | 8 | rates, so it can act choppy if you're above 60Hz. |
@@ -1,10 +1,10 @@ | @@ -1,10 +1,10 @@ | |||
1 | $NetBSD: distinfo,v 1.31 2019/07/30 00:06:50 fox Exp $ | 1 | $NetBSD: distinfo,v 1.32 2019/08/02 16:54:10 fox Exp $ | |
2 | 2 | |||
3 | SHA1 (ft2clone-b162-code.zip) = 4616581dac4cd8b498c88cad381dd9910b326390 | 3 | SHA1 (ft2clone-b162-code.zip) = 4616581dac4cd8b498c88cad381dd9910b326390 | |
4 | RMD160 (ft2clone-b162-code.zip) = a24993258f783e345f812f75a35a703154fb0aec | 4 | RMD160 (ft2clone-b162-code.zip) = a24993258f783e345f812f75a35a703154fb0aec | |
5 | SHA512 (ft2clone-b162-code.zip) = 4b85514aece028075e8e5017c3b0c26638f0c74e18ac669788393a03457cb903959a548de9b1ca249eab8e629e18503dd1a7519aa81645a26e8f25684c4ec817 | 5 | SHA512 (ft2clone-b162-code.zip) = 4b85514aece028075e8e5017c3b0c26638f0c74e18ac669788393a03457cb903959a548de9b1ca249eab8e629e18503dd1a7519aa81645a26e8f25684c4ec817 | |
6 | Size (ft2clone-b162-code.zip) = 3953315 bytes | 6 | Size (ft2clone-b162-code.zip) = 3953315 bytes | |
7 | SHA1 (patch-src_ft2__diskop.c) = 054e62ba9b512ea0297874988252e7fd0db4e162 | 7 | SHA1 (patch-src_ft2__diskop.c) = 6ec7fe7e9bb13b3413cfe053f1609f8ca70c956f | |
8 | SHA1 (patch-src_ft2__header.h) = 738181fabffcdcaa5ed7a4b1ae533246b6788bff | 8 | SHA1 (patch-src_ft2__header.h) = a685ab05efdefe712bbe65b0a2b4ed41bc1e4670 | |
9 | SHA1 (patch-src_ft2__sample__ed.c) = 5cb4bbdb17d6e7cd98d378fe7dac8524630783c0 | 9 | SHA1 (patch-src_ft2__sample__ed.c) = b5f38a7df35e64a4c995bd9c1b213b587a0c500a | |
10 | SHA1 (patch-src_ft2__unicode.c) = bca10844af2298f77c4f2a8580d030bf2ad54364 | 10 | SHA1 (patch-src_ft2__unicode.c) = 1302d414cfdd35441a6cfad918d3663e4c14665b |
@@ -1,20 +1,26 @@ | @@ -1,20 +1,26 @@ | |||
1 | $NetBSD: patch-src_ft2__diskop.c,v 1.5 2019/07/30 00:06:50 fox Exp $ | 1 | $NetBSD: patch-src_ft2__diskop.c,v 1.6 2019/08/02 16:54:10 fox Exp $ | |
2 | ||||
3 | 1. Added <sys/types.h> / <sys/stat.h> to prevent "unknown type name" | |||
4 | (dev_t, ino_t and nlink_t) error from the included <fts.h>. | |||
5 | 2 | |||
3 | 1. Added <sys/types.h> and <sys/stat.h> before the include of | |||
4 | <fts.h>. While fts(3) is not yet standardized by POSIX, NetBSD | |||
5 | contains an implementation that was expected to comply with the | |||
6 | eventual standard, and fts(3) on NetBSD documents that the above | |||
7 | includes are required. Resolves build failure on netbsd-8. | |||
8 | ||||
6 | 2. Added SunOS / SmartOS compatibility. | 9 | 2. Added SunOS / SmartOS compatibility. | |
7 | 10 | |||
11 | Note: Contacted the upstream author regarding the patch and awaiting a | |||
12 | reply. https://16-bits.org/ft2.php | |||
13 | ||||
8 | --- src/ft2_diskop.c.orig 2019-06-20 21:20:34.000000000 +0000 | 14 | --- src/ft2_diskop.c.orig 2019-06-20 21:20:34.000000000 +0000 | |
9 | +++ src/ft2_diskop.c | 15 | +++ src/ft2_diskop.c | |
10 | @@ -15,6 +15,8 @@ | 16 | @@ -15,6 +15,8 @@ | |
11 | #include <direct.h> | 17 | #include <direct.h> | |
12 | #include <shlobj.h> // SHGetFolderPathW() | 18 | #include <shlobj.h> // SHGetFolderPathW() | |
13 | #else | 19 | #else | |
14 | +#include <sys/types.h> | 20 | +#include <sys/types.h> | |
15 | +#include <sys/stat.h> | 21 | +#include <sys/stat.h> | |
16 | #include <fts.h> // for fts_open() and stuff in recursiveDelete() | 22 | #include <fts.h> // for fts_open() and stuff in recursiveDelete() | |
17 | #include <unistd.h> | 23 | #include <unistd.h> | |
18 | #include <dirent.h> | 24 | #include <dirent.h> | |
19 | @@ -1395,6 +1397,10 @@ static int8_t findFirst(DirRec *searchRe | 25 | @@ -1395,6 +1397,10 @@ static int8_t findFirst(DirRec *searchRe | |
20 | int64_t fSize; | 26 | int64_t fSize; |
@@ -1,16 +1,25 @@ | @@ -1,16 +1,25 @@ | |||
1 | $NetBSD: patch-src_ft2__header.h,v 1.2 2019/07/23 08:20:22 fox Exp $ | 1 | $NetBSD: patch-src_ft2__header.h,v 1.3 2019/08/02 16:54:10 fox Exp $ | |
2 | 2 | |||
3 | Add the HAS_SSE macro so that build failures do not occur in i386 | 3 | Add the HAS_SSE macro so that build failures do not occur in i386 | |
4 | systems that lack SSE support. | 4 | systems that lack SSE support. | |
5 | 5 | |||
6 | For example: On i386, the compiler may be targeting a CPU that does | |||
7 | not have SSE (e.g., on NetBSD, the i386 target is i486). fasttracker2 | |||
8 | various assembly pieces that use different CPU features. HAS_SSE macro | |||
9 | needs to be set in systems which has these CPU features and compile | |||
10 | correctly. | |||
11 | ||||
12 | Note: Contacted the upstream author regarding the patch and awaiting a | |||
13 | reply. https://16-bits.org/ft2.php | |||
14 | ||||
6 | --- src/ft2_header.h.orig 2019-07-22 16:21:07.522137321 +0000 | 15 | --- src/ft2_header.h.orig 2019-07-22 16:21:07.522137321 +0000 | |
7 | +++ src/ft2_header.h | 16 | +++ src/ft2_header.h | |
8 | @@ -77,7 +77,7 @@ | 17 | @@ -77,7 +77,7 @@ | |
9 | #define float2int32_round(i, f) (i = _mm_cvt_ss2si(_mm_load_ss(&f))) | 18 | #define float2int32_round(i, f) (i = _mm_cvt_ss2si(_mm_load_ss(&f))) | |
10 | #define double2int32_round(i, d) (i = _mm_cvtsd_si32(_mm_load_sd(&d))) | 19 | #define double2int32_round(i, d) (i = _mm_cvtsd_si32(_mm_load_sd(&d))) | |
11 | 20 | |||
12 | -#elif defined _WIN32 || defined __i386__ // may have SSE and SSE2 | 21 | -#elif defined _WIN32 || defined __i386__ // may have SSE and SSE2 | |
13 | +#elif defined HAS_SSE && (defined _WIN32 || defined __i386__) // may have SSE and SSE2 | 22 | +#elif defined HAS_SSE && (defined _WIN32 || defined __i386__) // may have SSE and SSE2 | |
14 | 23 | |||
15 | #define float2int32_round(i, f) \ | 24 | #define float2int32_round(i, f) \ | |
16 | if (cpu.hasSSE) \ | 25 | if (cpu.hasSSE) \ |
@@ -1,18 +1,27 @@ | @@ -1,18 +1,27 @@ | |||
1 | $NetBSD: patch-src_ft2__sample__ed.c,v 1.2 2019/07/23 08:20:22 fox Exp $ | 1 | $NetBSD: patch-src_ft2__sample__ed.c,v 1.3 2019/08/02 16:54:10 fox Exp $ | |
2 | 2 | |||
3 | Add the HAS_SSE macro so that build failures do not occur in i386 | 3 | Add the HAS_SSE macro so that build failures do not occur in i386 | |
4 | systems that lack SSE support. | 4 | systems that lack SSE support. | |
5 | 5 | |||
6 | For example: On i386, the compiler may be targeting a CPU that does | |||
7 | not have SSE (e.g., on NetBSD, the i386 target is i486). fasttracker2 | |||
8 | various assembly pieces that use different CPU features. HAS_SSE macro | |||
9 | needs to be set in systems which has these CPU features and compile | |||
10 | correctly. | |||
11 | ||||
12 | Note: Contacted the upstream author regarding the patch and awaiting a | |||
13 | reply. https://16-bits.org/ft2.php | |||
14 | ||||
6 | --- src/ft2_sample_ed.c.orig 2019-07-22 16:27:23.010951973 +0000 | 15 | --- src/ft2_sample_ed.c.orig 2019-07-22 16:27:23.010951973 +0000 | |
7 | +++ src/ft2_sample_ed.c | 16 | +++ src/ft2_sample_ed.c | |
8 | @@ -689,7 +689,7 @@ static void sampleLine(int16_t x1, int16 | 17 | @@ -689,7 +689,7 @@ static void sampleLine(int16_t x1, int16 | |
9 | 18 | |||
10 | static void getMinMax16(const void *p, uint32_t scanLen, int16_t *min16, int16_t *max16) | 19 | static void getMinMax16(const void *p, uint32_t scanLen, int16_t *min16, int16_t *max16) | |
11 | { | 20 | { | |
12 | -#if defined __APPLE__ || defined _WIN32 || defined __i386__ || defined __amd64__ | 21 | -#if defined __APPLE__ || defined _WIN32 || defined __i386__ || defined __amd64__ | |
13 | +#if defined __APPLE__ || (defined HAS_SSE && (defined _WIN32 || defined __i386)) || defined __amd64__ | 22 | +#if defined __APPLE__ || (defined HAS_SSE && (defined _WIN32 || defined __i386)) || defined __amd64__ | |
14 | if (cpu.hasSSE2) | 23 | if (cpu.hasSSE2) | |
15 | { | 24 | { | |
16 | /* Taken with permission from the OpenMPT project (and slightly modified). | 25 | /* Taken with permission from the OpenMPT project (and slightly modified). | |
17 | @@ -775,7 +775,7 @@ static void getMinMax16(const void *p, u | 26 | @@ -775,7 +775,7 @@ static void getMinMax16(const void *p, u | |
18 | 27 |
@@ -1,23 +1,26 @@ | @@ -1,23 +1,26 @@ | |||
1 | $NetBSD: patch-src_ft2__unicode.c,v 1.4 2019/07/30 00:06:50 fox Exp $ | 1 | $NetBSD: patch-src_ft2__unicode.c,v 1.5 2019/08/02 16:54:10 fox Exp $ | |
2 | 2 | |||
3 | 1. Added a type cast to iconv(3) calls to match the prototypes defined | 3 | 1. Added a type cast to iconv(3) calls to match the prototypes defined | |
4 | in NetBSD's iconv.h. | 4 | in NetBSD's iconv.h. | |
5 | 5 | |||
6 | 2. Added a NetBSD specific iconv_open() call to prevent failures due | 6 | 2. Added a NetBSD specific iconv_open() call to prevent failures due | |
7 | to mismatches iconv_open() parameters present in GNU iconv(3). | 7 | to mismatches iconv_open() parameters present in GNU iconv(3). | |
8 | 8 | |||
9 | 3. Added support for SunOS / SmartOS compatibility. | 9 | 3. Added support for SunOS / SmartOS compatibility. | |
10 | 10 | |||
11 | Note: Contacted the upstream author regarding the patch and awaiting a | |||
12 | reply. https://16-bits.org/ft2.php | |||
13 | ||||
11 | --- src/ft2_unicode.c.orig 2019-06-18 19:45:46.000000000 +0000 | 14 | --- src/ft2_unicode.c.orig 2019-06-18 19:45:46.000000000 +0000 | |
12 | +++ src/ft2_unicode.c | 15 | +++ src/ft2_unicode.c | |
13 | @@ -271,7 +271,11 @@ char *cp437ToUtf8(char *src) | 16 | @@ -271,7 +271,11 @@ char *cp437ToUtf8(char *src) | |
14 | inLen = srcLen; | 17 | inLen = srcLen; | |
15 | outPtr = outBuf; | 18 | outPtr = outBuf; | |
16 | 19 | |||
17 | +#if defined(__NetBSD__) || defined(__sun) || defined(sun) | 20 | +#if defined(__NetBSD__) || defined(__sun) || defined(sun) | |
18 | + rc = iconv(cd, (const char **)&inPtr, &inLen, &outPtr, &outLen); | 21 | + rc = iconv(cd, (const char **)&inPtr, &inLen, &outPtr, &outLen); | |
19 | +#else | 22 | +#else | |
20 | rc = iconv(cd, &inPtr, &inLen, &outPtr, &outLen); | 23 | rc = iconv(cd, &inPtr, &inLen, &outPtr, &outLen); | |
21 | +#endif | 24 | +#endif | |
22 | iconv(cd, NULL, NULL, &outPtr, &outLen); // flush | 25 | iconv(cd, NULL, NULL, &outPtr, &outLen); // flush | |
23 | iconv_close(cd); | 26 | iconv_close(cd); |