All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] squeezelite: new package
@ 2015-09-18 13:37 kei-k at ca2.so-net.ne.jp
  2015-09-18 14:59 ` Vicente Olivert Riera
  0 siblings, 1 reply; 5+ messages in thread
From: kei-k at ca2.so-net.ne.jp @ 2015-09-18 13:37 UTC (permalink / raw)
  To: buildroot

Dear, maintener.

squeezelite is very famous and attractive sound client for
Logitech Media Server.

I deeply appreciate if you pull this patch.

Thank you.

==============================================================================
diff -ruN buildroot/package/Config.in buildroot-new/package/Config.in
--- buildroot/package/Config.in	2015-09-18 15:02:07.865545530 +0900
+++ buildroot-new/package/Config.in	2015-09-18 22:02:46.293517263 +0900
@@ -33,6 +33,7 @@
 	source "package/opus-tools/Config.in"
 	source "package/pulseaudio/Config.in"
 	source "package/sox/Config.in"
+	source "package/squeezelite/Config.in"
 	source "package/tidsp-binaries/Config.in"
 	source "package/tovid/Config.in"
 	source "package/tstools/Config.in"
diff -ruN buildroot/package/squeezelite/Config.in buildroot-new/package/squeezelite/Config.in
--- buildroot/package/squeezelite/Config.in	1970-01-01 09:00:00.000000000 +0900
+++ buildroot-new/package/squeezelite/Config.in	2015-09-18 16:07:51.000000000 +0900
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_SQUEEZELITE
+	bool "squeezelite"
+	depends on BR2_USE_WCHAR	# flac
+	select BR2_PACKAGE_ALSA_LIB
+	select BR2_PACKAGE_FLAC
+	select BR2_PACKAGE_LIBMAD
+	select BR2_PACKAGE_LIBVORBIS
+	select BR2_PACKAGE_FAAD2
+	select BR2_PACKAGE_MPG123
+	select BR2_PACKAGE_LIBSOXR
+	help
+	  Logitech Media Server client
+	  https://code.google.com/p/squeezelite/
+
+config BR2_PACKAGE_SQUEEZELITE_ENABLE_RESAMPLE
+	bool "Enable resampling function"
+	default y
+	depends on BR2_PACKAGE_SQUEEZELITE
+	help
+	  Enable resampling function
+
+config BR2_PACKAGE_SQUEEZELITE_WITH_RESAMPLE_MP
+	bool "Use OpenMP for resampling"
+	default y
+	depends on BR2_PACKAGE_SQUEEZELITE_ENABLE_RESAMPLE
+	help
+	  Enable OpenMP support for resampling
+
+comment "squeezelite needs a toolchain w/ wchar (incur from flac)"
+	depends on !BR2_USE_WCHAR
diff -ruN buildroot/package/squeezelite/squeezelite.mk buildroot-new/package/squeezelite/squeezelite.mk
--- buildroot/package/squeezelite/squeezelite.mk	1970-01-01 09:00:00.000000000 +0900
+++ buildroot-new/package/squeezelite/squeezelite.mk	2015-09-18 22:28:22.290163636 +0900
@@ -0,0 +1,34 @@
+################################################################################
+#
+# squeezelite -- Logitech Media Server client
+#
+################################################################################
+
+SQUEEZELITE_VERSION = v1.8
+SQUEEZELITE_SITE = https://code.google.com/p/squeezelite
+SQUEEZELITE_SITE_METHOD = git
+SQUEEZELITE_LICENSE = GPLv3
+SQUEEZELITE_LICENSE_FILE = LICENSE.txt
+SQUEEZELITE_INSTALL_STAGING = NO
+SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123 libsoxr
+
+#SQUEEZELITE_OPTS = "-DLINKALL"
+SQUEEZELITE_OPTS = ""
+
+ifeq ($(BR2_PACKAGE_SQUEEZELITE_ENABLE_RESAMPLE),y)
+	SQUEEZELITE_OPTS += -DRESAMPLE
+	ifeq ($(BR2_PACKAGE_SQUEEZELITE_WITH_RESAMPLE_MP),y)
+		SQUEEZELITE_OPTS += -DRESAMPLE_MP
+	endif
+endif
+
+define SQUEEZELITE_BUILD_CMDS
+    $(MAKE) OPTS="$(SQUEEZELITE_OPTS)" \
+	CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
+endef
+
+define SQUEEZELITE_INSTALL_TARGET_CMDS
+    $(INSTALL) -D -m 0755 $(@D)/squeezelite $(TARGET_DIR)/usr/bin
+endef
+
+$(eval $(generic-package))

==============================================================================
============================================================
    Hiroshi Kawashima

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-18 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18 13:37 [Buildroot] squeezelite: new package kei-k at ca2.so-net.ne.jp
2015-09-18 14:59 ` Vicente Olivert Riera
2015-09-18 15:01   ` Vicente Olivert Riera
2015-09-18 15:21   ` kei
2015-09-18 22:56   ` kei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.