Remove pcmcia from packages
[gumsense-br.git] / package / speex / speex.mk
blob5d53d683149459b3c11943059c08d502e2fb1263
1 #############################################################
3 # speex
5 #############################################################
7 SPEEX_NAME=speex
8 SPEEX_VERSION=1.0.5
10 SPEEXextraCFLAGS=--no-builtin-exp --no-builtin-cos --no-builtin-sin --no-builtin-log
12 # Don't alter below this line unless you (think) you know
13 # what you are doing! Danger, Danger!
15 SPEEX_SITE=http://downloads.us.xiph.org/releases/speex
16 SPEEX_SOURCE=$(SPEEX_NAME)-$(SPEEX_VERSION).tar.gz
17 SPEEX_DIR=$(BUILD_DIR)/${shell basename $(SPEEX_SOURCE) .tar.gz}
19 $(DL_DIR)/$(SPEEX_SOURCE):
20 $(WGET) -P $(DL_DIR) $(SPEEX_SITE)/$(SPEEX_SOURCE)
22 $(SPEEX_DIR)/.unpacked: $(DL_DIR)/$(SPEEX_SOURCE)
23 gzip -d -c $(DL_DIR)/$(SPEEX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 touch $(SPEEX_DIR)/.unpacked
26 $(SPEEX_DIR)/.configured: $(SPEEX_DIR)/.unpacked
27 (cd $(SPEEX_DIR); rm -rf config.cache; \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS) $(SPEEXextraCFLAGS)" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --prefix=$(STAGING_DIR)/usr \
35 --exec-prefix=$(STAGING_DIR)/usr \
36 --bindir=$(STAGING_DIR)/usr/bin \
37 --sbindir=$(STAGING_DIR)/usr/sbin \
38 --libexecdir=$(STAGING_DIR)/usr/lib \
39 --sysconfdir=$(STAGING_DIR)/etc \
40 --datadir=$(STAGING_DIR)/usr/share \
41 --localstatedir=$(STAGING_DIR)/var \
42 --mandir=$(STAGING_DIR)/usr/man \
43 --infodir=$(STAGING_DIR)/usr/info \
44 --with-ogg-dir=$(STAGING_DIR)/usr \
45 --disable-shared \
46 $(DISABLE_NLS) \
48 touch $(SPEEX_DIR)/.configured
50 $(SPEEX_DIR)/.maked: $(SPEEX_DIR)/.configured
51 $(MAKE) -C $(SPEEX_DIR)
52 touch $(SPEEX_DIR)/.maked
55 $(SPEEX_DIR)/.installed: $(SPEEX_DIR)/.maked
56 $(MAKE) PREFIX=$(STAGING_DIR) -C $(SPEEX_DIR) install
57 touch $(SPEEX_DIR)/.installed
59 $(SPEEX_NAME): uclibc libogg zlib $(SPEEX_DIR)/.installed
61 $(SPEEX_NAME)-source: $(DL_DIR)/$(SPEEX_SOURCE)
63 $(SPEEX_NAME)-clean:
64 @if [ -d $(SPEEX_DIR)/Makefile ] ; then \
65 $(MAKE) -C $(SPEEX_DIR) clean ; \
66 fi;
68 $(SPEEX_NAME)-dirclean:
69 rm -rf $(SPEEX_DIR)
71 #############################################################
73 # Toplevel Makefile options
75 #############################################################
76 ifeq ($(strip $(BR2_PACKAGE_SPEEX)),y)
77 TARGETS+=speex
78 endif