Code

control/rules: Let enblend/enfuse use the Boost filesystem library.
[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 include /usr/share/dpatch/dpatch.make
24 get-orig-source:
25         dh_testdir
26         dh_testroot
27         chmod 755 debian/bin/uscan_repack.sh
28         uscan --verbose --force-download --rename
30 config.status: configure $(DPATCH_STAMPFN)
31         dh_testdir
32         CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
33                 --build=$(DEB_BUILD_GNU_TYPE) \
34                 --prefix=/usr --mandir=\$${prefix}/share/man \
35                 --enable-gpu-support=yes \
36                 --disable-openmp \
37                 --enable-image-cache=yes \
38                 --with-boost-filesystem=yes \
39                 --with-openexr=yes
41 build: build-stamp
43 build-stamp:  config.status
44         dh_testdir
45         
46         $(MAKE)
47         
48         touch build-stamp
50 clean: unpatch
51         dh_testdir
52         dh_testroot
53         rm -f build-stamp
54         
55         [ ! -f Makefile ] || $(MAKE) distclean
56         rm -f doc/*.info
57         
58         dh_clean
60 install: build
61         dh_testdir
62         dh_testroot
63         dh_clean -k
64         dh_installdirs
65         
66         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
67         rm -f $(CURDIR)/debian/tmp/usr/share/info/dir
69 binary-indep:
70         # nothing to do here
72 binary-arch: build install
73         dh_testdir
74         dh_testroot
75         dh_installchangelogs -a ChangeLog
76         dh_installdocs -A -a NEWS AUTHORS
77         dh_installexamples -a
78         dh_install -a --sourcedir=debian/tmp --fail-missing
79         dh_installman -a
80         dh_installinfo -penblend doc/enblend.info
81         dh_installinfo -penfuse doc/enfuse*.info
82         dh_link -a
83         dh_strip -a
84         dh_compress -a
85         dh_fixperms -a
86         dh_installdeb -a
87         dh_shlibdeps -a
88         dh_gencontrol -a
89         dh_md5sums -a
90         dh_builddeb -a
92 binary: binary-indep binary-arch
93 .PHONY: get-orig-source build clean binary-indep binary-arch binary install