source: trunk/debathena/debathena/libnss-nonlocal/debian/rules @ 25735

Revision 25735, 3.5 KB checked in by andersk, 12 years ago (diff)
In libnss-nonlocal: * Pre-Depend adduser. * Don’t Build-Depend debhelper 9. Full history: git://andersk.mit.edu/nss_nonlocal.git debian/2.0-0debathena2
  • Property svn:executable set to *
Line 
1#!/usr/bin/make -f
2
3DEB_AUTO_UPDATE_AUTOCONF = 2.61
4DEB_AUTO_UPDATE_AUTOHEADER = 2.61
5DEB_AUTO_UPDATE_AUTOMAKE = 1.10
6DEB_AUTO_UPDATE_ACLOCAL = 1.10
7DEB_AUTO_UPDATE_LIBTOOL = pre
8
9# dh_buildinfo fails at multiarch: http://bugs.debian.org/620104
10CDBS_BUILD_DEPENDS_rules_debhelper_buildinfo =
11
12include /usr/share/cdbs/1/rules/debhelper.mk
13include /usr/share/cdbs/1/class/autotools.mk
14
15DEB_DESTDIR = $(CURDIR)/debian/tmp/
16DEB_DH_INSTALL_SOURCEDIR = $(DEB_DESTDIR)
17DEB_CONFIGURE_PREFIX = /
18
19ifneq ($(DEB_HOST_MULTIARCH),)
20    CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS)
21    export DH_COMPAT = 9
22    DEB_CONFIGURE_EXTRA_FLAGS += $(MULTIARCH_CONFIGURE_FLAGS)
23    MULTIARCH_CONFIGURE_FLAGS = --libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)'
24    DEB_DH_GENCONTROL_ARGS_libnss-nonlocal += -- -DMulti-Arch=same
25endif
26
27IS_UBUNTU := $(if $(filter Ubuntu,$(shell lsb_release -is)),y)
28LIBC6_VERSION := $(shell dpkg-query --showformat='$${Version}' --show libc6)
29libc6_ge = $(shell dpkg --compare-versions '$(LIBC6_VERSION)' ge '$(1)' && echo y)
30
31debian/stamp-autotools-files: DEB_AUTO_UPDATE_AUTOMAKE += --foreign --add-missing
32
33debian/stamp-autotools-files: aclocal.m4
34aclocal.m4:
35        touch $@
36
37DEB_BUILDDIR = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),debian/build)
38
39REAL_DEB_HOST_GNU_TYPE := $(DEB_HOST_GNU_TYPE)
40
41DEB_BUILDDIR_lib32nss-nonlocal = debian/build_32
42cleanbuilddir/lib32nss-nonlocal:: clean/lib32nss-nonlocal
43configure/lib32nss-nonlocal:: MULTIARCH_CONFIGURE_FLAGS =
44configure/lib32nss-nonlocal:: cdbs_crossbuild =
45# i386_configure_target in eglibc/debian/sysdeps/amd64.mk
46ifeq ($(or $(IS_UBUNTU),$(call libc6_ge,2.8+20080809)),y)
47configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i686-linux
48else
49configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i486-linux
50endif
51# i386_CC in eglibc/debian/sysdeps/amd64.mk
52configure/lib32nss-nonlocal:: CC += -m32
53# i386_slibdir in eglibc/debian/sysdeps/amd64.mk
54ifeq ($(or $(IS_UBUNTU),$(call libc6_ge,2.9-14~)),y)
55configure/lib32nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib32"
56binary-install/lib32nss-nonlocal:: DEB_DH_INSTALL_ARGS = 'lib32/*'
57else
58configure/lib32nss-nonlocal:: DEB_CONFIGURE_PREFIX = /emul/ia32-linux
59binary-install/lib32nss-nonlocal:: DEB_DH_INSTALL_ARGS = 'emul/ia32-linux/lib/*'
60endif
61
62DEB_BUILDDIR_lib64nss-nonlocal = debian/build_64
63cleanbuilddir/lib64nss-nonlocal:: clean/lib64nss-nonlocal
64configure/lib64nss-nonlocal:: MULTIARCH_CONFIGURE_FLAGS =
65configure/lib64nss-nonlocal:: cdbs_crossbuild =
66# amd64_configure_target in eglibc/debian/sysdeps/i386.mk
67configure/lib64nss-nonlocal:: DEB_BUILD_GNU_TYPE = x86_64-linux
68# amd64_CC in eglibc/debian/sysdeps/i386.mk
69configure/lib64nss-nonlocal:: CC += -m64 -D__x86_64__
70# amd64_slibdir in eglibc/debian/sysdeps/i386.mk
71configure/lib64nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib64"
72
73# Fix for CDBS ≥ 0.4.59ubuntu4, < 0.4.83ubuntu1 (karmic and lucid).
74configure/lib32nss-nonlocal configure/lib64nss-nonlocal:: DEB_CONFIGURE_SCRIPT_ENV += CC="$(CC)"
75
76configure/lib32nss-nonlocal configure/lib64nss-nonlocal::
77        $(DEB_CONFIGURE_INVOKE) $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS)
78
79build/lib32nss-nonlocal build/lib64nss-nonlocal::
80        +$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET)
81
82install/lib32nss-nonlocal install/lib64nss-nonlocal::
83        +$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET)
84
85clean/lib32nss-nonlocal clean/lib64nss-nonlocal::
86        +-$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET)
87
88clean::
89        rm -f aclocal.m4 config.guess config.sub install-sh ltmain.sh \
90            configure config.h.in missing depcomp Makefile.in
Note: See TracBrowser for help on using the repository browser.