File debian.rules of Package TeXmacs-QT6

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_COMPAT=9
#QT_SELECT=qt4
export XDG_UTILS_INSTALL_MODE=system

%:
	dh $@ --parallel

override_dh_auto_install:
	dh_auto_install
	mkdir -p $(CURDIR)/debian/texmacs/usr/share/applications &&\
      cp TeXmacs/misc/mime/texmacs.desktop $(CURDIR)/debian/texmacs/usr/share/applications/

override_dh_shlibdeps:
	dh_shlibdeps -- -v

override_dh_auto_configure:
	echo Building for QT6
	qtchooser -install qt6 /usr/lib/qt6/bin/qmake6
	PATH="/usr/lib/qt6/libexec:/usr/lib/qt6/bin:$(PATH)" QT_SELECT=qt6 CXXFLAGS=-fPIC LDFLAGS="-fPIC -pthread -ldl -Wl,--copy-dt-needed-entries" ./configure --with-qt-find-method=pkgconfig --with-guile=embedded18 --with-gnutls=yes
	cp -rf tm-guile188/ice-9 ./TeXmacs/progs/

override_dh_auto_build:
	PATH="/usr/lib/qt6/libexec:/usr/lib/qt6/bin:$(PATH)" QT_SELECT=qt6 CXXFLAGS=-fPIC LDFLAGS="-fPIC -pthread -ldl -Wl,--copy-dt-needed-entries" make

override_dh_perl:
override_dh_usrlocal:
override_dh_auto_clean:
openSUSE Build Service is sponsored by