Code

163f44d3ff96fca72d95a226f82f7f435bbce7b4
[pkg-enblend.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for enblend-enfuse
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>.
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CFLAGS = -Wall -g
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
22 get-orig-source:
23         dh_testdir
24         dh_testroot
25         chmod 755 debian/bin/uscan_repack.sh
26         uscan --verbose --force-download --rename
28 config.status: configure
29         dh_testdir
30         CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
31                 --build=$(DEB_BUILD_GNU_TYPE) \
32                 --prefix=/usr --mandir=\$${prefix}/share/man \
33                 --enable-gpu-support=yes \
34                 --disable-openmp \
35                 --enable-image-cache=yes \
36                 --with-boost-filesystem=yes \
37                 --with-openexr=yes
39 build: build-stamp
41 build-stamp:  config.status
42         dh_testdir
43         
44         $(MAKE)
45         
46         touch build-stamp
48 clean:
49         dh_testdir
50         dh_testroot
51         rm -f build-stamp
52         
53         [ ! -f Makefile ] || $(MAKE) distclean
54         rm -f doc/*.info
55         
56         dh_clean
58 install: build
59         dh_testdir
60         dh_testroot
61         dh_clean -k
62         dh_installdirs
63         
64         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
65         rm -f $(CURDIR)/debian/tmp/usr/share/info/dir
67 binary-indep:
68         # nothing to do here
70 binary-arch: build install
71         dh_testdir
72         dh_testroot
73         dh_installchangelogs -a ChangeLog
74         dh_installdocs -A -a NEWS AUTHORS
75         dh_installexamples -a
76         dh_install -a --sourcedir=debian/tmp --fail-missing
77         dh_installman -a
78         dh_installinfo -penblend doc/enblend.info
79         dh_installinfo -penfuse doc/enfuse*.info
80         dh_link -a
81         dh_strip -a
82         dh_compress -a
83         dh_fixperms -a
84         dh_installdeb -a
85         dh_shlibdeps -a
86         dh_gencontrol -a
87         dh_md5sums -a
88         dh_builddeb -a
90 binary: binary-indep binary-arch
91 .PHONY: get-orig-source build clean binary-indep binary-arch binary install