mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
93 lines
3.3 KiB
Bash
93 lines
3.3 KiB
Bash
SUMMARY="A waveform editor for the E370 and E352 Eurorack synthesizer modules"
|
|
DESCRIPTION="WaveEdit is a free tool on PC/Mac/Linux that allows powerful creation and editing of wavetables \
|
|
for the E352 and E370 VCOs. Using standard WAV formats, the editor includes a full toolbox of shortcuts. \
|
|
An audio Preview is available to audition the waves before loading into the module."
|
|
HOMEPAGE="https://synthtech.com/waveedit/"
|
|
COPYRIGHT="1998-2022 Synthesis Technology"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/AndrewBelt/WaveEdit/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d3c1fadeb99f6f12ba75cae7b40df11b3074b608767f83cf0722d97fa917a608"
|
|
SOURCE_DIR="WaveEdit-$portVersion"
|
|
srcGitRev_2="cfb1dd6cae8f4dbbcb36377edfec52a9cd874308"
|
|
SOURCE_URI_2="https://github.com/AndrewBelt/imgui/archive/$srcGitRev_2.tar.gz"
|
|
CHECKSUM_SHA256_2="1a73b8d66dff7515c072cf4aa4432fffd4256d22f231ff891329ea14e4f2de86"
|
|
SOURCE_DIR_2="imgui-$srcGitRev_2"
|
|
srcGitRev_3="8a0f16afe74a6abf85e3b45e9558283022021a59"
|
|
SOURCE_URI_3="https://github.com/lvandeve/lodepng/archive/$srcGitRev_3.zip"
|
|
CHECKSUM_SHA256_3="30a99e0b6e928f496d0c7837770c09cd36d27f48cc84e7089bea3e2b2bf8c0e7"
|
|
SOURCE_DIR_3="lodepng-$srcGitRev_3"
|
|
srcGitRev_4="c5062dc2dd6c1f053ca85fc53cc3bfbfd30e13d1"
|
|
SOURCE_URI_4="https://github.com/marton78/pffft/archive/$srcGitRev_4.zip"
|
|
CHECKSUM_SHA256_4="2922f36fef17d6a52860bb42f67e6c01192d0352edb424971a667422d767746e"
|
|
SOURCE_DIR_4="pffft-$srcGitRev_4"
|
|
srcGitRev_5="e66caf0f9d3266a79c513dcc73b57b6b3eb38120"
|
|
SOURCE_URI_5="https://github.com/AndrewBelt/osdialog/archive/$srcGitRev_5.zip"
|
|
CHECKSUM_SHA256_5="db03216390234adbadd5fe92d7adbdc8ae2d2de7752b19ffa18767c0c5392305"
|
|
SOURCE_DIR_5="osdialog-$srcGitRev_5"
|
|
PATCHES="waveedit-$portVersion.patchset"
|
|
PATCHES_5="osdialog.patchset"
|
|
ADDITIONAL_FILES="waveedit.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
waveedit$secondaryArchSuffix = $portVersion
|
|
app:WaveEdit = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libjansson$secondaryArchSuffix
|
|
lib:libsamplerate$secondaryArchSuffix
|
|
lib:libsndfile$secondaryArchSuffix
|
|
lib:libsdl2_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libjansson$secondaryArchSuffix
|
|
devel:libsamplerate$secondaryArchSuffix
|
|
devel:libsndfile$secondaryArchSuffix
|
|
devel:libsdl2_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cp -Rf $sourceDir2/* ext/imgui
|
|
cp -Rf $sourceDir3/* ext/lodepng
|
|
cp -Rf $sourceDir4/* ext/pffft
|
|
cp -Rf $sourceDir5/* ext/osdialog
|
|
|
|
make ARCH=haiku
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/WaveEdit
|
|
cp -R {WaveEdit,logo-dark.png,logo-light.png,fonts,catalog,banks,doc/manual.pdf} $appsDir/WaveEdit
|
|
|
|
local APP_SIGNATURE="application/x-vnd.synthesis-waveedit"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/waveedit.rdef.in > waveedit.rdef
|
|
|
|
addResourcesToBinaries waveedit.rdef $appsDir/WaveEdit/WaveEdit
|
|
addAppDeskbarSymlink $appsDir/WaveEdit/WaveEdit
|
|
}
|