2
# MAde with the aid of dh_make, by Craig Small
2
# Made with the aid of dh_make, by Craig Small
3
3
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4
4
# Some lines taken from debmake, by Cristoph Lameter.
6
6
# Uncomment this to turn on verbose mode.
11
mk_cslist = $(subst $(S),$(,)$(S),$(foreach v,$(1),$(v)-$(2)))
12
vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1)))
13
jrel = $(subst java-common-0.,,$(notdir $(CURDIR)))
15
DPKG_VARS := $(shell dpkg-architecture)
16
DEB_HOST_ARCH ?= $(call vafilt,$(DPKG_VARS),DEB_HOST_ARCH)
18
p_jre = java-gcj-compat
19
p_jhl = java-gcj-compat-headless
20
p_jdk = java-gcj-compat-dev
22
v_jre = $(S)(>= 1.0.77-4)
24
provides = java java2 java5
25
dversion = 1.5-$(jrel)
28
#ifneq (,$(filter $(DEB_HOST_ARCH), alpha hppa))
34
jre_provides = $(call mk_cslist,$(provides),runtime)
35
jhl_provides = $(call mk_cslist,$(provides),runtime-headless)
36
jdk_provides = $(call mk_cslist,$(provides),sdk)
41
65
touch install-stamp
72
dh_installchangelogs -s
73
dh_link -pdefault-jre-headless \
74
usr/lib/jvm/$(jvmdir) usr/lib/jvm/default-java
83
'-Vjdk:builddep=$(jdk_builddep)' \
84
'-Vjre:arch=$(DEB_HOST_ARCH)' \
85
'-Vjre:version=$(v_jre)' \
86
'-Vjdk:version=$(v_jdk)' \
87
'-Vjre:provides=$(jre_provides)' \
88
'-Vjhl:provides=$(jhl_provides)' \
89
'-Vjdk:provides=$(jdk_provides)' \
45
95
# Build architecture-independent files here.
46
# Pass -i to all debhelper commands in this target to reduce clutter.
47
96
binary-indep: build install