summaryrefslogtreecommitdiff
path: root/package/multimedia/libmad
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-10-03 22:34:16 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-10-03 22:35:42 +0200
commite008caa06c4cdc78a0b3cd61e6269ca72fdbdcb7 (patch)
tree247be432560836e2cffe46a6e774da6d171d59db /package/multimedia/libmad
parente6e0ab231cd97a8431609e8260a30b6996957fb5 (diff)
libmad: remove dedicated target-headers option
Instead, simply only copy headers/static lib if BR2_HAVE_DEVFILES is enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/libmad')
-rw-r--r--package/multimedia/libmad/Config.in6
-rw-r--r--package/multimedia/libmad/libmad.mk13
2 files changed, 4 insertions, 15 deletions
diff --git a/package/multimedia/libmad/Config.in b/package/multimedia/libmad/Config.in
index 867a11a1e..4d4f9301a 100644
--- a/package/multimedia/libmad/Config.in
+++ b/package/multimedia/libmad/Config.in
@@ -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.
diff --git a/package/multimedia/libmad/libmad.mk b/package/multimedia/libmad/libmad.mk
index 07b1e0a36..83be902a3 100644
--- a/package/multimedia/libmad/libmad.mk
+++ b/package/multimedia/libmad/libmad.mk
@@ -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