From 6690c6eaeed74aa09f09ea8fea3ba5811f88db09 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 22 Feb 2026 22:06:37 +0100 Subject: [PATCH] Add libglew-static package, fix moony.lv2 deps Signed-off-by: falkTX --- sources/libs/glew-static/debian/changelog | 5 +++ sources/libs/glew-static/debian/control | 27 ++++++++++++++ sources/libs/glew-static/debian/install | 2 + sources/libs/glew-static/debian/rules | 37 +++++++++++++++++++ sources/libs/glew-static/debian/source/format | 1 + sources/plugins/moony.lv2/debian/changelog | 6 +++ sources/plugins/moony.lv2/debian/control | 2 +- 7 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 sources/libs/glew-static/debian/changelog create mode 100644 sources/libs/glew-static/debian/control create mode 100644 sources/libs/glew-static/debian/install create mode 100755 sources/libs/glew-static/debian/rules create mode 100644 sources/libs/glew-static/debian/source/format diff --git a/sources/libs/glew-static/debian/changelog b/sources/libs/glew-static/debian/changelog new file mode 100644 index 0000000..b16569c --- /dev/null +++ b/sources/libs/glew-static/debian/changelog @@ -0,0 +1,5 @@ +glew-static (6:2.2.0-1kxstudio8) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 17 Apr 2022 15:05:47 +0100 diff --git a/sources/libs/glew-static/debian/control b/sources/libs/glew-static/debian/control new file mode 100644 index 0000000..f85c811 --- /dev/null +++ b/sources/libs/glew-static/debian/control @@ -0,0 +1,27 @@ +Source: glew-static +Section: devel +Priority: optional +Maintainer: falkTX +Build-Depends: debhelper-compat (= 13), + kxstudio-build-scripts (>= 5), + libgl1-mesa-dev | libgl-dev, + libglu1-mesa-dev | libglu-dev, + libx11-dev, + libxi-dev, + libxmu-dev +Standards-Version: 4.5.0 +Homepage: http://glew.sourceforge.net +Rules-Requires-Root: no + +Package: libglew-static +Architecture: any +Depends: ${misc:Depends} +Description: OpenGL Extension Wrangler (static) + The OpenGL Extension Wrangler, GLEW for short, is a library that + handles initialization of OpenGL extensions in a portable and simple + way. Once the program initializes the library and checks the + availability of extensions, it can safely call the entry points defined + by the extension. Currently GLEW supports almost all the extensions + found in the OpenGL extension registry (http://www.opengl.org/registry). + . + This package provides the static library used in KXStudio builds. diff --git a/sources/libs/glew-static/debian/install b/sources/libs/glew-static/debian/install new file mode 100644 index 0000000..d426c92 --- /dev/null +++ b/sources/libs/glew-static/debian/install @@ -0,0 +1,2 @@ +/opt/kxstudio/include +/opt/kxstudio/lib diff --git a/sources/libs/glew-static/debian/rules b/sources/libs/glew-static/debian/rules new file mode 100755 index 0000000..4476634 --- /dev/null +++ b/sources/libs/glew-static/debian/rules @@ -0,0 +1,37 @@ +#!/usr/bin/make -f + +KXSTUDIO_NO_FASTMATH = y +include /usr/share/dpkg/kxstudio.mk + +export GLEW_DEST = /opt/kxstudio +export GLEW_PREFIX = /opt/kxstudio + +export BINDIR = /opt/kxstudio/bin +export INCDIR = /opt/kxstudio/include/GL +export PKGDIR = /opt/kxstudio/lib/pkgconfig + +override_dh_auto_configure: + rm -f config/config.guess + ln -sf /usr/share/misc/config.guess config/ + +override_dh_auto_build: + dh_auto_build -- \ + GL_LDFLAGS=-lGL \ + GLU_LDFLAGS=-lGLU \ + GLUT_LDFLAGS=-lglut \ + LIBDIR=/opt/kxstudio/lib \ + SYSTEM=$(firstword $(subst -, ,$(DEB_HOST_GNU_SYSTEM))) \ + 'LD=$$(CC)' \ + 'OPT=$(CFLAGS)' + +override_dh_auto_install: + $(MAKE) install.all DESTDIR=$(CURDIR)/debian/tmp LIBDIR=/opt/kxstudio/lib + rm $(CURDIR)/debian/tmp/opt/kxstudio/lib/*.so* + +override_dh_auto_clean: + rm -f config/config.guess + ln -sf /usr/share/misc/config.guess config/ + dh_auto_clean + +%: + dh $@ diff --git a/sources/libs/glew-static/debian/source/format b/sources/libs/glew-static/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/libs/glew-static/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/plugins/moony.lv2/debian/changelog b/sources/plugins/moony.lv2/debian/changelog index d2b03c1..055ea9e 100644 --- a/sources/plugins/moony.lv2/debian/changelog +++ b/sources/plugins/moony.lv2/debian/changelog @@ -1,3 +1,9 @@ +moony.lv2 (6:0.40.0-1kxstudio2) focal; urgency=medium + + * Use libglew dep as static lib + + -- falkTX Sun, 22 Feb 2026 22:06:03 +0100 + moony.lv2 (6:0.40.0-1kxstudio1) focal; urgency=medium * Initial package diff --git a/sources/plugins/moony.lv2/debian/control b/sources/plugins/moony.lv2/debian/control index f7d32c2..370f1db 100644 --- a/sources/plugins/moony.lv2/debian/control +++ b/sources/plugins/moony.lv2/debian/control @@ -12,7 +12,7 @@ Build-Depends: debhelper-compat (= 13), libxext-dev, libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev, - libglew-dev + libglew-static Standards-Version: 3.8.4 Package: moony.lv2