1 #############################################################
5 #############################################################
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
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
)
17 $(DL_DIR
)/$(LIBMAD_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(LIBMAD_SITE
)/$(LIBMAD_SOURCE
)
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
24 $(LIBMAD_DIR
)/.configured
: $(LIBMAD_DIR
)/.unpacked
25 (cd
$(LIBMAD_DIR
); rm -rf config.cache
; \
26 $(TARGET_CONFIGURE_OPTS
) \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
35 touch
$(LIBMAD_DIR
)/.configured
37 $(LIBMAD_WORKDIR
)/libmad
: $(LIBMAD_DIR
)/.configured
39 $(MAKE
) CC
=$(TARGET_CC
) -C
$(LIBMAD_WORKDIR
)
41 $(LIBMAD_WORKDIR
)/.installed
: $(LIBMAD_WORKDIR
)/libmad
42 $(MAKE
) prefix=$(TARGET_DIR
)/usr
-C
$(LIBMAD_WORKDIR
) install
43 touch
$(LIBMAD_WORKDIR
)/.installed
45 libmad
: uclibc
$(LIBMAD_WORKDIR
)/.installed
47 libmad-source
: $(DL_DIR
)/$(LIBMAD_SOURCE
)
50 @if
[ -d
$(LIBMAD_WORKDIR
)/Makefile
] ; then \
51 $(MAKE
) -C
$(LIBMAD_WORKDIR
) clean ; \
55 rm -rf
$(LIBMAD_DIR
) $(LIBMAD_WORKDIR
)