#!/usr/bin/perl
-# Copyright (c) 2020 Samsung Electronics Co., Ltd.
+# Copyright (c) 2021 Samsung Electronics Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
"pkg-config",
"libtool",
"ccache",
- "libelementary-dev",
"libexif-dev",
"libgles2-mesa-dev",
"libdrm-dev",
"libwebp-dev",
);
+my $ubuntu_version = (split(/\s+/, `lsb_release -d`))[2];
+if (${ubuntu_version} > 20)
+{
+ # Add unique packages for 20.04 and above
+ push @system_packages, "libefl-all-dev";
+}
+else
+{
+ # Add unique packages for Ubuntu releases before 20.04
+ push @system_packages, "libelementary-dev";
+}
+
# Some packages like require building from source
# v8 is currently disabled until we can get it working without a http proxy being setup
my @source_pkgs = (