aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-12-08 13:00:55 -0600
committerTed Gould <ted@gould.cx>2010-12-08 13:00:55 -0600
commit3acbfb57c4800b7f8611d1ce5db391cad96f398b (patch)
treeaf6de92d556ec059754ea4f594259601d6b98a9c /debian/rules
parentc05b64af5fc28789f404629d64a1ade4d6c6da34 (diff)
parentb917f6f3aba462d98c6690d650ef8555e736c4f8 (diff)
downloadayatana-indicator-application-3acbfb57c4800b7f8611d1ce5db391cad96f398b.tar.gz
ayatana-indicator-application-3acbfb57c4800b7f8611d1ce5db391cad96f398b.tar.bz2
ayatana-indicator-application-3acbfb57c4800b7f8611d1ce5db391cad96f398b.zip
Merge from Ubuntu Desktop for dual builds
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules34
1 files changed, 24 insertions, 10 deletions
diff --git a/debian/rules b/debian/rules
index 6e31d41..cfb2f4b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,9 @@
#!/usr/bin/make -f
-DEB_PYTHON_SYSTEM=pycentral
+DEB_SRCDIR = .
+DEB_BUILDDIR = $(DEB_SRCDIR)/build
+
+DEB_PYTHON_SYSTEM=dh_python2
PY_VERSIONS = $(shell pyversions --requested debian/control)
export MONO_SHARED_DIR=$(CURDIR)
export CSC=/usr/bin/mono-csc
@@ -8,7 +11,6 @@ export CSC=/usr/bin/mono-csc
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools-vars.mk
include /usr/share/cdbs/1/rules/utils.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
DEB_CONFIGURE_EXTRA_FLAGS += --enable-gtk-doc
API_VERSION = 0.1
@@ -24,19 +26,25 @@ configure-stamp-%:
configure/python-appindicator:: $(addprefix configure-stamp-, $(PY_VERSIONS))
build-stamp-%:
- make -C build-$*/bindings/python
+ PYTHON=`which $*` \
+ $(MAKE) -C build-$*
touch $@
build/python-appindicator:: $(addprefix build-stamp-, $(PY_VERSIONS))
install-stamp-%:
- make -C build-$*/bindings/python install DESTDIR=$(CURDIR)/debian/tmp
+ PYTHON=`which $*` \
+ $(MAKE) -C build-$*/bindings/python install DESTDIR=$(CURDIR)/debian/tmp
+ dh_installdirs -ppython-appindicator -s
+ dh_install -ppython-appindicator -s
touch $@
install/python-appindicator:: $(addprefix install-stamp-, $(PY_VERSIONS))
-binary-install/python-appindicator::
- dh_pycentral
+binary-predeb/python-appindicator::
+ dh_python2 -ppython-appindicator
+ find debian/python-appindicator/usr/lib -name \*.la -exec rm {} \;
+ find debian/python-appindicator/usr/lib -name \*.a -exec rm {} \;
binary-install/libappindicator0.1-cil::
dh_clistrip
@@ -51,28 +59,35 @@ binary-predeb/libappindicator0.1-cil:: binary-fixup/libappindicator1
dh_clideps -plibappindicator0.1-cil
configure-stamp:
- $(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS)
+ cd $(DEB_BUILDDIR) && \
+ $(DEB_CONFIGURE_SCRIPT) $(DEB_CONFIGURE_NORMAL_ARGS) $(DEB_CONFIGURE_EXTRA_FLAGS)
touch $@
configure/indicator-application:: configure-stamp
build-stamp:
- make
+ $(MAKE) -C $(DEB_BUILDDIR)
touch $@
build/indicator-application:: build-stamp
install-stamp:
- make install DESTDIR=$(CURDIR)/debian/tmp
+ $(MAKE) -C $(DEB_BUILDDIR) install DESTDIR=$(CURDIR)/debian/tmp
touch $@
install/indicator-application:: install-stamp
+binary-predeb/libappindicator1:: install-stamp
+ dh_fixperms
+ dh_strip
+
binary-post-install/indicator-application::
find debian/indicator-application/usr/lib -name \*.la -exec rm {} \;
find debian/indicator-application/usr/lib -name \*.a -exec rm {} \;
common-binary-predeb-arch:: list-missing
+ dh_fixperms
+ dh_strip
clean::
-rm -rf $(addprefix build-, $(PY_VERSIONS))
@@ -80,4 +95,3 @@ clean::
-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))
rm -rf $(MONO_SHARED_DIR)/.wapi
-