freenode ciabot functionality
[openwrt.git] / obsolete-buildroot / make / mpg123.mk
1 #############################################################
2 #
3 # mpg123
4 #
5 #############################################################
6
7 MPG123_VERSION=0.59r
8
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
11
12 MPG123_SOURCE=mpg123-$(MPG123_VERSION).tar.gz
13 MPG123_SITE=http://www.mpg123.de/mpg123
14 MPG123_DIR=$(BUILD_DIR)/${shell basename $(MPG123_SOURCE) .tar.gz}
15 MPG123_WORKDIR=$(BUILD_DIR)/mpg123-$(MPG123_VERSION)
16
17 $(DL_DIR)/$(MPG123_SOURCE):
18 $(WGET) -P $(DL_DIR) $(MPG123_SITE)/$(MPG123_SOURCE)
19
20 $(MPG123_DIR)/.unpacked: $(DL_DIR)/$(MPG123_SOURCE)
21 gzip -d -c $(DL_DIR)/$(MPG123_SOURCE) | tar -C $(BUILD_DIR) -xvf -
22 touch $(MPG123_DIR)/.unpacked
23
24 $(MPG123_WORKDIR)/mpg123: $(MPG123_DIR)/.unpacked
25 rm -f $@
26 $(MAKE) CC=$(TARGET_CC) -C $(MPG123_WORKDIR) linux
27
28 $(MPG123_WORKDIR)/.installed: $(MPG123_WORKDIR)/mpg123
29 mkdir -p $(TARGET_DIR)/usr/bin
30 cp -f $(MPG123_WORKDIR)/mpg123 $(TARGET_DIR)/usr/bin
31 $(STRIP) --strip-all $(TARGET_DIR)/usr/bin/mpg123
32 touch $(MPG123_WORKDIR)/.installed
33
34 mpg123: uclibc libmad $(MPG123_WORKDIR)/.installed
35
36 mpg123-source: $(DL_DIR)/$(MPG123_SOURCE)
37
38 mpg123-clean:
39 @if [ -d $(MPG123_WORKDIR)/Makefile ] ; then \
40 $(MAKE) -C $(MPG123_WORKDIR) clean ; \
41 fi;
42
43 mpg123-dirclean:
44 rm -rf $(MPG123_DIR) $(MPG123_WORKDIR)
45
This page took 0.052026 seconds and 5 git commands to generate.