Browse Source

Add lilv-static

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 3 years ago
parent
commit
b7911c812a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
10 changed files with 222 additions and 0 deletions
  1. +5
    -0
      sources/libs/lilv-static/debian/changelog
  2. +47
    -0
      sources/libs/lilv-static/debian/control
  3. +20
    -0
      sources/libs/lilv-static/debian/patches/01_dont-run-ldconfig.patch
  4. +21
    -0
      sources/libs/lilv-static/debian/patches/02_hidden-lilv-api.patch
  5. +25
    -0
      sources/libs/lilv-static/debian/patches/03_fix-static-build.patch
  6. +9
    -0
      sources/libs/lilv-static/debian/patches/04_force-libs.patch
  7. +4
    -0
      sources/libs/lilv-static/debian/patches/series
  8. +32
    -0
      sources/libs/lilv-static/debian/rules
  9. +1
    -0
      sources/libs/lilv-static/debian/source/format
  10. +58
    -0
      sources/libs/lilv-static/debian/source/include-binaries

+ 5
- 0
sources/libs/lilv-static/debian/changelog View File

@@ -0,0 +1,5 @@
lilv-static (5:0.24.12-1kxstudio1) focal; urgency=medium

* Initial package

-- falkTX <falktx@falktx.com> Sun, 17 Apr 2022 15:05:47 +0100

+ 47
- 0
sources/libs/lilv-static/debian/control View File

@@ -0,0 +1,47 @@
Source: lilv-static
Section: libs
Priority: optional
Maintainer: falkTX <falktx@falktx.com>
Build-Depends: debhelper-compat (= 13),
kxstudio-build-scripts,
python3,
pkg-config,
libsndfile-static,
libsratom-static,
libjack-dev | libjack-jackd2-dev
Standards-Version: 4.5.0
Homepage: http://drobilla.net/software/lilv/
Rules-Requires-Root: no

Package: liblilv-static
Architecture: any
Depends: ${misc:Depends}, libsratom-static
Conflicts: lilv-static
Breaks: lilv-static
Description: library for simple use of LV2 plugins (static)
Lilv (formerly SLV2) is a library for LV2 hosts intended to make using
LV2 Plugins as simple as possible (without sacrificing capabilities).
.
Lilv is the successor to SLV2, rewritten to be significantly faster
and have minimal dependencies.
.
This package provides the static library used in KXStudio builds.

Package: lilv-utils
Section: sound
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Provides: lv2-host
Description: library for simple use of LV2 plugins (runtime files)
Lilv (formerly SLV2) is a library for LV2 hosts intended to make using
LV2 Plugins as simple as possible (without sacrificing capabilities).
.
Lilv is the successor to SLV2, rewritten to be significantly faster
and have minimal dependencies.
.
This package provides the following utilities:
* lv2info - Extract information about an installed LV2 plugin.
* lv2ls - List all installed LV2 plugins.
* lv2apply - Apply an LV2 plugin to an audio file.
* lv2bench - Benchmark all installed and supported LV2 plugins.
* lilv-bench

+ 20
- 0
sources/libs/lilv-static/debian/patches/01_dont-run-ldconfig.patch View File

@@ -0,0 +1,20 @@
Description: Don't run ldconfig after calling the install target
and save a bit of time.
Author: Alessio Treglia <alessio@debian.org>
Forwarded: David Robillard <d@drobilla.net>
---
wscript | 1 -
1 file changed, 1 deletion(-)

Index: lilv/wscript
===================================================================
--- lilv.orig/wscript
+++ lilv/wscript
@@ -560,7 +560,6 @@ def build(bld):
bld.install_as('${SYSCONFDIR}/bash_completion.d/lilv',
'utils/lilv.bash_completion')
- bld.add_post_fun(autowaf.run_ldconfig)
def test(tst):

+ 21
- 0
sources/libs/lilv-static/debian/patches/02_hidden-lilv-api.patch View File

@@ -0,0 +1,21 @@
diff --git a/include/lilv/lilv.h b/include/lilv/lilv.h
index 5fd7a9f..368df82 100644
--- a/include/lilv/lilv.h
+++ b/include/lilv/lilv.h
@@ -27,15 +27,7 @@
#include <stdint.h>
#include <stdio.h>
-#if defined(_WIN32) && !defined(LILV_STATIC) && defined(LILV_INTERNAL)
-# define LILV_API __declspec(dllexport)
-#elif defined(_WIN32) && !defined(LILV_STATIC)
-# define LILV_API __declspec(dllimport)
-#elif defined(__GNUC__)
-# define LILV_API __attribute__((visibility("default")))
-#else
-# define LILV_API
-#endif
+#define LILV_API
#if defined(__GNUC__) && \
(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))

+ 25
- 0
sources/libs/lilv-static/debian/patches/03_fix-static-build.patch View File

@@ -0,0 +1,25 @@
diff --git a/wscript b/wscript
index f6780d0..fa513a4 100644
--- a/wscript
+++ b/wscript
@@ -300,9 +300,10 @@ def build_util(bld, name, defines, libs=''):
install_path = '${BINDIR}')
if not bld.env.BUILD_SHARED or bld.env.STATIC_PROGS:
obj.use = 'liblilv_static'
+ obj.lib = ['dl']
if bld.env.STATIC_PROGS:
if not bld.env.MSVC_COMPILER:
- obj.lib = ['m']
+ obj.lib = ['dl', 'm']
obj.env.SHLIB_MARKER = obj.env.STLIB_MARKER
obj.linkflags = ['-static', '-Wl,--start-group']
return obj
@@ -543,7 +544,7 @@ def build(bld):
not bld.env.STATIC_PROGS):
obj = build_util(bld, 'utils/lv2bench', defines)
if bld.env.DEST_OS != 'darwin':
- obj.lib = ['rt']
+ obj.lib = ['dl', 'rt']
# Documentation
if bld.env.DOCS:

+ 9
- 0
sources/libs/lilv-static/debian/patches/04_force-libs.patch View File

@@ -0,0 +1,9 @@
--- lilv-static-0.18.0.orig/lilv.pc.in
+++ lilv-static-0.18.0/lilv.pc.in
@@ -7,5 +7,5 @@ Name: Lilv
Version: @LILV_VERSION@
Description: Simple C library for hosting LV2 plugins
Requires: @LILV_PKG_DEPS@
-Libs: -L${libdir} -l@LIB_LILV@ @LILV_PKG_LIBS@
+Libs: -L${libdir} -l@LIB_LILV@ @LILV_PKG_LIBS@ -lsratom-0 -lsord-0 -lserd-0 -lm -ldl
Cflags: -I${includedir}/lilv-@LILV_MAJOR_VERSION@

+ 4
- 0
sources/libs/lilv-static/debian/patches/series View File

@@ -0,0 +1,4 @@
01_dont-run-ldconfig.patch
02_hidden-lilv-api.patch
03_fix-static-build.patch
04_force-libs.patch

+ 32
- 0
sources/libs/lilv-static/debian/rules View File

@@ -0,0 +1,32 @@
#!/usr/bin/make -f

KXSTUDIO_NO_FASTMATH = y
include /usr/share/dpkg/kxstudio.mk

WAF = python3 ./waf

override_dh_auto_configure:
$(WAF) configure \
--static \
--no-shared \
--no-bindings \
--prefix=/opt/kxstudio \
--default-lv2-path='~/.lv2:/usr/lib/$(DEB_HOST_MULTIARCH)/lv2:/usr/lib/lv2:/usr/local/lib/lv2' \
--mandir=/usr/share/man \
--strict \
--test

override_dh_auto_build:
$(WAF)

override_dh_auto_clean:
$(WAF) clean || true

override_dh_auto_install:
$(WAF) install --destdir=$(CURDIR)/debian/tmp

override_dh_auto_test:
$(WAF) test

%:
dh $@

+ 1
- 0
sources/libs/lilv-static/debian/source/format View File

@@ -0,0 +1 @@
3.0 (quilt)

+ 58
- 0
sources/libs/lilv-static/debian/source/include-binaries View File

@@ -0,0 +1,58 @@
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Build.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/ConfigSet.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Configure.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Context.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Errors.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Logs.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Node.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Options.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Runner.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Scripting.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Task.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/TaskGen.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/__init__.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/ar.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c_aliases.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c_config.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c_osx.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c_preproc.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/c_tests.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/ccroot.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/clang.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/clangxx.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/compiler_c.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/compiler_cxx.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/gcc.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/gxx.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/icc.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/icpc.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Tools/python.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/Utils.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/__init__.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/ansiterm.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/extras/__init__.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/extras/autowaf.pyc
.waf-1.8.14-1d629e2af929e93b3210957e709a6c76/waflib/fixpy2.pyc
build/.wafpickle-linux2-34014960-98
build/liblilv-0.a
build/src/collections.c.2.o
build/src/instance.c.2.o
build/src/lib.c.2.o
build/src/node.c.2.o
build/src/plugin.c.2.o
build/src/pluginclass.c.2.o
build/src/port.c.2.o
build/src/query.c.2.o
build/src/scalepoint.c.2.o
build/src/state.c.2.o
build/src/ui.c.2.o
build/src/util.c.2.o
build/src/world.c.2.o
build/src/zix/tree.c.2.o
build/utils/lilv-bench
build/utils/lilv-bench.c.3.o
build/utils/lv2info
build/utils/lv2info.c.4.o
build/utils/lv2ls
build/utils/lv2ls.c.5.o

Loading…
Cancel
Save