nfs swap patch; bzip loader
[openwrt.git] / obsolete-buildroot / make / libmad.mk
1 #############################################################
2 #
3 # libmad
4 #
5 #############################################################
6
7 LIBMAD_VERSION=0.15.0b
8
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
11
12 LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz
13 LIBMAD_SITE=http://easynews.dl.sourceforge.net/sourceforge/mad/
14 LIBMAD_DIR=$(BUILD_DIR)/${shell basename $(LIBMAD_SOURCE) .tar.gz}
15 LIBMAD_WORKDIR=$(BUILD_DIR)/libmad-$(LIBMAD_VERSION)
16
17 $(DL_DIR)/$(LIBMAD_SOURCE):
18 $(WGET) -P $(DL_DIR) $(LIBMAD_SITE)/$(LIBMAD_SOURCE)
19
20 $(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
21 gzip -d -c $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
22 touch $(LIBMAD_DIR)/.unpacked
23
24 $(LIBMAD_DIR)/.configured: $(LIBMAD_DIR)/.unpacked
25 (cd $(LIBMAD_DIR); rm -rf config.cache; \
26 $(TARGET_CONFIGURE_OPTS) \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 $(DISABLE_NLS) \
34 );
35 touch $(LIBMAD_DIR)/.configured
36
37 $(LIBMAD_WORKDIR)/libmad: $(LIBMAD_DIR)/.configured
38 rm -f $@
39 $(MAKE) CC=$(TARGET_CC) -C $(LIBMAD_WORKDIR)
40
41 $(LIBMAD_WORKDIR)/.installed: $(LIBMAD_WORKDIR)/libmad
42 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(LIBMAD_WORKDIR) install
43 touch $(LIBMAD_WORKDIR)/.installed
44
45 libmad: uclibc $(LIBMAD_WORKDIR)/.installed
46
47 libmad-source: $(DL_DIR)/$(LIBMAD_SOURCE)
48
49 libmad-clean:
50 @if [ -d $(LIBMAD_WORKDIR)/Makefile ] ; then \
51 $(MAKE) -C $(LIBMAD_WORKDIR) clean ; \
52 fi;
53
54 libmad-dirclean:
55 rm -rf $(LIBMAD_DIR) $(LIBMAD_WORKDIR)
56
This page took 0.049768 seconds and 5 git commands to generate.