From f183cfec8b565beeafd93f8f8b76a23fa71e78ff Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 9 Nov 2022 16:04:18 -0500 Subject: add fluxbox --- fluxbox/debian/rules.d/050-configure_override.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 fluxbox/debian/rules.d/050-configure_override.mk (limited to 'fluxbox/debian/rules.d/050-configure_override.mk') diff --git a/fluxbox/debian/rules.d/050-configure_override.mk b/fluxbox/debian/rules.d/050-configure_override.mk new file mode 100644 index 0000000..a7c6907 --- /dev/null +++ b/fluxbox/debian/rules.d/050-configure_override.mk @@ -0,0 +1,20 @@ +# Intercept the configure stage to throw it some flags. + +FLUXBOX_VENDOR := $(shell \ + if dpkg-vendor --derives-from Ubuntu; then \ + echo Ubuntu; \ + else \ + echo Debian; \ + fi \ +) + +THEME_DEFAULT := $(shell \ + cat ./debian/additional-themes/defaults | \ + grep ^$(FLUXBOX_VENDOR) | \ + awk '{print $$2}' \ +) + +DEB_CONFIGURE_EXTRA_FLAGS += -with-style=$(DEB_STYLE_DIR)/$(THEME_DEFAULT) + +override_dh_auto_configure: + ./configure $(DEB_CONFIGURE_EXTRA_FLAGS) -- cgit