2010-02-15 21:08:22 +00:00
|
|
|
#
|
2010-01-04 21:06:15 +00:00
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2010-02-15 21:08:22 +00:00
|
|
|
PKG_NAME:=SDL_mixer
|
2010-01-04 21:06:15 +00:00
|
|
|
PKG_VERSION:=1.2.11
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2010-02-15 21:08:22 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-01-04 21:06:15 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_mixer/release/
|
|
|
|
PKG_MD5SUM:=65ada3d997fe85109191a5fb083f248c
|
2010-02-15 21:08:22 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-02-03 17:16:24 +00:00
|
|
|
PKG_MACRO_PATHS:=acinclude
|
2010-02-15 21:08:22 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-01-04 21:06:15 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-03-17 23:43:04 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
|
|
|
|
|
2010-01-04 21:06:15 +00:00
|
|
|
define Package/libsdl-mixer
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Simple DirectMedia Layer Sound Mixer
|
|
|
|
URL:=http://www.libsdl.org/projects/SDL_mixer/
|
2010-02-15 21:08:22 +00:00
|
|
|
DEPENDS:=+libsdl +libmikmod +libvorbisidec
|
2010-01-04 21:06:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsdl-mixer/description
|
|
|
|
SDL_mixer is a sample multi-channel audio mixer library.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2010-02-15 21:08:22 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-sdltest \
|
|
|
|
--enable-music-cmd \
|
|
|
|
--enable-music-wave \
|
|
|
|
--enable-music-mod \
|
|
|
|
--enable-music-mod-shared \
|
|
|
|
--enable-music-midi \
|
|
|
|
--disable-music-ogg \
|
|
|
|
--enable-music-ogg-tremor \
|
|
|
|
--enable-music-ogg-shared \
|
|
|
|
--disable-music-flac \
|
|
|
|
--enable-music-flag-shared \
|
|
|
|
--disable-music-mp3 \
|
|
|
|
--enable-music-mp3-shared \
|
|
|
|
--disable-smpegtest \
|
|
|
|
--disable-music-mp3-mad-gpl \
|
2011-03-06 11:39:53 +00:00
|
|
|
--with-sdl-exec-prefix="$(STAGING_DIR)/usr" \
|
2010-02-15 21:08:22 +00:00
|
|
|
)
|
2010-01-04 21:06:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2010-02-15 21:08:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
|
2010-01-04 21:06:15 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
|
|
|
|
$(1)/usr/include/SDL/
|
|
|
|
$(CP) \
|
2010-02-15 21:08:22 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
|
2010-01-04 21:06:15 +00:00
|
|
|
$(1)/usr/lib/
|
2010-02-15 21:08:22 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2010-01-04 21:06:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsdl-mixer/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-01-04 21:20:44 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.so* $(1)/usr/lib/
|
2010-01-04 21:06:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsdl-mixer))
|