mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
nanodot: new recipe (#2050)
This commit is contained in:
46
haiku-apps/nanodot/nanodot-1.1b.recipe
Normal file
46
haiku-apps/nanodot/nanodot-1.1b.recipe
Normal file
@@ -0,0 +1,46 @@
|
||||
SUMMARY="A minimal pattern-based MIDI sequencer"
|
||||
DESCRIPTION="nanodot is a rather minimal pattern-based MIDI sequencer \
|
||||
originally written for BeOS R3. Its main purpose in life was/is to teach me \
|
||||
(and hopefully others) the basics of writing MIDI apps for BeOS; it makes for \
|
||||
a nice drum-programming 'scratchpad', and is a generally entertaining way to \
|
||||
waste a few hours."
|
||||
HOMEPAGE="https://github.com/HaikuArchives/NanoDot"
|
||||
COPYRIGHT="1999 Eric Moon"
|
||||
LICENSE="unknown"
|
||||
REVISION="1"
|
||||
srcGitRev="e201c46fdcb97ee919393f0f6eb8106eb51a0797"
|
||||
SOURCE_URI="https://github.com/HaikuArchives/NanoDot/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="f12538e765a13f30d5dd2ef344da14b682a348fd48ffa2e2e5819c0d6722f19c"
|
||||
SOURCE_FILENAME="NanoDot-$portVersion-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR="NanoDot-$srcGitRev"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
nanodot = $portVersion
|
||||
app:nanodot = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
makefile_engine
|
||||
cmd:g++
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make OBJ_DIR=objects
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
install -d $appsDir
|
||||
install -t $appsDir objects/NanoDot
|
||||
addAppDeskbarSymlink $appsDir/NanoDot NanoDot
|
||||
}
|
||||
51
haiku-apps/nanodot/patches/nanodot-1.1b.patchset
Normal file
51
haiku-apps/nanodot/patches/nanodot-1.1b.patchset
Normal file
@@ -0,0 +1,51 @@
|
||||
From 94d33d8922c58738845d4ea2f7c63890d15429d1 Mon Sep 17 00:00:00 2001
|
||||
From: Shiroko <hhx.xxm@gmail.com>
|
||||
Date: Wed, 3 Jan 2018 22:58:40 +0000
|
||||
Subject: Add missing header 'PopUpMenu.h'
|
||||
|
||||
|
||||
diff --git a/src/SeqGlobalView.cpp b/src/SeqGlobalView.cpp
|
||||
index 51ec54e..718be17 100644
|
||||
--- a/src/SeqGlobalView.cpp
|
||||
+++ b/src/SeqGlobalView.cpp
|
||||
@@ -1,6 +1,6 @@
|
||||
// SeqGlobalView.cpp (nanodot)
|
||||
// e.moon apr98
|
||||
-
|
||||
+#include <PopUpMenu.h>
|
||||
#include <StorageKit.h>
|
||||
#include "SeqGlobalView.h"
|
||||
#include "NanoDotApp.h"
|
||||
--
|
||||
2.14.2
|
||||
|
||||
|
||||
From 4353aff4f1f873de99ca52f6493d61afb1ebc67b Mon Sep 17 00:00:00 2001
|
||||
From: Shiroko <hhx.xxm@gmail.com>
|
||||
Date: Wed, 3 Jan 2018 22:59:30 +0000
|
||||
Subject: Fix BMessage
|
||||
|
||||
|
||||
diff --git a/src/Track.cpp b/src/Track.cpp
|
||||
index e34aedd..05a1420 100644
|
||||
--- a/src/Track.cpp
|
||||
+++ b/src/Track.cpp
|
||||
@@ -119,7 +119,7 @@ void Track::Run() {
|
||||
//printf("%d: %d\n", m_nSeqPos, nWaitCount);
|
||||
|
||||
if(m_pMsgr) {
|
||||
- BMessage msg = new BMessage(TRACK_SEQ_STEP);
|
||||
+ BMessage msg(TRACK_SEQ_STEP);
|
||||
msg.AddInt16("pos", m_nSeqPos);
|
||||
m_pMsgr->SendMessage(&msg);
|
||||
}
|
||||
@@ -170,4 +170,4 @@ void Track::setData(uint16 nPos, bool bValue) {
|
||||
unlockParams();
|
||||
}
|
||||
|
||||
-// -- end Track.cpp --
|
||||
\ No newline at end of file
|
||||
+// -- end Track.cpp --
|
||||
--
|
||||
2.14.2
|
||||
|
||||
Reference in New Issue
Block a user