Sawteeth: patch is upstreamed

... and upstream has more buildfixes.
This commit is contained in:
Adrien Destugues
2018-08-08 21:50:07 +02:00
parent c2f00a55e5
commit 9a2d959e44
2 changed files with 4 additions and 57 deletions

View File

@@ -1,52 +0,0 @@
From 6f52bc369f939bfb161e44dd9b18f8b90e73442c Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 28 Jan 2017 15:12:06 +0100
Subject: x86_64 build fix
diff --git a/Source/stApp.cpp b/Source/stApp.cpp
index 7c18c64..dc92513 100644
--- a/Source/stApp.cpp
+++ b/Source/stApp.cpp
@@ -7,7 +7,7 @@ Distributed under the terms of the MIT Licence. */
#include <FilePanel.h>
-char defsong [] = {
+uchar defsong [] = {
#include "Source/data/defaultsong.h"
};
@@ -39,7 +39,7 @@ void stApp::AboutRequested()
void stApp::ReadyToRun()
{
if ( dropped ) return;
- txt t(defsong,(int)sizeof(defsong));
+ txt t((char*)defsong,(int)sizeof(defsong));
stMainWindow *win=new stMainWindow(BRect(10,29,450,150),t);
win->Show();
win->Activate();
@@ -53,7 +53,7 @@ void stApp::MessageReceived(BMessage *message)
break;
case ST_NEW_SONG:
{
- txt t(defsong,(int)sizeof(defsong));
+ txt t((char*)defsong,(int)sizeof(defsong));
stMainWindow *win = new stMainWindow(BRect(10,29,450,150),t);
win->Show();
win->Activate();
diff --git a/lib/source/song.cpp b/lib/source/song.cpp
index bc8247f..5d1e853 100644
--- a/lib/source/song.cpp
+++ b/lib/source/song.cpp
@@ -4,6 +4,7 @@ Distributed under the terms of the MIT Licence. */
#include <string.h>
#include <stdlib.h>
#include <math.h>
+#define __STDC_FORMAT_MACROS
#include <inttypes.h> // for PRIu32
#include "stSong.h"
--
2.10.2

View File

@@ -5,11 +5,10 @@ chip-tunes. It uses no samples but only generated waveforms."
HOMEPAGE="https://github.com/pulkomandy/Sawteeth/"
COPYRIGHT="2001 Jonas Norberg"
LICENSE="MIT"
REVISION="6"
SOURCE_URI="https://github.com/pulkomandy/Sawteeth/archive/f6fa08f34d.tar.gz"
CHECKSUM_SHA256="a28373671c2d7214ad88dbc77d9bb58b9ae27d1b26e5f1049857eadcd0bd03e2"
SOURCE_DIR="Sawteeth-f6fa08f34d7e6b8f04df7280bf6f4d4fc761fa04"
PATCHES="sawteeth-$portVersion.patchset"
REVISION="7"
SOURCE_URI="https://github.com/pulkomandy/Sawteeth/archive/ebfdb9d45731.tar.gz"
CHECKSUM_SHA256="420aca118e54eb9ec43c44ab8a67cf9bfa3fa4f41ada092d3752376f579a58ea"
SOURCE_DIR="Sawteeth-ebfdb9d45731a49589b689afd9ac2ee43c420312"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"