mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
lmms: create recipe.
I used this version rather than the current v1.1, because this git snapshot has my upstreamed patches for Haiku in it.
This commit is contained in:
51
media-sound/lmms/additional-files/LMMS.rdef
Normal file
51
media-sound/lmms/additional-files/LMMS.rdef
Normal file
@@ -0,0 +1,51 @@
|
||||
resource app_signature "application/x-vnd.lmmsio-lmms";
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = 1,
|
||||
middle = 2,
|
||||
minor = 0,
|
||||
|
||||
variety = B_APPV_DEVELOPMENT,
|
||||
internal = 0,
|
||||
|
||||
short_info = "LMMS",
|
||||
long_info = "Cross-platform music production software."
|
||||
};
|
||||
|
||||
resource file_types message {
|
||||
"types" = "application/x-midi",
|
||||
"types" = "audio/mid",
|
||||
"types" = "audio/midi",
|
||||
"types" = "audio/x-mid",
|
||||
"types" = "audio/x-midi"
|
||||
};
|
||||
|
||||
resource vector_icon {
|
||||
$"6E63696605036FFF9F034AFD850308755E055B030A3C1B1F0A0ABB97C93DBB97"
|
||||
$"C485B780C229B780BD7140B8B640B3FFB378BB12B368C485B778C6D8B780CB99"
|
||||
$"0A04C7DEC6D9CBF4C47DCBF5C937C7DFCB930A04B378C482B378C93AB790CB96"
|
||||
$"B790C6DE0A0CBFBCB8B9C7E9BD6EC7E9C226C3D1C482C3D1C93AC7E9CB96C7EC"
|
||||
$"C6E1CC04C485CC04BFCDCC01BD6ECC01BB12BFBCB4020802B37BC93DBBABC485"
|
||||
$"0802BBABC93DB37BC4850802B37BBB15B793BD710802B793BD71BBABBB150802"
|
||||
$"B793B8B9BBABBB150802BBA8BB12BBABB65E0802BBABB65EBFC3B8B90802BFC3"
|
||||
$"B40240B8B60802BFC3B40240B8B60802BFC3B8B9C3DBB65E0802C3DBBB15C3D7"
|
||||
$"B65A0802C3DBBB15C7F3B8B90802C3DBBB15C7F3BD710802C7E2BD6BCBFABB0F"
|
||||
$"0802C3DBC485CC0BC93D0802C7F3CB99C7EFC2260802C3DBC93DCC0BC4850802"
|
||||
$"B790CB96B790C2260802B37BBFCDB793C2290802B37BBFCDB793BD710802B37B"
|
||||
$"C485B793C2290802B790BD6EB793B8B90802C7EFBD6EC7F3B8B90802C7F3BD71"
|
||||
$"CC0BBFCD0802C7F3C229CC0BC4850802C7E2C223CBFABFC70A15B378C92EB37B"
|
||||
$"BFC1B378BB06B793B8ADBFC3B3F5C7F3B8ADCC07BB06CC07C92EC7EFCB8AC3D7"
|
||||
$"C92EC3DBC479C7EFC21AC7EFBD62C3DBBB09BFC3B8ADBBABBB09B790BD62B790"
|
||||
$"C21ABBA8C476BBA8C92EB790CB8A1F0A000100000A010101000A000102000A00"
|
||||
$"0103000A0201041001178000040A0201051001178000040A0201061001178000"
|
||||
$"040A0201071001178000040A0201081001178000040A0201091001178000040A"
|
||||
$"02010A1001178000040A03010B000A02010C1001178000040A02010D10011780"
|
||||
$"00040A02010E1001178000040A02010F1001178000040A020110100117800004"
|
||||
$"0A0201111001178000040A0201121001178000040A0201131001178000040A02"
|
||||
$"01141001178000040A0201151001178000040A0201161001178000040A020117"
|
||||
$"1001178000040A0201181001178000040A0201191001178000040A02011A1001"
|
||||
$"178000040A02011B1001178000040A02011C1001178000040A02011D10011780"
|
||||
$"00040A04011E100117800004"
|
||||
};
|
||||
77
media-sound/lmms/lmms-1.2.0_git.recipe
Normal file
77
media-sound/lmms/lmms-1.2.0_git.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Cross-platform music production software"
|
||||
DESCRIPTION="LMMS is a free cross-platform alternative to commercial \
|
||||
programs like FL Studio®, which allow you to produce music with your \
|
||||
computer. This includes the creation of melodies and beats, the \
|
||||
synthesis and mixing of sounds, and arranging of samples. You can have fun \
|
||||
with your MIDI-keyboard and much more; all in a user-friendly and modern \
|
||||
interface."
|
||||
HOMEPAGE="http://lmms.io/"
|
||||
SRC_URI="https://github.com/LMMS/lmms/archive/07e422c66defdde88b3a8686ae1f0e6011fe387f.tar.gz"
|
||||
CHECKSUM_SHA256="4a55299cf388c06d996e152353b1898cab457597d10cbbc77ce97777ae516d29"
|
||||
SOURCE_DIR="lmms-07e422c66defdde88b3a8686ae1f0e6011fe387f"
|
||||
PATCHES="lmms-1.2.0.patch"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2004-2014 Tobias Doerffel et al."
|
||||
|
||||
ARCHITECTURES="x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
lmms$secondaryArchSuffix = $portVersion
|
||||
app:lmms$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
libqt4$secondaryArchSuffix >= 4.8
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libfluidsynth$secondaryArchSuffix
|
||||
lib:libsamplerate$secondaryArchSuffix
|
||||
lib:libfftw3f$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
libqt4${secondaryArchSuffix}_devel >= 4.8
|
||||
devel:libsndfile$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libfluidsynth$secondaryArchSuffix
|
||||
devel:libsamplerate$secondaryArchSuffix
|
||||
devel:libfftw3f$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$appsDir/LMMS/ -Wno-dev -GNinja ..
|
||||
ninja $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
ninja install
|
||||
|
||||
rm -rf $appsDir/LMMS/share/man
|
||||
mv $appsDir/LMMS/bin/lmms $appsDir/LMMS/bin/LMMS
|
||||
addResourcesToBinaries $portDir/additional-files/LMMS.rdef \
|
||||
$appsDir/LMMS/bin/LMMS
|
||||
|
||||
addAppDeskbarSymlink $appsDir/LMMS/bin/LMMS "LMMS"
|
||||
}
|
||||
25
media-sound/lmms/patches/lmms-1.2.0.patch
Normal file
25
media-sound/lmms/patches/lmms-1.2.0.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 818d2a84a9ec2d73a082585578b8b46ad4d1dd47 Mon Sep 17 00:00:00 2001
|
||||
From: Augustin Cavalier <waddlesplash@gmail.com>
|
||||
Date: Mon, 16 Mar 2015 17:50:12 -0400
|
||||
Subject: [PATCH] Allow running as root on Haiku.
|
||||
|
||||
---
|
||||
src/core/main.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/core/main.cpp b/src/core/main.cpp
|
||||
index 5313811..73c031b 100644
|
||||
--- a/src/core/main.cpp
|
||||
+++ b/src/core/main.cpp
|
||||
@@ -142,7 +142,7 @@ int main( int argc, char * * argv )
|
||||
}
|
||||
}
|
||||
|
||||
-#ifndef LMMS_BUILD_WIN32
|
||||
+#if !defined(LMMS_BUILD_WIN32) && !defined(__HAIKU__)
|
||||
if ( ( getuid() == 0 || geteuid() == 0 ) && !allow_root )
|
||||
{
|
||||
printf("LMMS cannot be run as root.\nUse \"--allowroot\" to override.\n\n");
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user