upload tizen2.0 source
[framework/uifw/xorg/xcb/xcb-util.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_DH_INSTALL_SOURCEDIR=debian/tmp
4
5 include /usr/share/cdbs/1/rules/debhelper.mk
6 include /usr/share/cdbs/1/class/autotools.mk
7
8 DEB_DH_MAKESHLIBS_ARGS=-V
9 DEB_DBG_PACKAGES="libxcb-atom1-dbg libxcb-aux0-dbg libxcb-event1-dbg libxcb-image0-dbg libxcb-keysyms1-dbg libxcb-property1-dbg libxcb-render-util0-dbg libxcb-reply1-dbg libxcb-icccm1-dbg"
10
11 ORIG_MAJOR=$(shell git describe upstream | cut -d- -f1)
12 ORIG_GIT=$(shell git describe upstream | cut -d- -f2)
13
14 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
15
16 post-patches:: configure-stamp
17 configure-stamp:
18         sh ./autogen.sh $(DEB_CONFIGURE_NORMAL_ARGS)
19         touch configure-stamp
20
21 cleanbuilddir::
22         rm -f configure-stamp
23
24 get-orig-source:
25         git archive upstream | gzip -9 > ../xcb-util_$(ORIG_MAJOR)+git$(ORIG_GIT).orig.tar.gz