cat << EOF
#!/usr/bin/make -f
+# Exclude libraries that pull in ALSA or OpenGL which are not needed in normal operation
+EXCLUDE_LIBS = \\
+ --exclude=avplugin \\
+ --exclude=fxavcodecplugin \\
+ --exclude=libjsoundalsa.so \\
+EOF
+ for lib in $exlude_libs; do
+ printf '\t--exclude=%s \\\n' "$lib"
+ done
+ cat << EOF
+ \$(NULL)
+
%:
dh \$@
dh_compress \$(shell find $j2se_name/man/ -type f ! -name '*.gz' -printf '${jvm_base##/}/%p\n')
override_dh_shlibdeps:
- dh_shlibdeps --exclude=fxavcodecplugin --exclude=avplugin -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//')
+ dh_shlibdeps \$(EXCLUDE_LIBS) -l\$(shell find $j2se_name -type f -name '*.so*' -printf '${jvm_base##/}/%h\n' | sort -u | tr '\n' ':' | sed 's/:\$\$//')
override_dh_strip_nondeterminism:
# Disable dh_strip_nondeterminism to speed up the build
oracle_jre_bin_jre="policytool"
oracle_jre_lib_hl="jexec"
j2se_package="$j2se_vendor-java$j2se_release-server-jre"
+ exlude_libs="appletviewer libawt_xawt.so libsplashscreen.so policytool"
j2se_run
fi
fi