File debian.rules of Package texmacs

#!/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 --ignore-missing-info

override_dh_auto_configure:
	# workaround to apply a binary patch
	git --work-tree=. apply --whitespace=nowarn ../SOURCES/my_current.patch
	# dh_autoreconf
	CXXFLAGS=-fPIC LDFLAGS="-fPIC -pthread -ldl -Wl,--copy-dt-needed-entries" ./configure
    
override_dh_auto_build:
	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