2007-04-24 15:43:15 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libsndfile
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBSNDFILE_VERSION:=1.0.17
|
|
|
|
LIBSNDFILE_SOURCE:=libsndfile-$(LIBSNDFILE_VERSION).tar.gz
|
2007-04-24 15:43:15 +02:00
|
|
|
LIBSNDFILE_SITE:=http://www.mega-nerd.com/libsndfile/$(LIBUSB_SOURCE)
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBSNDFILE_DIR:=$(BUILD_DIR)/libsndfile-$(LIBSNDFILE_VERSION)
|
2007-06-23 11:50:29 +02:00
|
|
|
LIBSNDFILE_BINARY:=src/.libs/libsndfile.so
|
2007-04-24 15:43:15 +02:00
|
|
|
LIBSNDFILE_TARGET_BINARY:=usr/lib/libsndfile.so
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBSNDFILE_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBSNDFILE_SITE)/$(LIBSNDFILE_SOURCE)
|
|
|
|
|
2007-06-23 11:50:29 +02:00
|
|
|
$(LIBSNDFILE_DIR)/.unpacked: $(DL_DIR)/$(LIBSNDFILE_SOURCE)
|
2007-04-24 15:43:15 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(LIBSNDFILE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(LIBSNDFILE_DIR) package/libsndfile/ \*.patch
|
2007-06-23 11:50:29 +02:00
|
|
|
$(CONFIG_UPDATE) $(LIBSNDFILE_DIR)
|
|
|
|
touch $@
|
2007-04-24 15:43:15 +02:00
|
|
|
|
2007-06-23 11:50:29 +02:00
|
|
|
$(LIBSNDFILE_DIR)/.configured: $(LIBSNDFILE_DIR)/.unpacked
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(LIBSNDFILE_DIR); rm -f config.cache; \
|
2007-04-24 15:43:15 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2007-04-24 15:43:15 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-23 11:50:29 +02:00
|
|
|
touch $@
|
2007-04-24 15:43:15 +02:00
|
|
|
|
|
|
|
$(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY): $(LIBSNDFILE_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LIBSNDFILE_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY): $(LIBSNDFILE_DIR)/$(LIBSNDFILE_BINARY)
|
2007-06-23 11:50:29 +02:00
|
|
|
$(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) install
|
2007-09-19 22:13:08 +02:00
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) install
|
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
|
|
|
rm -Rf $(TARGET_DIR)/usr/share/man
|
|
|
|
rm -Rf $(STAGING_DIR)/usr/share/man
|
|
|
|
endif
|
2007-04-24 15:43:15 +02:00
|
|
|
|
|
|
|
libsndfile: uclibc $(TARGET_DIR)/$(LIBSNDFILE_TARGET_BINARY)
|
|
|
|
|
|
|
|
libsndfile-source: $(DL_DIR)/$(LIBSNDFILE_SOURCE)
|
|
|
|
|
|
|
|
libsndfile-clean:
|
2007-09-19 22:13:08 +02:00
|
|
|
$(MAKE) prefix=$(STAGING_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall
|
2007-04-24 15:43:15 +02:00
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBSNDFILE_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(LIBSNDFILE_DIR) clean
|
|
|
|
|
|
|
|
libsndfile-dirclean:
|
|
|
|
rm -rf $(LIBSNDFILE_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LIBSNDFILE)),y)
|
|
|
|
TARGETS+=libsndfile
|
|
|
|
endif
|