#!/usr/bin/make -f # Some Debian build tools clear out some variables export SHELL=/bin/bash MOZCONFIGFILE = debian/mozconfig # stackrpms,2 just do not need lsb_release #distrel := $(shell lsb_release --codename --short) # Reduce memory usage of the linker at the expense of processing time # This should help on lower-end architectures like arm and mips, which # spend an immense amount of time swapping. LDFLAGS += -Wl,--reduce-memory-overheads LDFLAGS += -Wl,--no-keep-memory # stackrpms,3 must be legacy and sounds interesting # Add execution time and memory usage stats in the logs LDFLAGS += -Wl,--stats ifneq (,$(filter $(DEB_HOST_ARCH), armhf)) export DEB_CFLAGS_MAINT_APPEND = -mfpu=neon -funsafe-math-optimizations export DEB_CXXFLAGS_MAINT_APPEND = -mfpu=neon -funsafe-math-optimizations endif #stackrpms,7-->1 I do not need this distrel logic %: dh $@ override_dh_auto_clean: dh_auto_clean find . -name '*.pyc' -delete rm -f mozconfig #stackrpms,5 test -d palemoon/branding/unofficial.unbuilt && { \ rm -rf palemoon/branding/unofficial palemoon/branding/*.blue* ; \ mv palemoon/branding/unofficial.unbuilt palemoon/branding/unofficial ; \ } || : # Don't run the "autoreconfigure by default" added to debhelper >= 10. override_dh_autoreconf: override_dh_auto_configure: cp $(MOZCONFIGFILE) . #stackrpms,4 ! test -d palemoon/branding/unofficial.unbuilt && { \ cp -pr palemoon/branding/unofficial palemoon/branding/unofficial.unbuilt && \ tar -C palemoon/branding -zxf debian/bluemoon-icons.tgz ; } || : override_dh_auto_build: # building the stuff make -f client.mk build override_dh_auto_install: make -f client.mk DESTDIR=$$(pwd)/debian/newmoon prefix=/usr \ installdir=/usr/lib/newmoon \ sdkdir=/usr/lib/newmoon-devel install rm -rf $$(pwd)/debian/newmoon/usr/share/idl rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon-devel rm -rf $$(pwd)/debian/newmoon/usr/include # remove vestigial duplicate file rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon-bin #stackrpms,2 mv $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon $$(pwd)/debian/newmoon/usr/lib/newmoon/newmoon rm -rf $$(pwd)/debian/newmoon/usr/bin/palemoon override_dh_shlibdeps: dh_shlibdeps -l /usr/lib/newmoon override_dh_strip_nondeterminism: dh_strip_nondeterminism -Xdebian/newmoon/usr/lib/newmoon/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi