File: rules

package info (click to toggle)
libqglviewer 2.8.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,076 kB
  • sloc: cpp: 25,884; sh: 14; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 670 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@ --sourcedirectory=$(CURDIR)/QGLViewer

override_dh_auto_configure:
	QT_SELECT=qt5 dh_auto_configure -- LIB_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	find . -name '*.vcproj' -print0 | xargs -0 rm -f
	# now apply privacy cleanning rules
	find $(CURDIR)/doc/ \
			 -type f -and -name '*.html' -and -not -empty -print0 \
			 | xargs -r -0 -n 1 sed -i '/script t/,/script>/d'
	dh_auto_install
	sed -i 's/https\:\/\/spreadsheets\.google\.com//g' $(CURDIR)/debian/tmp/usr/share/doc/QGLViewer/commercial.html
	sed -i 's/http\:\/\/www\.libqglviewer\.com//g' $(CURDIR)/debian/tmp/usr/share/doc/QGLViewer/download_statistics.html