File: rules

package info (click to toggle)
gluegen2 2.3.2-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,784 kB
  • ctags: 9,364
  • sloc: java: 46,101; xml: 2,968; ansic: 2,672; cpp: 1,694; sh: 1,241; pascal: 591; asm: 162; makefile: 82
file content (70 lines) | stat: -rwxr-xr-x 3,432 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
63
64
65
66
67
68
69
70
#!/usr/bin/make -f

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

JAVA_HOME            := /usr/lib/jvm/default-java/
DEB_JARS             := ant-launcher antlrall ant-antlr ant-contrib ant-contrib-cpptasks ant-junit jsr305
DEB_ANT_CLEAN_TARGET := clean
DEB_BUILDDIR         := make
DEB_ANT_BUILD_TARGET := all
DEB_ANT_ARGS += -Dtarget.sourcelevel=1.6 -Dtarget.targetlevel=1.6 -Dtarget.rt.jar=1.6

ifeq ($(DEB_HOST_ARCH),armhf)
DEB_ANT_ARGS         += -DisAbiEabiGnuArmhf=true
endif

install/libgluegen2-rt-java::
	mh_install -plibgluegen2-rt-java

install/libgluegen2-build-java::
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/make/
	cp -R make/* debian/libgluegen2-build-java/usr/share/gluegen2/make/
	cp -R build/artifact.properties debian/libgluegen2-build-java/usr/share/gluegen2/
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/jnlp-files/
	cp -R jnlp-files/* debian/libgluegen2-build-java/usr/share/gluegen2/jnlp-files/
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/src/java/
	cp -R src/java/* debian/libgluegen2-build-java/usr/share/gluegen2/src/java/
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/src/native/
	cp -R src/junit/* debian/libgluegen2-build-java/usr/share/gluegen2/src/junit/
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/src/junit/
	cp -Rf src/native/* debian/libgluegen2-build-java/usr/share/gluegen2/src/native/
	mkdir -p $(CURDIR)/debian/libgluegen2-build-java/usr/share/gluegen2/test/junit/
	cp -Rf test/junit/* debian/libgluegen2-build-java/usr/share/gluegen2/test/junit
	install -m 644 -D build/gluegen.jar debian/libgluegen2-build-java/usr/share/java/gluegen2-$(DEB_UPSTREAM_VERSION).jar
	ln -s gluegen2-$(DEB_UPSTREAM_VERSION).jar debian/libgluegen2-build-java/usr/share/java/gluegen2.jar
	find debian/libgluegen2-build-java/usr/share/gluegen2/ -type f -exec chmod a-x {} \;
#extra license
	chmod +x debian/libgluegen2-build-java/usr/share/gluegen2/make/scripts/*.sh
	rm debian/libgluegen2-build-java/usr/share/gluegen2/src/java/com/jogamp/gluegen/cgram/license.txt

install/libgluegen2-jni::
	install -m 644 -D build/obj/libgluegen2-rt.so debian/libgluegen2-jni/usr/lib/jni/libgluegen2-rt.so

install/libgluegen2-doc::
	$(DEB_ANT_INVOKE) javadoc
	mkdir -p debian/libgluegen2-doc/usr/share/doc/libgluegen2-java/
	cp -Rf build/javadoc/gluegen/javadoc/* debian/libgluegen2-doc/usr/share/doc/libgluegen2-java/

# Run the test suite
common-post-build-arch::
	ANT_PATH=/usr/share/ant make/scripts/runtest.sh $(CURDIR)/build

DISABLED_TESTS := junit/util/VersionSemanticsUtil common/util/TestVersionSemantics
post-patches::
	cd src/junit/com/jogamp && \
	  $(foreach test,$(DISABLED_TESTS),if [ -f $(test).java ]; then mv $(test).java $(test).java.disabled; fi &&) true

clean::
	mh_clean
	$(RM) -r gluegen/build build-temp
	$(RM) make/GnuCTreeParserTokenTypes.txt make/STDCTokenTypes.txt
	cd src/junit/com/jogamp && \
	  $(foreach test,$(DISABLED_TESTS),if [ -f $(test).java.disabled ]; then mv $(test).java.disabled $(test).java; fi &&) true
	$(RM) test/TestJarsInJar/TestJarsInJar.jar runtest.log

get-orig-pom:
	wget https://repo1.maven.org/maven2/org/jogamp/gluegen/gluegen-rt/$(DEB_UPSTREAM_VERSION)/gluegen-rt-$(DEB_UPSTREAM_VERSION).pom -O debian/pom-gluegen-rt.xml

get-orig-source::
	uscan --download-current-version --no-symlink --force-download