package/libvncserver: add optional systemd dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 22 Jun 2019 16:38:55 +0000 (18:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 22 Jun 2019 17:29:03 +0000 (19:29 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libvncserver/libvncserver.mk

index 3805b2faaaf6362ccc7299ff675981cdb22f0ede..b024c3161dace422fb224f4bc16e3a230a41a515 100644 (file)
@@ -60,6 +60,13 @@ else
 LIBVNCSERVER_CONF_OPTS += -DWITH_PNG=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+LIBVNCSERVER_CONF_OPTS += -DWITH_SYSTEMD=ON
+LIBVNCSERVER_DEPENDENCIES += systemd
+else
+LIBVNCSERVER_CONF_OPTS += -DWITH_SYSTEMD=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBVNCSERVER_CONF_OPTS += -DWITH_ZLIB=ON
 LIBVNCSERVER_DEPENDENCIES += zlib