Sorry, forgot the file 010-do_not_use_ACS_VLINE.patch

Johannes
From 99ca2fd09b779a523cbcdbde80e8b9d5166b68a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20Wei=C3=9Fl?= <[email protected]>
Date: Mon, 25 Apr 2011 16:57:46 +0200
Subject: [PATCH] add cmus package

---
 sound/cmus/Makefile                               |   96 +++++++++++++++++++++
 sound/cmus/patches/010-do_not_use_ACS_VLINE.patch |   11 +++
 2 files changed, 107 insertions(+), 0 deletions(-)
 create mode 100644 sound/cmus/Makefile
 create mode 100644 sound/cmus/patches/010-do_not_use_ACS_VLINE.patch

diff --git a/sound/cmus/Makefile b/sound/cmus/Makefile
new file mode 100644
index 0000000..d90940e
--- /dev/null
+++ b/sound/cmus/Makefile
@@ -0,0 +1,96 @@
+#
+# Copyright (C) 2011 Johannes Weißl <[email protected]>
+# Copyright (C) 2006-2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cmus
+PKG_VERSION:=2.4.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@SF/cmus
+PKG_MD5SUM:=0c5a9f4032e632e5f6b6a49f53df1e7e
+
+PKG_INSTALL:=1
+PKG_BUILD_DIR:=$(BUILD_DIR)/cmus-v$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/nls.mk
+
+define Package/cmus
+  SECTION:=sound
+  CATEGORY:=Sound
+  DEPENDS:= \
+	+libpthread +librt +libncurses $(ICONV_DEPENDS) \
+	+AUDIO_SUPPORT:alsa-lib \
+	+BUILD_PATENTED:libmad +libvorbisidec +libflac
+  TITLE:=C* Music Player
+  URL:=http://cmus.sourceforge.net/
+endef
+
+define Package/cmus/description
+	C* Music Player is a modular and very configurable ncurses-based
+	audio player. It has some interesting features like configurable
+	colorscheme, mp3 and ogg streaming, it can be controlled with an
+	UNIX socket, filters, album/artists sorting and a vi-like
+	configuration interface.
+endef
+
+define Build/Configure
+	# this is *NOT* GNU configure
+	( cd $(PKG_BUILD_DIR); \
+		CROSS="$(TARGET_CROSS)" \
+		CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(ICONV_PREFIX)/include" \
+		LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(ICONV_PREFIX)/lib" \
+		PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+		PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
+		./configure \
+		prefix="/usr" \
+		CONFIG_FLAC=a \
+		CONFIG_MAD=$(if $(CONFIG_BUILD_PATENTED),a,n) \
+		CONFIG_MODPLUG=n \
+		CONFIG_MIKMOD=n \
+		CONFIG_MPC=n \
+		CONFIG_VORBIS=a \
+		CONFIG_TREMOR=y \
+		CONFIG_WAVPACK=n \
+		CONFIG_MP4=n \
+		CONFIG_AAC=n \
+		CONFIG_FFMPEG=n \
+		CONFIG_ROAR=n \
+		CONFIG_PULSE=n \
+		CONFIG_ALSA=$(if $(CONFIG_AUDIO_SUPPORT),a,n) \
+		CONFIG_AO=n \
+		CONFIG_ARTS=n \
+		CONFIG_OSS=y \
+		CONFIG_SUN=n \
+		CONFIG_WAVEOUT=n \
+		DEBUG=0 \
+	)
+endef
+
+define Build/Compile
+	$(MAKE) -C $(PKG_BUILD_DIR) \
+		DESTDIR="$(PKG_INSTALL_DIR)" \
+		V=$(V) \
+		install
+endef
+
+define Package/cmus/install
+	$(INSTALL_DIR) $(1)/usr/bin
+	$(INSTALL_DIR) $(1)/usr/lib/cmus/ip
+	$(INSTALL_DIR) $(1)/usr/lib/cmus/op
+	$(INSTALL_DIR) $(1)/usr/share/cmus
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmus $(1)/usr/bin/
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/ip/*.so $(1)/usr/lib/cmus/ip/
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmus/op/*.so $(1)/usr/lib/cmus/op/
+	$(CP) $(PKG_INSTALL_DIR)/usr/share/cmus/{rc,default.theme} $(1)/usr/share/cmus/
+endef
+
+$(eval $(call BuildPackage,cmus))
+
diff --git a/sound/cmus/patches/010-do_not_use_ACS_VLINE.patch b/sound/cmus/patches/010-do_not_use_ACS_VLINE.patch
new file mode 100644
index 0000000..aaeb34e
--- /dev/null
+++ b/sound/cmus/patches/010-do_not_use_ACS_VLINE.patch
@@ -0,0 +1,11 @@
+--- a/ui_curses.c
++++ b/ui_curses.c
+@@ -928,7 +928,7 @@ static void draw_separator(void)
+ 	(void) mvaddch(0, tree_win_w, ' ');
+ 	bkgdset(pairs[CURSED_SEPARATOR]);
+ 	for (row = 1; row < LINES - 3; row++)
+-		(void) mvaddch(row, tree_win_w, ACS_VLINE);
++		(void) mvaddch(row, tree_win_w, '|');
+ }
+ 
+ static void do_update_view(int full)
-- 
1.7.5.rc3

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to