Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 export DH_VERBOSE = 1
3
4 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
7
8 ifneq (,$(findstring alpha,$(DEB_BUILD_GNU_TYPE)))
9 CFLAGS += -mieee
10 CXXFLAGS += -mieee
11 endif
12
13 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
14 DPKG_EXPORT_BUILDFLAGS = 1
15 include /usr/share/dpkg/buildflags.mk
16 CFLAGS += -Wall
17
18 %:
19 dh $@
20
21 execute_after_dh_clean:
22 rm -rf libltdl
23
24 override_dh_auto_configure: bootstrap
25 ${<D}/${<F}
26 dh_auto_configure -- --bindir=/usr/games --datadir=/usr/share/games --with-cflags="$(CFLAGS)" --with-cxxflags="$(CXXFLAGS)"
27
28 override_dh_autoreconf: bootstrap
29 dh_autoreconf ${<D}/${<F}
30
31 override_dh_install:
32 rm -rf ${CURDIR}/debian/tmp/var/games/pinball/*/highscores
33 rm -rf ${CURDIR}/debian/tmp/usr/lib/*/pinball/libModule*.so
34 rm -rf ${CURDIR}/debian/tmp/usr/lib/*/pinball/libModule*.a
35 rm -rf ${CURDIR}/debian/tmp/usr/lib/*/pinball/libModuleTest*
36 sed -i "/dependency_libs/s/'.*'/''/" $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pinball/*.la
37 install -d $(CURDIR)/debian/tmp/usr/share/applications
38 install -d $(CURDIR)/debian/tmp/usr/share/pixmaps
39 install -d $(CURDIR)/debian/tmp/usr/bin
40 mv $(CURDIR)/debian/tmp/usr/games/pinball-config $(CURDIR)/debian/tmp/usr/bin
41 install -m 644 pinball.desktop $(CURDIR)/debian/tmp/usr/share/applications
42 install -m 644 data/pinball.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps
43 onsgmls debian/pinball.sgml | sgmlspl sgmlspl-specs/docbook2man-spec.pl
44 dh_install
45
46 override_dh_makeshlibs: