mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
ladspa_sdk, bump to 1.17 (#13767)
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
SUMMARY="Linux Audio Developer's Simple Plugin API"
|
||||
DESCRIPTION="There is a large number of synthesis packages in use or \
|
||||
development on the Linux platform at this time. The Linux Audio Developer's \
|
||||
Simple Plugin API (LADSPA) attempts to give programmers the ability to write \
|
||||
simple \`plugin\' audio processors in C/C++ and link them dynamically \
|
||||
against a range of host applications."
|
||||
HOMEPAGE="http://www.ladspa.org/"
|
||||
COPYRIGHT="2000-2002 Richard W.E. Furse, Paul Barton-Davis, Stefan Westerfeld"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="3"
|
||||
SOURCE_URI="http://pkgs.fedoraproject.org/repo/pkgs/ladspa/ladspa_sdk_$portVersion.tgz/671be3e1021d0722cadc7fb27054628e/ladspa_sdk_$portVersion.tgz"
|
||||
CHECKSUM_SHA256="b5ed3f4f253a0f6c1b7a1f4b8cf62376ca9f51d999650dd822650c43852d306b"
|
||||
SOURCE_DIR="ladspa_sdk"
|
||||
PATCHES="ladspa_sdk-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
ladspa_sdk$secondaryArchSuffix = $portVersion
|
||||
cmd:analyseplugin$secondaryArchSuffix
|
||||
cmd:applyplugin$secondaryArchSuffix
|
||||
cmd:listplugins$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ladspa_sdk${secondaryArchSuffix}_devel = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ladspa_sdk$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src
|
||||
make $jobArgs targets LIBRARIES=
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd src
|
||||
make install INSTALL_PLUGINS_DIR=$libDir/ladspa \
|
||||
INSTALL_INCLUDE_DIR=$includeDir \
|
||||
INSTALL_BINARY_DIR=$binDir
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd src
|
||||
make test
|
||||
}
|
||||
87
media-libs/ladspa_sdk/ladspa_sdk-1.17.recipe
Normal file
87
media-libs/ladspa_sdk/ladspa_sdk-1.17.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
SUMMARY="Linux Audio Developer's Simple Plugin API"
|
||||
DESCRIPTION="There is a large number of synthesis packages in use or development on the Linux \
|
||||
platform at this time. The Linux Audio Developer's Simple Plugin API (LADSPA) attempts to give \
|
||||
programmers the ability to write simple \`plugin\' audio processors in C/C++ and link them \
|
||||
dynamically against a range of host applications.
|
||||
|
||||
This package contains the example plug-ins and tools from the LADSPA SDK."
|
||||
HOMEPAGE="http://www.ladspa.org/"
|
||||
COPYRIGHT="2000-2021 Richard W.E. Furse, Paul Barton-Davis, Stefan Westerfeld"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://www.ladspa.org/download/ladspa_sdk_$portVersion.tgz"
|
||||
CHECKSUM_SHA256="27d24f279e4b81bd17ecbdcc38e4c42991bb388826c0b200067ce0eb59d3da5b"
|
||||
SOURCE_DIR="ladspa_sdk_$portVersion"
|
||||
PATCHES="ladspa_sdk-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
ladspa_sdk$secondaryArchSuffix = $portVersion
|
||||
cmd:analyseplugin$secondaryArchSuffix
|
||||
cmd:applyplugin$secondaryArchSuffix
|
||||
cmd:listplugins$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
ladspa_sdk${secondaryArchSuffix}_devel = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
ladspa_sdk$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
ARCHITECTURES_doc="any"
|
||||
PROVIDES_doc="
|
||||
ladspa_sdk_doc
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsndfile$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:sndfile_play$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src
|
||||
PLUGINDIR=$libDir/ladspa make $jobArgs targets LIBRARIES="-lsndfile"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd src
|
||||
make install INSTALL_PLUGINS_DIR=$libDir/ladspa \
|
||||
INSTALL_INCLUDE_DIR=$includeDir \
|
||||
INSTALL_BINARY_DIR=$binDir
|
||||
|
||||
# documentation
|
||||
mkdir -p $documentationDir/packages/ladspa-sdk
|
||||
cp $sourceDir/doc/* $documentationDir/packages/ladspa-sdk
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
# doc package
|
||||
packageEntries doc \
|
||||
$documentationDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd src
|
||||
LADSPA_PATH=plugins/ make test
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
From 7fbc0fe970bf3cc76a0eb8762ba082543eb67e0f Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Tue, 2 Aug 2016 19:33:03 +0200
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/src/makefile b/src/makefile
|
||||
index 886237f..1a62240 100644
|
||||
--- a/src/makefile
|
||||
+++ b/src/makefile
|
||||
@@ -27,6 +27,7 @@ PROGRAMS = ../bin/analyseplugin \
|
||||
../bin/listplugins
|
||||
CC = cc
|
||||
CPP = c++
|
||||
+MKDIR_P = mkdir -p
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
@@ -34,10 +35,12 @@ CPP = c++
|
||||
#
|
||||
|
||||
../plugins/%.so: plugins/%.c ladspa.h
|
||||
+ -$(MKDIR_P) ../plugins
|
||||
$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
|
||||
$(LD) -o ../plugins/$*.so plugins/$*.o -shared
|
||||
|
||||
../plugins/%.so: plugins/%.cpp ladspa.h
|
||||
+ -$(MKDIR_P) ../plugins
|
||||
$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
|
||||
$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
|
||||
|
||||
@@ -59,9 +62,9 @@ test: /tmp/test.wav ../snd/noise.wav always
|
||||
@echo Test complete.
|
||||
|
||||
install: targets
|
||||
- -mkdirhier $(INSTALL_PLUGINS_DIR)
|
||||
- -mkdirhier $(INSTALL_INCLUDE_DIR)
|
||||
- -mkdirhier $(INSTALL_BINARY_DIR)
|
||||
+ -$(MKDIR_P) $(INSTALL_PLUGINS_DIR)
|
||||
+ -$(MKDIR_P) $(INSTALL_INCLUDE_DIR)
|
||||
+ -$(MKDIR_P) $(INSTALL_BINARY_DIR)
|
||||
cp ../plugins/* $(INSTALL_PLUGINS_DIR)
|
||||
cp ladspa.h $(INSTALL_INCLUDE_DIR)
|
||||
cp ../bin/* $(INSTALL_BINARY_DIR)
|
||||
@@ -90,16 +93,19 @@ targets: $(PLUGINS) $(PROGRAMS)
|
||||
#
|
||||
|
||||
../bin/applyplugin: applyplugin.o load.o default.o
|
||||
+ -$(MKDIR_P) ../bin
|
||||
$(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
-o ../bin/applyplugin \
|
||||
applyplugin.o load.o default.o
|
||||
|
||||
../bin/analyseplugin: analyseplugin.o load.o default.o
|
||||
+ -$(MKDIR_P) ../bin
|
||||
$(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
-o ../bin/analyseplugin \
|
||||
analyseplugin.o load.o default.o
|
||||
|
||||
../bin/listplugins: listplugins.o search.o
|
||||
+ -$(MKDIR_P) ../bin
|
||||
$(CC) $(CFLAGS) $(LIBRARIES) \
|
||||
-o ../bin/listplugins \
|
||||
listplugins.o search.o
|
||||
--
|
||||
2.2.2
|
||||
|
||||
25
media-libs/ladspa_sdk/patches/ladspa_sdk-1.17.patchset
Normal file
25
media-libs/ladspa_sdk/patches/ladspa_sdk-1.17.patchset
Normal file
@@ -0,0 +1,25 @@
|
||||
From cc21870ff6ba2a41cba0a6fa56b0aca9ab3b24f2 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Sun, 22 Feb 2026 17:05:30 +0100
|
||||
Subject: Import patch from Fedora
|
||||
|
||||
https://src.fedoraproject.org/rpms/ladspa/blob/rawhide/f/ladspa-1.17.patch
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 774930a..a03260d 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -15,9 +15,8 @@ INSTALL_BINARY_DIR = /usr/bin/
|
||||
|
||||
INCLUDES = -I.
|
||||
LIBRARIES = -ldl -lm -lsndfile
|
||||
-CFLAGS = $(INCLUDES) -Wall -Werror -O2 -fPIC \
|
||||
- -DDEFAULT_LADSPA_PATH=$(INSTALL_PLUGINS_DIR)
|
||||
BINFLAGS = -fPIE -pie
|
||||
+CFLAGS = $(INCLUDES) -Wall -Werror -O2 -fPIC
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
PLUGINS = ../plugins/amp.so \
|
||||
../plugins/delay.so \
|
||||
--
|
||||
2.52.0
|
||||
|
||||
Reference in New Issue
Block a user