summaryrefslogtreecommitdiff
path: root/package/libmad/libmad.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libmad/libmad.mk')
-rw-r--r--package/libmad/libmad.mk20
1 files changed, 11 insertions, 9 deletions
diff --git a/package/libmad/libmad.mk b/package/libmad/libmad.mk
index 0269137b4..37415ebac 100644
--- a/package/libmad/libmad.mk
+++ b/package/libmad/libmad.mk
@@ -16,6 +16,7 @@ $(DL_DIR)/$(LIBMAD_SOURCE):
$(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
$(LIBMAD_CAT) $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(CONFIG_UPDATE) $(LIBMAD_DIR)
+ toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/ libmad-$(LIBMAD_VERSION)\*.patch\*
touch $@
$(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
@@ -28,29 +29,30 @@ $(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--sysconfdir=/etc \
+ --disable-debugging \
+ --enable-speed \
$(DISABLE_NLS) \
);
touch $@
$(LIBMAD_DIR)/libmad.la: $(LIBMAD_DIR)/.configured
rm -f $@
- $(MAKE) CC=$(TARGET_CC) -C $(LIBMAD_DIR)
- @touch -c $@
+ $(MAKE) -C $(LIBMAD_DIR)
-$(STAGING_DIR)/usr/lib/libmad.so: $(LIBMAD_DIR)/libmad.la
+$(STAGING_DIR)/usr/lib/libmad.0: $(LIBMAD_DIR)/libmad.la
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBMAD_DIR) install
-$(TARGET_DIR)/usr/lib/libmad.so: $(STAGING_DIR)/usr/lib/libmad.so
- cp -dpf $(STAGING_DIR)/usr/lib/libmad.so* $(TARGET_DIR)/usr/lib/
- $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libmad.so*
- @touch -c $@
+$(TARGET_DIR)/usr/lib/libmad.0: $(STAGING_DIR)/usr/lib/libmad.0
+ cp -dpf $(STAGING_DIR)/usr/lib/libmad $(TARGET_DIR)/usr/lib/
+ cp -dpf $(STAGING_DIR)/usr/lib/libmad.0* $(TARGET_DIR)/usr/lib/
+ $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libmad*
-$(TARGET_DIR)/usr/lib/libmad.a: $(STAGING_DIR)/usr/lib/libmad.so
+$(TARGET_DIR)/usr/lib/libmad.a: $(STAGING_DIR)/usr/lib/libmad.0
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.*a $(TARGET_DIR)/usr/lib/
-libmad: uclibc $(TARGET_DIR)/usr/lib/libmad.so
+libmad: uclibc $(TARGET_DIR)/usr/lib/libmad.0
libmad-headers: $(TARGET_DIR)/usr/lib/libmad.a