Initial Commit
- initial default booting image
This commit is contained in:
28
package/libopenmpt/Config.in
Normal file
28
package/libopenmpt/Config.in
Normal file
@@ -0,0 +1,28 @@
|
||||
config BR2_PACKAGE_LIBOPENMPT
|
||||
bool "libopenmpt"
|
||||
# See: https://lib.openmpt.org/doc/dependencies.html
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
libopenmpt is a cross-platform C++ and C library to decode
|
||||
tracked music files (modules) into a raw PCM audio stream.
|
||||
|
||||
openmpt123 is a cross-platform command-line or terminal
|
||||
based module file player.
|
||||
|
||||
https://lib.openmpt.org/libopenmpt
|
||||
|
||||
if BR2_PACKAGE_LIBOPENMPT
|
||||
|
||||
config BR2_PACKAGE_LIBOPENMPT_OPENMPT123
|
||||
bool "openmpt123"
|
||||
help
|
||||
Install the openmpt123 command line tool.
|
||||
|
||||
endif
|
||||
|
||||
comment "libopenmpt needs a toolchain w/ threads, C++, gcc >= 7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/libopenmpt/libopenmpt.hash
Normal file
3
package/libopenmpt/libopenmpt.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# computed locally
|
||||
sha256 dcd7cde4f9c498eb496c4556e1c1b81353e2a74747e8270a42565117ea42e1f1 libopenmpt-0.7.13+release.autotools.tar.gz
|
||||
sha256 d173856a870d3f6d0603060c615f5e3b145d79a008576e8efd2e5eab8b843430 LICENSE
|
||||
94
package/libopenmpt/libopenmpt.mk
Normal file
94
package/libopenmpt/libopenmpt.mk
Normal file
@@ -0,0 +1,94 @@
|
||||
################################################################################
|
||||
#
|
||||
# libopenmpt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBOPENMPT_VERSION = 0.7.13
|
||||
LIBOPENMPT_SITE = https://lib.openmpt.org/files/libopenmpt/src
|
||||
LIBOPENMPT_SOURCE = libopenmpt-$(LIBOPENMPT_VERSION)+release.autotools.tar.gz
|
||||
LIBOPENMPT_LICENSE = BSD-3-Clause
|
||||
LIBOPENMPT_LICENSE_FILES = LICENSE
|
||||
LIBOPENMPT_CPE_ID_VENDOR = openmpt
|
||||
LIBOPENMPT_DEPENDENCIES = host-pkgconf
|
||||
LIBOPENMPT_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOPENMPT_OPENMPT123),y)
|
||||
LIBOPENMPT_CONF_OPTS += --enable-openmpt123
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --disable-openmpt123
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLAC),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-flac
|
||||
LIBOPENMPT_DEPENDENCIES += flac
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-flac
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOGG),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-ogg
|
||||
LIBOPENMPT_DEPENDENCIES += libogg
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-ogg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-sndfile
|
||||
LIBOPENMPT_DEPENDENCIES += libsndfile
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-sndfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-vorbis --with-vorbisfile
|
||||
LIBOPENMPT_DEPENDENCIES += libvorbis
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-vorbis --without-vorbisfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MPG123),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-mpg123
|
||||
LIBOPENMPT_DEPENDENCIES += mpg123
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-mpg123
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-portaudio
|
||||
LIBOPENMPT_DEPENDENCIES += portaudio
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-portaudio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PORTAUDIO_CXX),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-portaudiocpp
|
||||
# No need to add portaudio dependency, because this config already
|
||||
# depends on BR2_PACKAGE_PORTAUDIO. So the dependency has already been
|
||||
# added in the previous block.
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-portaudiocpp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-pulseaudio
|
||||
LIBOPENMPT_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-pulseaudio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SDL2),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-sdl2
|
||||
LIBOPENMPT_DEPENDENCIES += sdl2
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-sdl2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
LIBOPENMPT_CONF_OPTS += --with-zlib
|
||||
LIBOPENMPT_DEPENDENCIES += zlib
|
||||
else
|
||||
LIBOPENMPT_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user