36 lines
1.2 KiB
Makefile
Executable file
36 lines
1.2 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
|
|
|
|
%:
|
|
dh $@
|
|
|
|
# malcontent it not in Ubuntu main yet & is only built on some arches
|
|
ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
|
|
PARENTAL_CONTROL := -Dparental_controls=disabled
|
|
else
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x hppa loong64 powerpc ppc64 x32))
|
|
PARENTAL_CONTROL := -Dparental_controls=enabled
|
|
else
|
|
PARENTAL_CONTROL := -Dparental_controls=disabled
|
|
endif
|
|
endif
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- \
|
|
-Dauto_features=enabled \
|
|
$(PARENTAL_CONTROL)
|
|
|
|
execute_after_dh_install:
|
|
dh_install debian/vendor.conf /usr/share/gnome-initial-setup/
|
|
|
|
# Depend on the appropriate package for the Welcome logo
|
|
# And don't add malcontent Recommends in Ubuntu
|
|
override_dh_gencontrol:
|
|
ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
|
|
dh_gencontrol -- -Vlogo:Depends='gnome-control-center-data'
|
|
else
|
|
dh_gencontrol -- -Vlogo:Depends='desktop-base' \
|
|
-Vmalcontent:Recommends='malcontent [amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x hppa loong64 powerpc ppc64 x32]'
|
|
endif
|