docs/buildroot.html: fix typo
[avatt.git] / package / sdl_mixer / sdl_mixer.mk
blobab8b591810adafcd1fe8499a7ec34c688593738b
1 #############################################################
3 # SDL_mixer
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/
9 SDL_MIXER_CAT:=$(ZCAT)
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
20 touch $@
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) \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
33 --without-x \
34 --with-freetype-prefix=$(STAGING_DIR)/usr \
35 --with-sdl-prefix=$(STAGING_DIR)/usr \
37 touch $@
39 $(SDL_MIXER_DIR)/.compiled: $(SDL_MIXER_DIR)/.configured
40 $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(SDL_MIXER_DIR)
41 touch $@
43 $(STAGING_DIR)/usr/lib/libSDL_mixer.so: $(SDL_MIXER_DIR)/.compiled
44 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_MIXER_DIR) install
45 touch -c $@
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
53 sdl_mixer-clean:
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
58 sdl_mixer-dirclean:
59 rm -rf $(SDL_MIXER_DIR)
61 #############################################################
63 # Toplevel Makefile options
65 #############################################################
66 ifeq ($(BR2_PACKAGE_SDL_MIXER),y)
67 TARGETS+=sdl_mixer
68 endif