File: rules

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

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

override_dh_auto_configure:
	cp -r QGLViewer QGLViewer6
	QT_SELECT=qt5 dh_auto_configure -- LIB_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		"QMAKE_CXXFLAGS+=$(CXXFLAGS)" \
		"QMAKE_CFLAGS+=$(CFLAGS)" \
		"QMAKE_LFLAGS+=$(LDFLAGS)"
	QT_SELECT=qt6 dh_auto_configure --sourcedirectory=QGLViewer6 --buildsystem=qmake6 -- LIB_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		"QMAKE_CXXFLAGS+=$(CXXFLAGS)" \
		"QMAKE_CFLAGS+=$(CFLAGS)" \
		"QMAKE_LFLAGS+=$(LDFLAGS)"

override_dh_auto_build:
	dh_auto_build
	dh_auto_build --sourcedirectory=QGLViewer6

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --sourcedirectory=QGLViewer6
	find debian/tmp/usr/share/doc/ -name '*.vcproj' -delete
	# now apply privacy cleanning rules
	find debian/tmp/usr/share/doc/ \
			 -type f -and -name '*.html' -and -not -empty -print0 \
			 | xargs -r -0 -n 1 sed -i '/script t/,/script>/d'
	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