mmal: Link to core, components, util explicitly
[vlc.git] / contrib / src / sidplay2 / rules.mak
blob9c18fef79dcc0bf5f9f5084368808c98ea7378d8
1 # sidplay2
3 SID_VERSION := 2.1.1
4 SID_URL := $(SF)/sidplay2/sidplay2/sidplay-libs-$(SID_VERSION)/sidplay-libs-$(SID_VERSION).tar.gz
6 ifdef GPL
7 PKGS += sidplay2
8 endif
10 $(TARBALLS)/sidplay-libs-$(SID_VERSION).tar.gz:
11 $(call download_pkg,$(SID_URL),sidplay2)
13 .sum-sidplay2: sidplay-libs-$(SID_VERSION).tar.gz
15 sidplay-libs: sidplay-libs-$(SID_VERSION).tar.gz .sum-sidplay2
16 $(UNPACK)
17 $(APPLY) $(SRC)/sidplay2/sidplay2-openmode.patch
18 $(APPLY) $(SRC)/sidplay2/sidplay2-endian.patch
19 $(APPLY) $(SRC)/sidplay2/sidplay2-smartprt.patch
20 $(APPLY) $(SRC)/sidplay2/sidplay2-noutils.patch
21 $(APPLY) $(SRC)/sidplay2/sidplay2-string.patch
22 $(MOVE)
24 .sidplay2: sidplay-libs
25 $(REQUIRE_GPL)
26 for d in . libsidplay builders resid builders/resid-builder \
27 builders/hardsid-builder libsidutils ; \
28 do \
29 (cd $</$$d && rm -rf aclocal.m4 Makefile.in configure) || exit $$? ; \
30 done
31 for d in . libsidplay resid builders/resid-builder \
32 builders/hardsid-builder libsidutils ; \
33 do \
34 (cd $</$$d && $(AUTORECONF) -fiv -I unix $(ACLOCAL_AMFLAGS)) || exit $$? ; \
35 done
36 cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
37 cd $< && $(MAKE) install
38 cp -- $(PREFIX)/lib/sidplay/builders/* "$(PREFIX)/lib/"
39 touch $@