4 MAD_URL
:= $(CONTRIB_VIDEOLAN
)/libmad-
$(MAD_VERSION
).
tar.gz
9 ifeq ($(call need_pkg
,"mad"),)
13 $(TARBALLS
)/libmad-
$(MAD_VERSION
).
tar.gz
:
14 $(call download
,$(MAD_URL
))
16 .sum-mad
: libmad-
$(MAD_VERSION
).
tar.gz
18 libmad
: libmad-
$(MAD_VERSION
).
tar.gz .sum-mad
21 cd
$@
-$(MAD_VERSION
) && sed \
22 -e
's%-march=i486%$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \
23 -e
's%-dynamiclib%-dynamiclib -arch $(ARCH)%' \
27 $(APPLY
) $(SRC
)/mad
/mad-ios-asm.patch
29 $(APPLY
) $(SRC
)/mad
/mad-noopt.patch
30 $(APPLY
) $(SRC
)/mad
/Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff
31 $(APPLY
) $(SRC
)/mad
/mad-mips-h-constraint-removal.patch
35 touch libmad
/NEWS libmad
/AUTHORS libmad
/ChangeLog
38 cd
$< && $(HOSTVARS
) CCAS
="$(AS)" CFLAGS
="$(CFLAGS) -O3" .
/configure
$(HOSTCONF
) $(MAD_CONF
)
40 cd
$< && $(HOSTVARS
) CFLAGS
="$(CFLAGS) -O3" .
/configure
$(HOSTCONF
) $(MAD_CONF
)
42 cd
$< && $(MAKE
) install