소스 검색

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,9 +217,9 @@ CONFIGURE_ARGS+= \
217 217
 	--disable-gtk3 \
218 218
 	--with-xml=expat \
219 219
 	--disable-dbm \
220
-	--enable-compat-libdns_sd \
221 220
 	--enable-gdbm \
222 221
 	--enable-libdaemon \
222
+	$(if $(CONFIG_PACKAGE_libavahi-compat-libdnssd),--enable-compat-libdns_sd) \
223 223
 	--disable-python \
224 224
 	--disable-pygtk \
225 225
 	--disable-python-dbus \
@@ -263,7 +263,10 @@ define Build/InstallDev
263 263
 	$(INSTALL_DIR) $(1)/usr/include
264 264
 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
265 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 270
 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
268 271
 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
269 272
 endef