pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/fasttracker2 Import of Fasttracker II clone beta...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e3ba394d52fe
branches: trunk
changeset: 326198:e3ba394d52fe
user: fox <fox%pkgsrc.org@localhost>
date: Sat Dec 01 18:20:09 2018 +0000
description:
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.
diffstat:
audio/fasttracker2/DESCR | 5 ++
audio/fasttracker2/Makefile | 35 +++++++++++++++++
audio/fasttracker2/PLIST | 3 +
audio/fasttracker2/distinfo | 8 +++
audio/fasttracker2/patches/patch-src_ft2__diskop.c | 16 +++++++
audio/fasttracker2/patches/patch-src_ft2__unicode.c | 43 +++++++++++++++++++++
6 files changed, 110 insertions(+), 0 deletions(-)
diffs (134 lines):
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/DESCR Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,5 @@
+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.
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/Makefile Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2018/12/01 18:20:09 fox Exp $
+
+DISTNAME= ft2clone-${DISTVERSION}-code
+PKGNAME= fasttracker2-${DISTVERSION}
+DISTVERSION= b120
+CATEGORIES= audio
+MASTER_SITES= https://16-bits.org/ \
+ ${MASTER_SITE_FREEBSD_LOCAL:=ehaupt/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= fox%NetBSD.org@localhost
+HOMEPAGE= https://16-bits.org/
+COMMENT= Portable Fasttracker II clone in C using SDL 2
+LICENSE= modified-bsd AND cc-by-nc-sa-v4.0-license
+
+WRKSRC= ${WRKDIR}/ft2-clone-code
+USE_LANGUAGES= c c++
+
+LDFLAGS+= -lSDL2 -lpthread -lstdc++ -lm
+
+INSTALLATION_DIRS+= bin share/pixmaps
+
+do-build:
+ ${CC} ${CFLAGS} ${LDFLAGS} \
+ ${WRKSRC}/src/rtmidi/*.cpp ${WRKSRC}/src/gfxdata/*.c ${WRKSRC}/src/*.c \
+ -o ${WRKSRC}/release/other/ft2-clone
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/release/other/ft2-clone \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/src/gfxdata/icon/ft2-clone.ico \
+ ${DESTDIR}${PREFIX}/share/pixmaps
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/PLIST Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/12/01 18:20:09 fox Exp $
+bin/ft2-clone
+share/pixmaps/ft2-clone.ico
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/distinfo Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/12/01 18:20:09 fox Exp $
+
+SHA1 (ft2clone-b120-code.zip) = 6988d96b52de4673252d8154770cae399b4eef33
+RMD160 (ft2clone-b120-code.zip) = 77b7f5976b19b053efdbd1406d9e8a20e3daa81d
+SHA512 (ft2clone-b120-code.zip) = 70b4f1439efe05394aa4c78ea8b69fa5d7ac21317382f203d0bb3835e1219bfbbeaa2372d1ebcc9c21d38585814745d46bc061e016eedc650bbc684f7d0fa668
+Size (ft2clone-b120-code.zip) = 3468698 bytes
+SHA1 (patch-src_ft2__diskop.c) = 51807a606e4dc0b5aac3e35f0e5917904442a883
+SHA1 (patch-src_ft2__unicode.c) = 173ffddcb464834d67f85d759e2dbf01004f5f81
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/patches/patch-src_ft2__diskop.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/patches/patch-src_ft2__diskop.c Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_ft2__diskop.c,v 1.1 2018/12/01 18:20:09 fox Exp $
+
+Added <sys/types.h> / <sys/stat.h> to prevent "unknown type name"
+(dev_t, ino_t and nlink_t) error from the included <fts.h>.
+
+--- src/ft2_diskop.c.orig 2018-11-23 13:36:02.000000000 +0000
++++ src/ft2_diskop.c
+@@ -12,6 +12,8 @@
+ #include <windows.h>
+ #include <direct.h>
+ #else
++#include <sys/types.h>
++#include <sys/stat.h>
+ #include <fts.h> /* for fts_open() and stuff in recursiveDelete() */
+ #include <unistd.h>
+ #include <dirent.h>
diff -r 35cce47d4caf -r e3ba394d52fe audio/fasttracker2/patches/patch-src_ft2__unicode.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/patches/patch-src_ft2__unicode.c Sat Dec 01 18:20:09 2018 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-src_ft2__unicode.c,v 1.1 2018/12/01 18:20:09 fox Exp $
+
+1. Added a type cast to iconv(3) calls to match the prototypes defined
+in NetBSD's iconv.h.
+
+2. Added a NetBSD specific iconv_open() call to prevent failures due
+to mismatches iconv_open() parameters present in GNU iconv(3).
+
+--- src/ft2_unicode.c.orig 2018-07-01 09:13:52.000000000 +0000
++++ src/ft2_unicode.c
+@@ -275,7 +275,11 @@ char *cp437ToUtf8(char *src)
+ inLen = srcLen;
+ outPtr = outBuf;
+
++#if defined(__NetBSD__)
++ rc = iconv(cd, (const char **)&inPtr, &inLen, &outPtr, &outLen);
++#else
+ rc = iconv(cd, &inPtr, &inLen, &outPtr, &outLen);
++#endif
+ iconv(cd, NULL, NULL, &outPtr, &outLen); /* flush */
+ iconv_close(cd);
+
+@@ -307,6 +311,8 @@ char *utf8ToCp437(char *src, uint8_t rem
+ */
+ #ifdef __APPLE__
+ cd = iconv_open("437//TRANSLIT//IGNORE", "UTF-8-MAC");
++#elif defined(__NetBSD__)
++ cd = iconv_open("437", "UTF-8");
+ #else
+ cd = iconv_open("437//TRANSLIT//IGNORE", "UTF-8");
+ #endif
+@@ -323,7 +329,11 @@ char *utf8ToCp437(char *src, uint8_t rem
+ inLen = srcLen;
+ outPtr = outBuf;
+
++#if defined(__NetBSD__)
++ rc = iconv(cd, (const char **)&inPtr, &inLen, &outPtr, &outLen);
++#else
+ rc = iconv(cd, &inPtr, &inLen, &outPtr, &outLen);
++#endif
+ iconv(cd, NULL, NULL, &outPtr, &outLen); /* flush */
+ iconv_close(cd);
+
Home |
Main Index |
Thread Index |
Old Index