File: rules

package info (click to toggle)
libxerces2-java 2.11.0-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 12,360 kB
  • ctags: 17,156
  • sloc: java: 126,331; xml: 13,483; sh: 39; makefile: 37
file content (54 lines) | stat: -rwxr-xr-x 1,706 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f
# debian/rules file for libxerces2-java (uses cdbs)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/javahelper.mk
include /usr/share/cdbs/1/class/ant.mk

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java
ANT_HOME             := /usr/share/ant
ANT_OPTS = -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 -Djavac.source=1.4 -Djavac.target=1.4

# hardening
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
export AOT_GCJFLAGS=$(CFLAGS)
export AOT_LDFLAGS=$(LDFLAGS)

include /usr/share/gcj/debian_defaults
ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
  with_gcj_native := yes
endif

# Ant targets to call
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILD_TARGET := jar sampjar javadocs 
#docs

install/$(PACKAGE)::
	mh_installpoms -p$(PACKAGE);
	mh_installjar -p$(PACKAGE) -l debian/pom.xml $(DEB_BUILDDIR)/build/xercesImpl.jar
	dh_install -p$(PACKAGE) $(DEB_BUILDDIR)/build/xercesSamples.jar /usr/share/java/

ifeq ($(with_gcj_native),yes)
install/libxerces2-java-gcj:: install/libxerces2-java
	dh_nativejava -plibxerces2-java-gcj
endif

clean::
	rm -rf build
	-rm -rf debian/tmp
	mh_clean

binary-post-install/libxerces2-java-doc::
	dh_install -plibxerces2-java-doc build/docs/javadocs/* \
			usr/share/doc/libxerces2-java-doc/api

get-orig-source:
	-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack

get-orig-pom:
	wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/xerces/xercesImpl/$(VERSION)/xercesImpl-$(VERSION).pom