gmpc: fix build without libSM
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 11 Mar 2009 15:43:43 +0000 (15:43 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 11 Mar 2009 15:43:43 +0000 (15:43 -0000)
package/gmpc/gmpc.mk

index 52cb3d6851b0ca273c35651071f98d9302858eaf..3bb168f9bbd97fdf7909f06916d3092d40fb9145 100644 (file)
@@ -10,8 +10,13 @@ GMPC_LIBTOOL_PATCH = NO
 GMPC_CONF_ENV = ac_cv_lib_curl_curl_global_init=yes
 GMPC_CONF_OPT = --disable-mmkeys
 
-
 GMPC_DEPENDENCIES = libglib2 libgtk2 libglade libcurl libmpd
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBSM),y)
+GMPC_DEPENENCIES += xlib_libSM
+GMPC_CONF_OPT += --enable-sm
+else
+GMPC_CONF_OPT += --disable-sm
+endif
 
 $(eval $(call AUTOTARGETS,package,gmpc))