File: rules

package info (click to toggle)
openjfx 11.0.2+1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 259,996 kB
  • sloc: cpp: 1,553,792; java: 770,301; ansic: 577,227; xml: 78,166; perl: 19,857; objc: 17,740; python: 11,421; ruby: 10,137; asm: 7,588; sh: 3,470; makefile: 3,023; yacc: 405
file content (62 lines) | stat: -rwxr-xr-x 2,104 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
55
56
57
58
59
60
61
62
#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# FIXME: looks like s390x is recognized as a 32bit arch ...
# more heap on s390x needed
ifneq (,$(filter $(DEB_HOST_ARCH), s390x))
  SET_JAVA_OPTS = JAVA_OPTS=-Xmx2304m
endif

export OPENJFX_HOME = /usr/share/openjfx
export QT_SELECT    = qt5

%:
	dh $@ --buildsystem=gradle --no-parallel --with maven-repo-helper

override_dh_auto_configure-arch:
	cp debian/gradle.properties .

override_dh_auto_build-arch:
	# replace the non-free JavaScript minifier with a noop equivalent
	cp debian/jsmin-noop.py modules/javafx.web/src/main/native/Source/JavaScriptCore/Scripts/jsmin.py

	$(SET_JAVA_OPTS) dh_auto_build -- zips -x javadoc -x apps

override_dh_auto_build-indep: override_dh_auto_build-arch
	$(SET_JAVA_OPTS) dh_auto_build -- javadoc

override_dh_install-arch:
	dh_install -a

	# Install the SDK files
	dh_install -popenjfx build/sdk/lib/javafx.properties $(OPENJFX_HOME)/lib/

	for module in base controls fxml graphics media swing web; do \
	    dh_link -popenjfx /usr/share/java/javafx-$$module.jar $(OPENJFX_HOME)/lib/javafx.$$module.jar; \
	done

	# Install the native libraries
	ls -l build/sdk/lib/
	dh_install -plibopenjfx-jni build/sdk/lib/*.so usr/lib/$(DEB_HOST_MULTIARCH)/jni

override_dh_install-indep:
	dh_install -i

	dh_install -popenjfx-source build/sdk/lib/src.zip $(OPENJFX_HOME)/lib/

override_mh_install:
	mh_install

	# Install the empty classifier-less artifacts
	for module in base controls fxml graphics media swing web; do \
	    mh_installjar -plibopenjfx-java debian/poms/javafx-$$module.pom build/publications/javafx.$$module.jar; \
	done

POM_VERSION=11
get-orig-poms:
	wget https://repo1.maven.org/maven2/org/openjfx/javafx/$(POM_VERSION)/javafx-$(POM_VERSION).pom -O debian/poms/javafx.pom
	for module in base controls fxml graphics media swing web; do \
	    wget https://repo1.maven.org/maven2/org/openjfx/javafx-$$module/$(POM_VERSION)/javafx-$$module-$(POM_VERSION).pom -O debian/poms/javafx-$$module.pom; \
	done