Changeset d20ea9f


Ignore:
Timestamp:
2010-08-17T10:39:21Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5b94e9e
Parents:
762d96f
Message:

Debian change: set BITLBEE_LIBPURPLE=0 to only build the native variant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r762d96f rd20ea9f  
    88#
    99
     10# Include the bitlbee-libpurple variant by default
     11BITLBEE_LIBPURPLE ?= 1
    1012BITLBEE_CONFIGURE_FLAGS ?=
    1113DEBUG ?= 0
     
    2426        $(MAKE) -C debian/build-native
    2527
     28ifeq ($(BITLBEE_LIBPURPLE),1)
    2629        mkdir -p debian/build-libpurple
    2730        ROOT=$$PWD; cd debian/build-libpurple; $(BITLBEE_CONFIGURE_VERSION) $$ROOT/configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --purple=1 $(BITLBEE_CONFIGURE_FLAGS)
    2831        $(MAKE) -C debian/build-libpurple
     32endif
    2933
    3034        $(MAKE) -C doc
     
    4953
    5054        $(MAKE) -C debian/build-native install install-etc DESTDIR=`pwd`/debian/bitlbee
     55        $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
     56        patch debian/bitlbee/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     57
     58ifeq ($(BITLBEE_LIBPURPLE),1)
    5159        $(MAKE) -C debian/build-libpurple install install-etc DESTDIR=`pwd`/debian/bitlbee-libpurple
    52         $(MAKE) -C debian/build-native install-dev DESTDIR=`pwd`/debian/bitlbee-dev
    53 
    54         patch debian/bitlbee/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
    5560        patch debian/bitlbee-libpurple/etc/bitlbee/bitlbee.conf debian/patches/bitlbee.conf.diff
     61endif
    5662
    5763        mkdir -p debian/bitlbee-common/usr
     
    6874        # TODO: Restore --link-doc up here and remove the hack below once
    6975        # 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
     76        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
    7177        dh_installdebconf
    7278        dh_installinit
    73 ifeq ($(DH_OPTIONS),-a)
     79ifeq ($(BITLBEE_LIBPURPLE)$(DH_OPTIONS),1-a)
    7480        cp -a debian/bitlbee/etc debian/bitlbee-libpurple
    7581endif
     
    8086        dh_fixperms
    8187        dh_installdeb
    82 ifeq ($(DH_OPTIONS),-a)
     88ifeq ($(BITLBEE_LIBPURPLE)$(DH_OPTIONS),1-a)
    8389        cp -a debian/bitlbee/DEBIAN/post* debian/bitlbee/DEBIAN/pre* debian/bitlbee-libpurple/DEBIAN
    8490endif
     
    9096endif
    9197        dh_md5sums
     98ifeq ($(BITLBEE_LIBPURPLE),1)
    9299        dh_builddeb
     100else
     101        dh_builddeb -Nbitlbee-libpurple
     102endif
    93103
    94104binary-indep: build install
Note: See TracChangeset for help on using the changeset viewer.