1 #############################################################
5 #############################################################
6 SDL_MIXER_VERSION
:=1.2.8
7 SDL_MIXER_SOURCE
:=SDL_mixer-
$(SDL_MIXER_VERSION
).
tar.gz
8 SDL_MIXER_SITE
:=http
://www.libsdl.org
/projects
/SDL_mixer
/release
/
10 SDL_MIXER_DIR
:=$(BUILD_DIR
)/SDL_mixer-
$(SDL_MIXER_VERSION
)
12 $(DL_DIR
)/$(SDL_MIXER_SOURCE
):
13 $(call DOWNLOAD
,$(SDL_MIXER_SITE
),$(SDL_MIXER_SOURCE
))
15 sdl_mixer-source
: $(DL_DIR
)/$(SDL_MIXER_SOURCE
)
17 $(SDL_MIXER_DIR
)/.unpacked
: $(DL_DIR
)/$(SDL_MIXER_SOURCE
)
18 $(SDL_MIXER_CAT
) $(DL_DIR
)/$(SDL_MIXER_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
19 $(CONFIG_UPDATE
) $(SDL_MIXER_DIR
)/build-scripts
22 $(SDL_MIXER_DIR
)/.configured
: $(SDL_MIXER_DIR
)/.unpacked
$(STAGING_DIR
)/usr
/lib
/libSDL.so
23 (cd
$(SDL_MIXER_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 $(TARGET_CONFIGURE_ARGS
) \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
32 --localstatedir
=/var \
34 --with-freetype-prefix
=$(STAGING_DIR
)/usr \
35 --with-sdl-prefix
=$(STAGING_DIR
)/usr \
39 $(SDL_MIXER_DIR
)/.compiled
: $(SDL_MIXER_DIR
)/.configured
40 $(MAKE1
) $(TARGET_CONFIGURE_OPTS
) -C
$(SDL_MIXER_DIR
)
43 $(STAGING_DIR
)/usr
/lib
/libSDL_mixer.so
: $(SDL_MIXER_DIR
)/.compiled
44 $(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(SDL_MIXER_DIR
) install
47 $(TARGET_DIR
)/usr
/lib
/libSDL_mixer.so
: $(STAGING_DIR
)/usr
/lib
/libSDL_mixer.so
48 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libSDL_mixer
*.so
* $(TARGET_DIR
)/usr
/lib
/
49 -$(STRIPCMD
) $(STRIP_STRIP_UNNEEDED
) $(TARGET_DIR
)/usr
/lib
/libSDL_mixer
*.so
*
51 sdl_mixer
: sdl uclibc
$(TARGET_DIR
)/usr
/lib
/libSDL_mixer.so
54 rm -f
$(TARGET_DIR
)/usr
/lib
/libSDL_mixer
*.so
*
55 -$(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(SDL_MIXER_DIR
) uninstall
56 -$(MAKE
) -C
$(SDL_MIXER_DIR
) clean
59 rm -rf
$(SDL_MIXER_DIR
)
61 #############################################################
63 # Toplevel Makefile options
65 #############################################################
66 ifeq ($(BR2_PACKAGE_SDL_MIXER
),y
)