Changeset 4022b68 for debian/rules


Ignore:
Timestamp:
2010-08-21T22:42:01Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fd424c8
Parents:
327af51 (diff), c00dd71 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r327af51 r4022b68  
    88#
    99
     10# Include the bitlbee-libpurple variant by default
     11BITLBEE_LIBPURPLE ?= 1
    1012BITLBEE_CONFIGURE_FLAGS ?=
    1113DEBUG ?= 0
     
    1416# Want to use the full package version number instead of just the release.
    1517BITLBEE_CONFIGURE_VERSION ?= BITLBEE_VERSION=\"$(shell dpkg-parsechangelog | grep ^Version: | awk '{print $$2}')\"
     18endif
     19
     20ifneq ($(BITLBEE_LIBPURPLE),1)
     21DH_OPTIONS += -Nbitlbee-libpurple
    1622endif
    1723
     
    2430        $(MAKE) -C debian/build-native
    2531
     32ifeq ($(BITLBEE_LIBPURPLE),1)
    2633        mkdir -p debian/build-libpurple
    2734        ROOT=$$PWD; cd debian/build-libpurple; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --purple=1 $(BITLBEE_CONFIGURE_FLAGS)
    2835        $(MAKE) -C debian/build-libpurple
     36endif
    2937
    3038        $(MAKE) -C doc
     
    3745        rm -f build-stamp
    3846
    39         rm -rf build-arch-stamp debian/build-*
     47        rm -rf build-arch-stamp debian/build-* debian/bitlbee-libpurple.prerm
    4048        $(MAKE) distclean
    4149
     
    4856        dh_installdirs
    4957
    50         $(MAKE) -C debian/build-native install install-etc DESTDIR=`pwd`/debian/bitlbee
    51         $(MAKE) -C debian/build-libpurple install install-etc DESTDIR=`pwd`/debian/bitlbee-libpurple
     58        $(MAKE) -C debian/build-native install DESTDIR=`pwd`/debian/bitlbee
     59        $(MAKE) -C debian/build-native install-etc DESTDIR=`pwd`/debian/bitlbee-common
    5260        $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
     61        patch debian/bitlbee-common/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
    5362
    54         patch debian/bitlbee/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
    55         patch debian/bitlbee-libpurple/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     63ifeq ($(BITLBEE_LIBPURPLE),1)
     64        $(MAKE) -C debian/build-libpurple install DESTDIR=`pwd`/debian/bitlbee-libpurple
     65        ln -sf debian/bitlbee.prerm debian/bitlbee-libpurple.prerm
     66endif
    5667
    5768        mkdir -p debian/bitlbee-common/usr
     
    6879        # TODO: Restore --link-doc up here and remove the hack below once
    6980        # Hardy and Lenny are deprecated.
    70         for p in bitlbee bitlbee-libpurple bitlbee-dev; do rm -rf debian/$$p/usr/share/doc/$$p; ln -s bitlbee-common debian/$$p/usr/share/doc/$$p; done
     81        for p in bitlbee bitlbee-libpurple bitlbee-dev; do rm -r debian/$$p/usr/share/doc/$$p && ln -s bitlbee-common debian/$$p/usr/share/doc/$$p; done
    7182        dh_installdebconf
    72         dh_installinit
    73 ifeq ($(DH_OPTIONS),-a)
    74         cp -a debian/bitlbee/etc debian/bitlbee-libpurple
    75 endif
     83        dh_installinit --init-script=bitlbee
    7684        dh_installman
    7785        dh_strip
     
    8088        dh_fixperms
    8189        dh_installdeb
    82 ifeq ($(DH_OPTIONS),-a)
    83         cp -a debian/bitlbee/DEBIAN/post* debian/bitlbee/DEBIAN/pre* debian/bitlbee-libpurple/DEBIAN
    84 endif
    8590        dh_shlibdeps
    8691ifdef BITLBEE_VERSION
     
    9398
    9499binary-indep: build install
    95         $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
     100        DH_OPTIONS=-i $(MAKE) -f debian/rules binary-common
    96101
    97102binary-arch: build install
    98         $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
     103        DH_OPTIONS=-a $(MAKE) -f debian/rules binary-common
    99104
    100105binary-%: build install
    101         make -f debian/rules binary-common DH_OPTIONS=-p$*
     106        DH_OPTIONS=-p$* $(MAKE) -f debian/rules binary-common
    102107
    103108binary: binary-indep binary-arch
Note: See TracChangeset for help on using the changeset viewer.