Commit 84a121a3 authored by jan.koester's avatar jan.koester
Browse files

tes

parent 6978a80a
Loading
Loading
Loading
Loading
+3 −18
Original line number Diff line number Diff line
@@ -7,11 +7,9 @@ export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

TOOLCHAIN_FILE = /usr/local/musl/share/musl-llvm-toolchain.cmake
IS_NSPAWN = $(filter nspawn,$(DEB_BUILD_PROFILES))
IS_EDITOR = $(filter editor,$(DEB_BUILD_PROFILES))

override_dh_auto_configure:
ifneq ($(IS_NSPAWN),)
ifneq ($(IS_EDITOR),)
	dh_auto_configure -- \
		-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
		-DCMAKE_INSTALL_PREFIX=/usr \
@@ -21,27 +19,16 @@ ifneq ($(IS_EDITOR),)
else
	dh_auto_configure -- \
		-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_EDITOR=OFF
endif
else ifneq ($(IS_EDITOR),)
	dh_auto_configure -- \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_EDITOR=ON
else
	dh_auto_configure -- \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_EDITOR=OFF
endif

override_dh_shlibdeps:
ifneq ($(IS_NSPAWN),)
ifneq ($(IS_EDITOR),)
	@echo "Skipping dh_shlibdeps for editor (self-contained nspawn container)"
else ifneq ($(IS_NSPAWN),)
	dh_shlibdeps -- --ignore-missing-info
else
	dh_shlibdeps
@@ -56,7 +43,6 @@ endif

override_dh_install:
	dh_install
ifneq ($(IS_EDITOR),)
ifneq ($(IS_NSPAWN),)
	@echo "Editor nspawn build — assembling chroot at /opt/blogi-editor"
	# musl dynamic linker
@@ -218,7 +204,6 @@ endif
override_dh_fixperms:
	dh_fixperms
ifneq ($(IS_NSPAWN),)
ifneq ($(IS_EDITOR),)
	chmod +x debian/blogi-editor/opt/blogi-editor/usr/local/musl/lib/libc.so
else
	# musl libc.so is the ELF interpreter and must be executable