4 SID_URL
:= $(SF
)/sidplay2
/sidplay2
/sidplay-libs-
$(SID_VERSION
)/sidplay-libs-
$(SID_VERSION
).
tar.gz
10 ifeq ($(call need_pkg
,"libsidplay2"),)
11 PKGS_FOUND
+= sidplay2
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
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
32 .sidplay2
: sidplay-libs
34 for d in . libsidplay builders resid builders
/resid-builder \
35 builders
/hardsid-builder libsidutils
; \
37 (cd
$</$$d && rm -rf aclocal.m4 Makefile.in configure
) || exit
$$?
; \
39 for d in . libsidplay resid builders
/resid-builder \
40 builders
/hardsid-builder libsidutils
; \
42 (cd
$</$$d && $(AUTORECONF
) -fiv
-I unix
$(ACLOCAL_AMFLAGS
)) || exit
$$?
; \
44 cd
$< && $(HOSTVARS
) .
/configure
$(HOSTCONF
)
45 cd
$< && $(MAKE
) install
46 cp
-- $(PREFIX
)/lib
/sidplay
/builders
/* "$(PREFIX)/lib/"