blob: 9be87819cdb791943e97cc8fc9b7502a8685e5c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/usr/bin/make -f
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
unpack: unpack-stamp
unpack-stamp:
dh_testdir
dh_illumos_gate \
--exclude=usr/src/cmd \
--exclude=usr/src/man \
--exclude=usr/src/uts \
--exclude=usr/src/head
# i386_XARCH is set to -m32 by dh_illumos_gate, but
# we want native arch (64-bit):
echo "export i386_XARCH=''" >> illumos-gate/env.sh
# libncurses.so is actually linker script
# and sunld does not understand it, but we do not need sunld here ;-)
sed -i /LD_ALTEXEC/d illumos-gate/env.sh
touch $@
patch: unpack
dh_testdir
[ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
unpatch:
dh_testdir
[ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a || test $$? = 2
build build-arch build-indep: build-stamp
build-stamp: patch
dh_illumos_make usr/src/tools -t install
touch $@
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_install
touch $@
clean: unpatch
dh_testdir
dh_testroot
dh_clean
rm -rf illumos-gate
|