浏览代码

libavahi: Don't build libdns_sd if not selected

Signed-off-by: Ted Hess <thess@kitschensync.net>
Ted Hess 10 年前
父节点
当前提交
719da24cd9
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      libs/avahi/Makefile

+ 5
- 2
libs/avahi/Makefile 查看文件

217
 	--disable-gtk3 \
217
 	--disable-gtk3 \
218
 	--with-xml=expat \
218
 	--with-xml=expat \
219
 	--disable-dbm \
219
 	--disable-dbm \
220
-	--enable-compat-libdns_sd \
221
 	--enable-gdbm \
220
 	--enable-gdbm \
222
 	--enable-libdaemon \
221
 	--enable-libdaemon \
222
+	$(if $(CONFIG_PACKAGE_libavahi-compat-libdnssd),--enable-compat-libdns_sd) \
223
 	--disable-python \
223
 	--disable-python \
224
 	--disable-pygtk \
224
 	--disable-pygtk \
225
 	--disable-python-dbus \
225
 	--disable-python-dbus \
263
 	$(INSTALL_DIR) $(1)/usr/include
263
 	$(INSTALL_DIR) $(1)/usr/include
264
 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
264
 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
265
 	$(INSTALL_DIR) $(1)/usr/lib
265
 	$(INSTALL_DIR) $(1)/usr/lib
266
-	$(CP) $(PKG_INSTALL_DIR)/usr/lib/{libavahi-*,libdns_sd*} $(1)/usr/lib/
266
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-* $(1)/usr/lib/
267
+ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
268
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd* $(1)/usr/lib/
269
+endif
267
 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
270
 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
268
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
271
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
269
 endef
272
 endef