From 88bd2ce057ae69c1e45c6c0613912fb9c1a5e4aa Mon Sep 17 00:00:00 2001 From: Shiroko Date: Sat, 6 Jan 2018 16:21:59 +0800 Subject: [PATCH] nanodot: new recipe (#2050) --- haiku-apps/nanodot/nanodot-1.1b.recipe | 46 +++++++++++++++++ .../nanodot/patches/nanodot-1.1b.patchset | 51 +++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 haiku-apps/nanodot/nanodot-1.1b.recipe create mode 100644 haiku-apps/nanodot/patches/nanodot-1.1b.patchset diff --git a/haiku-apps/nanodot/nanodot-1.1b.recipe b/haiku-apps/nanodot/nanodot-1.1b.recipe new file mode 100644 index 000000000..48d286be3 --- /dev/null +++ b/haiku-apps/nanodot/nanodot-1.1b.recipe @@ -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 +} diff --git a/haiku-apps/nanodot/patches/nanodot-1.1b.patchset b/haiku-apps/nanodot/patches/nanodot-1.1b.patchset new file mode 100644 index 000000000..f65af73a9 --- /dev/null +++ b/haiku-apps/nanodot/patches/nanodot-1.1b.patchset @@ -0,0 +1,51 @@ +From 94d33d8922c58738845d4ea2f7c63890d15429d1 Mon Sep 17 00:00:00 2001 +From: Shiroko +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 + #include + #include "SeqGlobalView.h" + #include "NanoDotApp.h" +-- +2.14.2 + + +From 4353aff4f1f873de99ca52f6493d61afb1ebc67b Mon Sep 17 00:00:00 2001 +From: Shiroko +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 +