Tizen 2.1 base
[profile/ivi/gst-ffmpeg0.10.git] / debian / rules
1 #!/usr/bin/make -f
2
3  
4 CONFIGURE_OPTION=--disable-static \
5                  --disable-nls \
6                  --with-html-dir=/tmp/dump
7       
8
9 CFLAGS += -Wall -g -fPIC
10 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11         CFLAGS += -O0
12 else
13         CFLAGS += -O2
14 endif
15
16 # shared library versions, option 1
17 version=0.1
18 major=0
19
20 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
21
22 config.status: configure
23         dh_testdir
24         # Add here commands to configure the package.
25         ./autogen.sh
26         ./configure --prefix=/usr $(CONFIGURE_OPTION) CFLAGS="$(CFLAGS)" LDFLAG="$(LDFLAGS)"
27
28 configure: 
29         dh_testdir
30
31
32 build: build-stamp
33 build-stamp:  config.status
34         dh_testdir
35
36         # Add here commands to compile the package.
37         $(MAKE)
38
39         touch $@
40
41 clean:
42         dh_testdir
43         dh_testroot
44         rm -f build-stamp stamp-h1
45
46         # Add here commands to clean up after the build process.
47         -$(MAKE) distclean
48
49         dh_clean 
50
51 install: build 
52         dh_testdir
53         dh_testroot
54         dh_clean -k 
55         dh_installdirs
56
57         # Add here commands to install the package into debian/tmp
58         $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
59         execstack -c $(CURDIR)/debian/tmp/usr/lib/gstreamer-0.10/libgstffmpeg.so
60
61 # Build architecture-independent files here.
62 binary-indep: build install
63 # We have nothing to do by default.
64
65 # Build architecture-dependent files here.
66 binary-arch: build install
67         dh_testdir
68         dh_testroot
69         dh_installchangelogs
70         dh_installdocs
71         dh_installexamples
72         dh_install --sourcedir debian/tmp --list-missing
73         dh_installman
74         dh_link
75         dh_strip --dbg-package=gstreamer0.10-ffmpeg-dbg
76         dh_compress
77         dh_fixperms
78         dh_installdeb
79         dh_shlibdeps
80         dh_gencontrol
81         dh_md5sums
82         dh_builddeb
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install