X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fjavase.sh;fp=lib%2Fjavase.sh;h=ed0745c02bf8ef8228ce924f2ffce8ad7abb2d33;hp=6309e9f29d22480071a5f79404d46153326b36bc;hb=267e00d6cd47b41b19335be01a58e877cb54c585;hpb=38d508d247e1caa3ea45cd8bac3e6114da979d91 diff --git a/lib/javase.sh b/lib/javase.sh index 6309e9f..ed0745c 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -70,6 +70,18 @@ j2se_rules() { 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 \$@ @@ -77,7 +89,7 @@ override_dh_compress: 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