OSDN Git Service

Bump libmkv to 0.6.4.1
[handbrake-jp/handbrake-jp-git.git] / pkg / linux / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
7
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
10
11
12 # These are used for cross-compiling and for saving the configure script
13 # from having to guess our platform (since we know it already)
14 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
17 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
18 else
19 CROSS= --build $(DEB_BUILD_GNU_TYPE)
20 endif
21
22 PKGDESTDIR   = ../
23 CONFIGURE    = ./configure
24 BUILDDIR     = build
25 FORCEVERSION = 
26
27 $(BUILDDIR)/GNUmakefile: $(CONFIGURE)
28         dh_testdir
29         unset CFLAGS; unset CPPLAGS; unset CXXLAGS; $(CONFIGURE) --disable-gtk-update-checks --prefix=/usr
30
31 build:  $(BUILDDIR)/GNUmakefile
32         dh_testdir
33         #We must build both the main project and the GTK project
34         unset CFLAGS ; unset CPPLAGS ; unset CXXLAGS; $(MAKE) -C $(BUILDDIR)
35
36 clean: 
37         dh_testdir
38         dh_testroot
39
40         dh_clean
41
42 install: build
43         dh_testdir
44         dh_testroot
45         dh_installdirs
46         $(MAKE) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install
47
48 # Build architecture-independent files here.
49 binary-indep: build install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs -i
53         dh_installdocs -i
54         dh_install --sourcedir=debian/tmp -i
55         dh_icons -i
56         dh_link -i
57         dh_compress -i
58         dh_fixperms -i
59         dh_installdeb -i
60         dh_gencontrol -i $(FORCEVERSION)
61         dh_md5sums -i
62         dh_builddeb --destdir=$(PKGDESTDIR) -i
63
64 # Build architecture-dependent files here.
65 binary-arch: build install
66         dh_testdir
67         dh_testroot
68         dh_install --sourcedir=debian/tmp -a
69         dh_installchangelogs -a
70         dh_installdocs -a
71         dh_installexamples -a
72         dh_installman -a
73         dh_link -a
74         dh_icons -a
75         dh_strip -a
76         dh_compress -a
77         dh_fixperms -a
78         dh_installdeb -a
79         dh_shlibdeps -a
80         dh_gencontrol -a $(FORCEVERSION)
81         dh_md5sums -a
82         dh_builddeb -a --destdir=$(PKGDESTDIR) -- -Zbzip2
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install