Change-Id: I1c3706413d5c516fea0e3268bd2c91b721ba1a16
Bug-Tizen: PTREL-640
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
SET(MOVINAND_FORMAT scripts/movi_format.sh)
INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED
+
+SET( local_pkgs
ecore
ecore-file
- ecore-x
edbus
eina
vconf
sensor
notification
libsmack
- libsystemd-daemon)
+ libsystemd-daemon
+)
+
+IF(X11_SUPPORT)
+SET( local_pkgs ecore-x ${local_pkgs} )
+ENDIF(X11_SUPPORT)
+
+pkg_check_modules(pkgs REQUIRED ${local_pkgs} )
+
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+%bcond_with x
+
#sbs-git:slp/pkgs/s/system-server system-server 0.1.51 56e16bca39f96d6c8aed9ed3df2fea9b393801be
Name: system-server
Summary: System server
Version: 2.0.0
-Release: 1
+Release: 0
Group: System/Service
License: Apache-2.0
Source0: system-server-%{version}.tar.gz
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(syspopup-caller)
+%if %{with x}
BuildRequires: pkgconfig(x11)
+%endif
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(usbutils)
BuildRequires: pkgconfig(udev)
%prep
%setup -q
-%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+
+%cmake . \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%if %{with x}
+ -DX11_SUPPORT=On \
+%else
+ -DX11_SUPPORT=Off \
+%endif
+ #eol
%build
cp %{SOURCE1} .