File: rules

package info (click to toggle)
libxmpcore-java 5.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,216 kB
  • ctags: 2,297
  • sloc: java: 10,218; xml: 122; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 839 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
#!/usr/bin/make -f

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

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(DEB_UPSTREAM_VERSION)
JAVA_HOME            := /usr/lib/jvm/default-java

DEB_ANT_BUILDFILE    = XMPCore/build.xml
DEB_ANT_BUILD_TARGET = build
DEB_ANT_ARGS         = '-DBuildDate=$(shell dpkg-parsechangelog --show-field Date)'


binary-post-install/$(PACKAGE)::
	mh_installpoms -p$(PACKAGE)
	mh_installjar -p$(PACKAGE) -l debian/pom.xml XMPCore/target/debug/xmpcore.jar

clean::
	mh_clean
	rm -Rf XMPCore/target XMPCore/intermediate

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

get-orig-pom:
	wget -O debian/pom.xml http://repo1.maven.org/maven2/com/adobe/xmp/xmpcore/$(VERSION)/xmpcore-$(VERSION).pom