From a4165c81a86ff3223170e5cb490b14d70267578b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 17 Jun 2014 20:36:50 +0200 Subject: [PATCH] Create build depends for JDK. --- lib/javase.sh | 5 ++++- lib/jdk.sh | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/javase.sh b/lib/javase.sh index 0254725..e6592cc 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -21,12 +21,15 @@ EOF } j2se_control() { + if test -n "$build_depends"; then + build_depends=", $build_depends" + fi cat << EOF Source: $j2se_package Section: non-free/devel Priority: optional Maintainer: $maintainer_name <$maintainer_email> -Build-Depends: debhelper (>= 9) +Build-Depends: debhelper (>= 9)${build_depends} Standards-Version: 3.9.5 EOF diff --git a/lib/jdk.sh b/lib/jdk.sh index 25d7d9c..39a4cee 100644 --- a/lib/jdk.sh +++ b/lib/jdk.sh @@ -1,5 +1,9 @@ j2sdk_control() { + build_depends="libasound2, libgl1-mesa-glx, libgtk2.0-0, libxslt1.1, libxtst6, libxxf86vm1" + if test "$j2se_release" = 8; then + build_depends="$build_depends, libavcodec53, libavformat53" + fi j2se_control java_browser_plugin="java-browser-plugin, " depends="\${shlibs:Depends}" -- 2.39.5