File: rules

package info (click to toggle)
glw 8.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,268 kB
  • sloc: sh: 10,464; ansic: 591; makefile: 38
file content (28 lines) | stat: -rwxr-xr-x 814 bytes parent folder | download
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
#!/usr/bin/make -f

DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules --enable-motif

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	rm -f debian/tmp/usr/include/GL/*P.h
	dh_install

override_dh_makeshlibs:
ifeq ($(DEB_HOST_ARCH_BITS), 32)
	dh_makeshlibs -V'libglw1t64-mesa'
else
	dh_makeshlibs -V'libglw1t64-mesa | libglw1'
endif

%:
	dh $@ --with quilt --builddirectory=build/

# For maintainer use only, generate a tarball:
gentarball: SOURCE=glw
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	git archive --format=tar upstream-experimental --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz