extras: ci: update Android image and NDK (21)
[vlc.git] / contrib / src / sidplay2 / rules.mak
blob0a303363db5b6b07b72a51897f7fef2b076d6149
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 ifeq ($(call need_pkg,"libsidplay2"),)
11 PKGS_FOUND += sidplay2
12 endif
14 $(TARBALLS)/sidplay-libs-$(SID_VERSION).tar.gz:
15 $(call download_pkg,$(SID_URL),sidplay2)
17 .sum-sidplay2: sidplay-libs-$(SID_VERSION).tar.gz
19 sidplay-libs: sidplay-libs-$(SID_VERSION).tar.gz .sum-sidplay2
20 $(UNPACK)
21 $(APPLY) $(SRC)/sidplay2/sidplay2-openmode.patch
22 $(APPLY) $(SRC)/sidplay2/sidplay2-endian.patch
23 $(APPLY) $(SRC)/sidplay2/sidplay2-smartprt.patch
24 $(APPLY) $(SRC)/sidplay2/sidplay2-noutils.patch
25 $(APPLY) $(SRC)/sidplay2/sidplay2-string.patch
26 $(APPLY) $(SRC)/sidplay2/sidplay-fix-ln-s.patch
27 $(APPLY) $(SRC)/sidplay2/sidplay2-resid-dependency.patch
28 $(APPLY) $(SRC)/sidplay2/sidplay2-char-cast.patch
29 $(APPLY) $(SRC)/sidplay2/sidplay2-fix-overflow.patch
30 $(MOVE)
32 .sidplay2: sidplay-libs
33 $(REQUIRE_GPL)
34 for d in . libsidplay builders resid builders/resid-builder \
35 builders/hardsid-builder libsidutils ; \
36 do \
37 (cd $</$$d && rm -rf aclocal.m4 Makefile.in configure) || exit $$? ; \
38 done
39 for d in . libsidplay resid builders/resid-builder \
40 builders/hardsid-builder libsidutils ; \
41 do \
42 (cd $</$$d && $(AUTORECONF) -fiv -I unix $(ACLOCAL_AMFLAGS)) || exit $$? ; \
43 done
44 cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
45 cd $< && $(MAKE) install
46 cp -- $(PREFIX)/lib/sidplay/builders/* "$(PREFIX)/lib/"
47 touch $@