2007-05-10 11:18:35 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libid3tag
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2007-07-28 19:30:05 +02:00
|
|
|
LIBID3TAG_VERSION:=0.15.1b
|
|
|
|
LIBID3TAG_SOURCE:=libid3tag-$(LIBID3TAG_VERSION).tar.gz
|
2007-09-20 09:19:52 +02:00
|
|
|
LIBID3TAG_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad
|
2007-07-28 19:30:05 +02:00
|
|
|
LIBID3TAG_DIR:=$(BUILD_DIR)/libid3tag-$(LIBID3TAG_VERSION)
|
2007-05-10 11:18:35 +02:00
|
|
|
LIBID3TAG_CAT:=$(ZCAT)
|
2007-07-28 19:30:05 +02:00
|
|
|
LIBID3TAG_BIN:=libid3tag.so.0.3.0
|
|
|
|
LIBID3TAG_TARGET_BIN:=usr/lib/$(LIBID3TAG_BIN)
|
2007-05-10 11:18:35 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBID3TAG_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBID3TAG_SITE)/$(LIBID3TAG_SOURCE)
|
|
|
|
|
|
|
|
$(LIBID3TAG_DIR)/.unpacked: $(DL_DIR)/$(LIBID3TAG_SOURCE)
|
|
|
|
$(LIBID3TAG_CAT) $(DL_DIR)/$(LIBID3TAG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-07-28 19:30:05 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBID3TAG_DIR) package/libid3tag/ libid3tag-$(LIBID3TAG_VERSION)\*.patch\*
|
|
|
|
$(CONFIG_UPDATE) $(LIBID3TAG_DIR)
|
|
|
|
touch $@
|
2007-05-10 11:18:35 +02:00
|
|
|
|
|
|
|
$(LIBID3TAG_DIR)/.configured: $(LIBID3TAG_DIR)/.unpacked
|
|
|
|
(cd $(LIBID3TAG_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-05-10 11:18:35 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-07-28 19:30:05 +02:00
|
|
|
touch $@
|
2007-05-10 11:18:35 +02:00
|
|
|
|
2007-09-20 09:19:52 +02:00
|
|
|
$(LIBID3TAG_DIR)/.libs/$(LIBID3TAG_BIN): $(LIBID3TAG_DIR)/.configured
|
2007-07-29 01:17:27 +02:00
|
|
|
$(MAKE) -C $(LIBID3TAG_DIR)
|
2007-05-10 11:18:35 +02:00
|
|
|
|
2007-09-20 09:19:52 +02:00
|
|
|
$(STAGING_DIR)/$(LIBID3TAG_TARGET_BIN): $(LIBID3TAG_DIR)/.libs/$(LIBID3TAG_BIN)
|
2007-05-10 11:18:35 +02:00
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBID3TAG_DIR) install
|
2007-07-28 19:30:05 +02:00
|
|
|
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libid3tag.la
|
2007-05-10 11:18:35 +02:00
|
|
|
|
2007-07-28 19:30:05 +02:00
|
|
|
$(TARGET_DIR)/$(LIBID3TAG_TARGET_BIN): $(STAGING_DIR)/$(LIBID3TAG_TARGET_BIN)
|
2007-08-22 14:35:41 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libid3tag.so* $(TARGET_DIR)/usr/lib/
|
2007-08-21 03:53:57 +02:00
|
|
|
-$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libid3tag.so*
|
2007-05-10 11:18:35 +02:00
|
|
|
|
2007-09-20 09:19:52 +02:00
|
|
|
libid3tag: uclibc zlib libmad $(TARGET_DIR)/$(LIBID3TAG_TARGET_BIN)
|
2007-05-10 11:18:35 +02:00
|
|
|
|
|
|
|
libid3tag-source: $(DL_DIR)/$(LIBID3TAG_SOURCE)
|
|
|
|
|
|
|
|
libid3tag-clean:
|
2007-09-20 09:19:52 +02:00
|
|
|
-$(MAKE) -C $(LIBID3TAG_DIR) clean
|
2007-07-28 19:30:05 +02:00
|
|
|
rm -f $(STAGING_DIR)/$(LIBID3TAG_TARGET_BIN)
|
2007-09-20 09:19:52 +02:00
|
|
|
rm -f $(TARGET_DIR)/$(LIBID3TAG_TARGET_BIN) \
|
|
|
|
$(TARGET_DIR)/usr/lib/libid3tag*
|
2007-05-10 11:18:35 +02:00
|
|
|
|
|
|
|
libid3tag-dirclean:
|
|
|
|
rm -rf $(LIBID3TAG_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBID3TAG)),y)
|
|
|
|
TARGETS+=libid3tag
|
|
|
|
endif
|