From: Daniel Golle Date: Thu, 7 Nov 2024 20:17:17 +0000 (+0000) Subject: sdl2-mixer: add package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4bff91583baed3488479a275ef6d9e78db6efdd3;p=feed%2Fvideo.git sdl2-mixer: add package Add SDL2 audio mixer and music playback library. Signed-off-by: Daniel Golle --- diff --git a/libs/sdl2-mixer/Makefile b/libs/sdl2-mixer/Makefile new file mode 100644 index 0000000..cbe8577 --- /dev/null +++ b/libs/sdl2-mixer/Makefile @@ -0,0 +1,54 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=sdl2-mixer +PKG_VERSION:=2.8.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=SDL2_mixer-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/libsdl-org/SDL_mixer/tar.gz/release-$(PKG_VERSION)? +PKG_HASH:=1146f00815c8ad22c3d48fbe31ae23dc5997936ebf30b4b3aeab6eab7ea1db3e + +PKG_BUILD_DIR:=$(BUILD_DIR)/SDL_mixer-release-$(PKG_VERSION) + +PKG_MAINTAINER:=Daniel Golle +PKG_LICENSE:=BSD-3c +PKG_LICENSE_FILES:=COPYING LICENSE + +CMAKE_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_BINARY_SUBDIR:=openwrt-build + +CMAKE_OPTIONS += \ + -DSDL2MIXER_MIDI_FLUIDSYNTH_SHARED=ON + +define Build/InstallDev + $(call Build/InstallDev/cmake,$(1)) +ifdef CONFIG_DEBUG + $(LN) libSDL2_mixerd.so $(1)/usr/lib/libSDL2_mixer.so +endif +endef + +define Package/libsdl2-mixer + SECTION:=libs + CATEGORY:=Libraries + TITLE:=SDL2 Mixer + URL:=https://www.libsdl.org/ + DEPENDS:=+libfluidsynth +libopusfile +libsdl2 +libwavpack +libxmp +endef + +define Package/libsdl2-mixer/description + SDL Audio Mixer library +endef + +define Package/libsdl2-mixer/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/ +ifdef CONFIG_DEBUG + $(LN) libSDL2_mixerd.so $(1)/usr/lib/libSDL2_mixer.so +endif +endef + +$(eval $(call BuildPackage,libsdl2-mixer))