libmad: remove dedicated target-headers option
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Oct 2009 20:34:16 +0000 (22:34 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Oct 2009 20:35:42 +0000 (22:35 +0200)
Instead, simply only copy headers/static lib if BR2_HAVE_DEVFILES
is enabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/multimedia/libmad/Config.in
package/multimedia/libmad/libmad.mk

diff --git a/CHANGES b/CHANGES
index 6e7f25914b53f5c1b11fdffec454079bb844eeb4..e0af6089c1efa743ca4086b6b7b75879ee541b46 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,7 @@
 
        Updated/fixed packages: autoconf, busybox, directfb, dnsmasq,
        festival, imagemagick, iptables, kernel-headers, kismet,
-       libevent, libglib2, liblockfile, libuuid, ltrace, mdadm,
+       libevent, libglib2, liblockfile, libmad, libuuid, ltrace, mdadm,
        ncftp, netkittelnet, openssl, python, quagga, radvd, samba,
        speech-tools, squashfs, syslinux, u-boot, valgrind, wipe,
        xdata_xcursor-themes
index 867a11a1e75f44bc89c0bbe6a219089b21a3311a..4d4f9301a6f2dbddc5ac8299b93397c55972a368 100644 (file)
@@ -6,9 +6,3 @@ config BR2_PACKAGE_LIBMAD
          without a floating-point unit.
 
          http://www.underbit.com/products/mad/
-
-config BR2_PACKAGE_LIBMAD_TARGET_HEADERS
-       bool "libmad headers in target"
-       depends on BR2_PACKAGE_LIBMAD
-       help
-         Put headers files in the target.
index 07b1e0a36f064932cd36bf40d30b5d28cab9f46d..83be902a337a13b724dc82f5f16a609f4323b6a0 100644 (file)
@@ -47,20 +47,18 @@ $(STAGING_DIR)/usr/lib/libmad.so.0: $(LIBMAD_DIR)/libmad.la
        $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libmad.la
 
 $(TARGET_DIR)/usr/lib/libmad.so.0: $(STAGING_DIR)/usr/lib/libmad.so.0
-       cp -dpf $(STAGING_DIR)/usr/lib/libmad.so.* $(TARGET_DIR)/usr/lib/
-       $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libmad.so.*
-
-$(TARGET_DIR)/usr/lib/libmad.a: $(STAGING_DIR)/usr/lib/libmad.so.0
+ifeq ($(BR2_HAVE_DEVFILES),y)
        mkdir -p $(TARGET_DIR)/usr/include
        cp -dpf $(STAGING_DIR)/usr/include/mad.h $(TARGET_DIR)/usr/include/
        cp -dpf $(STAGING_DIR)/usr/lib/libmad.la $(TARGET_DIR)/usr/lib/
        cp -dpf $(STAGING_DIR)/usr/lib/libmad.so $(TARGET_DIR)/usr/lib/
        cp -dpf $(STAGING_DIR)/usr/lib/libmad.a $(TARGET_DIR)/usr/lib/
+endif
+       cp -dpf $(STAGING_DIR)/usr/lib/libmad.so.* $(TARGET_DIR)/usr/lib/
+       $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libmad.so.*
 
 libmad: $(TARGET_DIR)/usr/lib/libmad.so.0
 
-libmad-headers: $(TARGET_DIR)/usr/lib/libmad.a
-
 libmad-source: $(DL_DIR)/$(LIBMAD_SOURCE)
 
 libmad-clean:
@@ -81,6 +79,3 @@ libmad-dirclean:
 ifeq ($(BR2_PACKAGE_LIBMAD),y)
 TARGETS+=libmad
 endif
-ifeq ($(BR2_PACKAGE_LIBMAD_TARGET_HEADERS),y)
-TARGETS+=libmad-headers
-endif