[packages] Fix/Cleanup libsdl-mixer

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19647 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars 2010-02-15 21:08:22 +00:00
parent 026d0f4ace
commit 98ce93fd8b

View File

@ -7,14 +7,16 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libsdl-mixer PKG_NAME:=SDL_mixer
PKG_VERSION:=1.2.11 PKG_VERSION:=1.2.11
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=SDL_mixer-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_mixer/release/ PKG_SOURCE_URL:=http://www.libsdl.org/projects/SDL_mixer/release/
PKG_MD5SUM:=65ada3d997fe85109191a5fb083f248c PKG_MD5SUM:=65ada3d997fe85109191a5fb083f248c
PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_mixer-$(PKG_VERSION)
PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -23,39 +25,44 @@ define Package/libsdl-mixer
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=Simple DirectMedia Layer Sound Mixer TITLE:=Simple DirectMedia Layer Sound Mixer
URL:=http://www.libsdl.org/projects/SDL_mixer/ URL:=http://www.libsdl.org/projects/SDL_mixer/
DEPENDS:=+libsdl +libmikmod DEPENDS:=+libsdl +libmikmod +libvorbisidec
endef endef
define Package/libsdl-mixer/description define Package/libsdl-mixer/description
SDL_mixer is a sample multi-channel audio mixer library. SDL_mixer is a sample multi-channel audio mixer library.
endef endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
CONFIGURE_ARGS += \
--with-sdl-exec-prefix=$(PKG_BUILD_DIR)
define Build/Configure define Build/Configure
$(INSTALL_DIR) $(PKG_BUILD_DIR)/bin $(call Build/Configure/Default, \
$(INSTALL_BIN) ./files/sdl-config $(PKG_BUILD_DIR)/bin/ --disable-sdltest \
$(call Build/Configure/Default) --enable-music-cmd \
endef --enable-music-wave \
--enable-music-mod \
define Build/Compile --enable-music-mod-shared \
rm -rf $(PKG_INSTALL_DIR) --enable-music-midi \
$(MAKE) -C $(PKG_BUILD_DIR) \ --disable-music-ogg \
DESTDIR="$(PKG_INSTALL_DIR)" \ --enable-music-ogg-tremor \
all install --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 \
)
endef endef
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/include/SDL $(1)/usr/lib/pkgconfig
$(CP) \ $(CP) \
$(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \ $(PKG_INSTALL_DIR)/usr/include/SDL/SDL_mixer.h \
$(1)/usr/include/SDL/ $(1)/usr/include/SDL/
$(CP) \ $(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,so*} \ $(PKG_INSTALL_DIR)/usr/lib/libSDL_mixer*.{a,la,so*} \
$(1)/usr/lib/ $(1)/usr/lib/
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
$(1)/usr/lib/pkgconfig/
endef endef
define Package/libsdl-mixer/install define Package/libsdl-mixer/install