pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio/fasttracker2
Module Name: pkgsrc
Committed By: fox
Date: Sat Dec 1 18:20:10 UTC 2018
Added Files:
pkgsrc/audio/fasttracker2: DESCR Makefile PLIST distinfo
pkgsrc/audio/fasttracker2/patches: patch-src_ft2__diskop.c
patch-src_ft2__unicode.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/fasttracker2/DESCR \
pkgsrc/audio/fasttracker2/Makefile pkgsrc/audio/fasttracker2/PLIST \
pkgsrc/audio/fasttracker2/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/audio/fasttracker2/patches/patch-src_ft2__diskop.c \
pkgsrc/audio/fasttracker2/patches/patch-src_ft2__unicode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/audio/fasttracker2/DESCR
diff -u /dev/null pkgsrc/audio/fasttracker2/DESCR:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/DESCR Sat Dec 1 18:20:09 2018
@@ -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.
Index: pkgsrc/audio/fasttracker2/Makefile
diff -u /dev/null pkgsrc/audio/fasttracker2/Makefile:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/Makefile Sat Dec 1 18:20:09 2018
@@ -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"
Index: pkgsrc/audio/fasttracker2/PLIST
diff -u /dev/null pkgsrc/audio/fasttracker2/PLIST:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/PLIST Sat Dec 1 18:20:09 2018
@@ -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
Index: pkgsrc/audio/fasttracker2/distinfo
diff -u /dev/null pkgsrc/audio/fasttracker2/distinfo:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/distinfo Sat Dec 1 18:20:09 2018
@@ -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
Index: pkgsrc/audio/fasttracker2/patches/patch-src_ft2__diskop.c
diff -u /dev/null pkgsrc/audio/fasttracker2/patches/patch-src_ft2__diskop.c:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/patches/patch-src_ft2__diskop.c Sat Dec 1 18:20:09 2018
@@ -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>
Index: pkgsrc/audio/fasttracker2/patches/patch-src_ft2__unicode.c
diff -u /dev/null pkgsrc/audio/fasttracker2/patches/patch-src_ft2__unicode.c:1.1
--- /dev/null Sat Dec 1 18:20:10 2018
+++ pkgsrc/audio/fasttracker2/patches/patch-src_ft2__unicode.c Sat Dec 1 18:20:09 2018
@@ -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