libid3tag: moved to github
libid3tag: moved to github

git-svn-id: svn://svn.openwrt.org/openwrt/packages@41720 3c298f89-4303-0410-b956-a3cf2f4a3e73

file:a/libs/faad2/Config.in (deleted)
config FAAD2_ALWAYS_USE_FLOATING_POINT  
depends on PACKAGE_libfaad2  
bool "Build FAAD2 to use floating-point math even if using soft floats."  
default n  
help  
By default, libfaad2 will be built to use fixed point rather  
than floating point math if emulated floating point operations  
are being used. (See the CONFIG_SOFT_FLOAT option.) Set this  
option if you would like to use floating point math regardless  
of whether floating point emulation is in use.  
 
For the best real-time decoding ability, leave this option off.  
 
file:a/libs/faad2/Makefile (deleted)
#  
# Copyright (C) 2008 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:=faad2  
PKG_VERSION:=2.7  
PKG_RELEASE:=2  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=@SF/faac  
PKG_MD5SUM:=4c332fa23febc0e4648064685a3d4332  
 
PKG_CONFIG_DEPENDS := \  
CONFIG_SOFT_FLOAT \  
CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
TARGET_CFLAGS += $(FPIC)  
 
# Use fixed point math, if we're using soft floats, and the user didn't  
# specifically ask to use floats anyways.  
ifeq ($(CONFIG_SOFT_FLOAT)-$(CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT),y-)  
TARGET_CFLAGS+= -DFIXED_POINT  
endif  
 
define Package/faad2/Default  
URL:=http://www.audiocoding.com/faad2.html  
TITLE:=Freeware Advanced Audio Decoder  
endef  
 
define Package/faad2/Default/description  
FAAD2 is the fastest ISO AAC audio decoder available.  
FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,  
LOW, LTP, LD and ER object type AAC files.  
endef  
 
define Package/faad2  
$(call Package/faad2/Default)  
SECTION:=sound  
CATEGORY:=Sound  
TITLE+=player  
DEPENDS:=+libfaad2  
endef  
 
define Package/faad2/description  
$(call Package/faad2/Default/description)  
This package contains a binary to play AAC or MP4 files.  
endef  
 
define Package/libfaad2  
$(call Package/faad2/Default)  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE+=library  
DEPENDS:=@BUILD_PATENTED  
MENU:=1  
endef  
 
define Package/libfaad2/config  
source "$(SOURCE)/Config.in"  
endef  
 
define Package/libfaad2/description  
$(call Package/faad2/Default/description)  
This package contains the library.  
endef  
 
define Build/Configure  
# This replacement were do according to many comments on the web because of gcc 3.4.5 version (.6 included).-  
# wich doesn't recognices the -iquote parameter to AM_CFLAGS  
($(SED) 's,-iquote $$$$(top_srcdir),-I$$$$(top_srcdir),g' $(PKG_BUILD_DIR)/libfaad/Makefile.am; \  
$(SED) 's,-iquote $$$$(top_srcdir),-I$$$$(top_srcdir),g' $(PKG_BUILD_DIR)/libfaad/Makefile.in);  
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \  
autoreconf -vif \  
);  
$(call Build/Configure/Default, \  
--with-mp4v2 \  
--without-xmms \  
, \  
FAAD2_CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log" \  
)  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/  
endef  
 
define Package/faad2/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/  
endef  
 
define Package/libfaad2/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,faad2))  
$(eval $(call BuildPackage,libfaad2))  
 
file:a/libs/intltool/Makefile (deleted)
#  
# Copyright (C) 2009 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:=intltool  
PKG_LIBVER:=0.40  
PKG_VERSION:=$(PKG_LIBVER).6  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=@GNOME/intltool/$(PKG_LIBVER)  
PKG_MD5SUM:=69bc0353323112f42ad4f9cf351bc3e5  
 
PKG_HOST_ONLY:=1  
 
include $(INCLUDE_DIR)/host-build.mk  
include $(INCLUDE_DIR)/package.mk  
 
define Package/intltool  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE:=set of tools to centralize translation using GNU gettext  
URL:=http://www.freedesktop.org/wiki/Software/intltool  
BUILDONLY:=1  
endef  
 
define Package/intltool/description  
intltool is a set of tools to centralize translation of many different  
file formats using GNU gettext-compatible PO files.  
endef  
 
define Require/perl-xml-parser  
perl -e 'use XML::Parser;'  
endef  
 
$(eval $(call Require,perl-xml-parser, \  
Please install Perl XML::Parser \  
))  
 
$(eval $(call BuildPackage,intltool))  
$(eval $(call HostBuild))  
 
#  
# Copyright (C) 2006-2010 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:=audiofile  
PKG_VERSION:=0.2.7  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:= \  
http://github.com/downloads/mpruett/audiofile/ \  
http://www.68k.org/~michael/audiofile/  
PKG_MD5SUM:=a39be317a7b1971b408805dc5e371862  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libaudiofile  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE:=Audio File library  
URL:=http://www.68k.org/~michael/audiofile/  
endef  
 
define Package/libaudiofile/description  
The audiofile library allows the processing of audio data to and from audio  
files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,  
and raw data).  
endef  
 
CONFIGURE_ARGS+= \  
--enable-shared \  
--enable-static \  
--with-build-cc="$(HOSTCC)" \  
 
TARGET_CFLAGS+= $(FPIC) -std=c99  
 
define Build/InstallDev  
$(INSTALL_DIR) $(2)/bin  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/bin/audiofile-config \  
$(2)/bin/  
$(SED) \  
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \  
$(2)/bin/audiofile-config  
 
$(INSTALL_DIR) $(1)/usr/include  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \  
$(1)/usr/include/  
 
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \  
$(1)/usr/lib/  
 
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \  
$(1)/usr/lib/pkgconfig/  
endef  
 
define Package/libaudiofile/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \  
$(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libaudiofile))  
 
--- a/audiofile-config.in  
+++ b/audiofile-config.in  
@@ -45,7 +45,9 @@ while test $# -gt 0; do  
echo $includes  
;;  
--libs)  
- libdirs=-L@libdir@  
+ if test @libdir@ != /usr/libdir ; then  
+ libdirs=-L@libdir@  
+ fi  
echo $libdirs -laudiofile -lm  
;;  
*)  
 
file:a/libs/libdaemon/Makefile (deleted)
#  
# Copyright (C) 2006-2014 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:=libdaemon  
PKG_VERSION:=0.14  
PKG_RELEASE:=3  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/libdaemon/  
PKG_MD5SUM:=509dc27107c21bcd9fbf2f95f5669563  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libdaemon  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE:=A lightweight C library that eases the writing of UNIX daemons  
URL:=http://0pointer.de/lennart/projects/libdaemon/  
endef  
 
define Package/libdaemon/description  
libdaemon is a lightweight C library that eases the writing of UNIX daemons.  
It consists of the following parts:  
- A wrapper around fork() which does the correct daemonization procedure of a process  
- A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR  
- An API for writing PID files  
- An API for serializing UNIX signals into a pipe for usage with select() or poll()  
- An API for running subprocesses with STDOUT and STDERR redirected to syslog  
 
APIs like these are used in most daemon software available. It is not that  
simple to get it done right and code duplication is not a goal.  
endef  
 
define Build/Configure  
$(call Build/Configure/Default, \  
--enable-shared \  
--enable-static \  
--disable-lynx \  
, \  
ac_cv_func_setpgrp_void=yes \  
)  
endef  
 
TARGET_CFLAGS += $(FPIC)  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/libdaemon $(1)/usr/include/  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.a $(1)/usr/lib/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so* $(1)/usr/lib/  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdaemon.pc $(1)/usr/lib/pkgconfig/  
endef  
 
define Package/libdaemon/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libdaemon))  
 
From 013963ba35e8fe8897211c0acf5ee98f9a871fc1 Mon Sep 17 00:00:00 2001  
From: Michael Heimpold <mhei@heimpold.de>  
Date: Fri, 10 Jan 2014 19:38:51 +0100  
Subject: [PATCH] daemon_set_verbosity: fix erroneous error message  
 
When calling this function with a value other than LOG_DEBUG  
the error message was triggered erroneously.  
 
Signed-off-by: Michael Heimpold <mhei@heimpold.de>  
---  
 
libdaemon/dlog.c | 2 +-  
1 file changed, 1 insertion(+), 1 deletion(-)  
 
diff --git a/libdaemon/dlog.c b/libdaemon/dlog.c  
index 1cc0566..cc2b918 100644  
--- a/libdaemon/dlog.c  
+++ b/libdaemon/dlog.c  
@@ -42,7 +42,7 @@ static int daemon_verbosity_level = LOG_INFO;  
void daemon_set_verbosity(int verbosity_prio) {  
 
/* Allow using negative verbosity levels to hide _all_ messages */  
- if (verbosity_prio > 0 && (verbosity_prio & LOG_PRIMASK) != LOG_PRIMASK)  
+ if (verbosity_prio > 0 && (verbosity_prio & LOG_PRIMASK) != verbosity_prio)  
daemon_log(LOG_ERR, "The value %d is not a valid priority value", verbosity_prio);  
 
daemon_verbosity_level = verbosity_prio & LOG_PRIMASK;  
--  
1.7.10.4  
 
 
file:a/libs/libid3tag/Makefile (deleted)
#  
# Copyright (C) 2006-2010 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:=libid3tag  
PKG_VERSION:=0.15.1b  
PKG_RELEASE:=3  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:=@SF/mad  
PKG_MD5SUM:=e5808ad997ba32c498803822078748c3  
 
PKG_LICENSE:=GPLv2  
PKG_LICENSE_FILES:=COPYING  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libid3tag  
SECTION:=libs  
CATEGORY:=Libraries  
DEPENDS:=+zlib  
TITLE:=An ID3 tag manipulation library  
URL:=http://mad.sourceforge.net/  
endef  
 
define Package/libid3tag/description  
libid3tag is a library for reading and (eventually) writing ID3 tags, both  
ID3v1 and the various versions of ID3v2.  
endef  
 
TARGET_CFLAGS += $(FPIC)  
 
CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"  
 
define Build/Configure  
$(call Build/Configure/Default, \  
--enable-shared \  
--enable-static \  
--disable-debugging \  
--disable-profiling \  
)  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/  
endef  
 
define Package/libid3tag/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libid3tag))  
 
file:a/libs/libmms/Makefile (deleted)
#  
# Copyright (C) 2010-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:=libmms  
PKG_VERSION:=0.6  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz  
PKG_SOURCE_URL:=@SF/libmms  
PKG_MD5SUM:=650ad04a4c8bd79246390b81b29680b6  
 
PKG_LICENSE:=LGPLv2.1  
PKG_LICENSE_FILES:=COPYING.LIB  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
include $(INCLUDE_DIR)/nls.mk  
 
define Package/libmms  
SECTION:=libs  
CATEGORY:=Libraries  
DEPENDS:=+glib2  
TITLE:=MMS stream protocol library  
URL:=http://libmms.sourceforge.net  
endef  
 
define Package/libmms/description  
LibMMS is a common library for parsing mms:// and mmsh:// type network streams.  
These are commonly used to stream Windows Media Video content over the web.  
LibMMS itself is only for receiving MMS stream,  
it doesn't handle sending at all.  
endef  
 
TARGET_CFLAGS += $(FPIC)  
 
define Build/Configure  
(cd $(PKG_BUILD_DIR); ./autogen.sh );  
$(call Build/Configure/Default)  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/libmms $(1)/usr/include/  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.{a,so*} $(1)/usr/lib/  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
$(INSTALL_DATA) \  
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \  
$(1)/usr/lib/pkgconfig  
endef  
 
define Package/libmms/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libmms))  
 
diff -burN libmms-0.6.original/src/mms.c libmms-0.6.modified/src/mms.c  
--- libmms-0.6.original/src/mms.c 2010-05-31 12:13:04.000000000 +0200  
+++ libmms-0.6.modified/src/mms.c 2012-06-25 12:44:06.000000000 +0200  
@@ -40,7 +40,6 @@  
#include <errno.h>  
#include <stdlib.h>  
#include <time.h>  
-#include <iconv.h>  
 
/********** logging **********/  
#define lprintf(...) if (getenv("LIBMMS_DEBUG")) fprintf(stderr, __VA_ARGS__)  
@@ -447,17 +446,21 @@  
return 1;  
}  
 
-static int string_utf16(iconv_t url_conv, char *dest, char *src, int dest_len)  
+static int string_utf16(char *dest, char *src, int dest_len)  
{  
char *ip = src, *op = dest;  
size_t ip_len = strlen(src);  
- size_t op_len = dest_len - 2; /* reserve 2 bytes for 0 termination */  
 
- if (iconv(url_conv, &ip, &ip_len, &op, &op_len) == (size_t)-1) {  
+ if (2 * ip_len + 2 > dest_len) {  
lprintf("mms: Error converting uri to unicode: %s\n", strerror(errno));  
return 0;  
}  
 
+ while (ip_len--) {  
+ *op++ = *ip++;  
+ *op++ = 0x00;  
+ }  
+  
/* 0 terminate the string */  
*op++ = 0;  
*op++ = 0;  
@@ -1012,7 +1015,6 @@  
*/  
/* FIXME: got somewhat broken during xine_stream_t->(void*) conversion */  
mms_t *mms_connect (mms_io_t *io, void *data, const char *url, int bandwidth) {  
- iconv_t url_conv = (iconv_t)-1;  
mms_t *this;  
int res;  
uint32_t openid;  
@@ -1071,12 +1073,6 @@  
goto fail;  
}  
 
- url_conv = iconv_open("UTF-16LE", "UTF-8");  
- if (url_conv == (iconv_t)-1) {  
- lprintf("mms: could not get iconv handle to convert url to unicode\n");  
- goto fail;  
- }  
-  
/*  
* let the negotiations begin...  
*/  
@@ -1088,7 +1084,7 @@  
mms_gen_guid(this->guid);  
sprintf(this->str, "NSPlayer/7.0.0.1956; {%s}; Host: %s", this->guid,  
this->host);  
- res = string_utf16(url_conv, this->scmd_body + command_buffer.pos, this->str,  
+ res = string_utf16(this->scmd_body + command_buffer.pos, this->str,  
CMD_BODY_LEN - command_buffer.pos);  
if(!res)  
goto fail;  
@@ -1117,7 +1113,7 @@  
mms_buffer_put_32 (&command_buffer, 0x00000000);  
mms_buffer_put_32 (&command_buffer, 0x00989680);  
mms_buffer_put_32 (&command_buffer, 0x00000002);  
- res = string_utf16(url_conv, this->scmd_body + command_buffer.pos,  
+ res = string_utf16(this->scmd_body + command_buffer.pos,  
"\\\\192.168.0.129\\TCP\\1037",  
CMD_BODY_LEN - command_buffer.pos);  
if(!res)  
@@ -1156,7 +1152,7 @@  
mms_buffer_put_32 (&command_buffer, 0x00000000); /* ?? */  
mms_buffer_put_32 (&command_buffer, 0x00000000); /* ?? */  
 
- res = string_utf16(url_conv, this->scmd_body + command_buffer.pos,  
+ res = string_utf16(this->scmd_body + command_buffer.pos,  
this->uri, CMD_BODY_LEN - command_buffer.pos);  
if(!res)  
goto fail;  
@@ -1266,7 +1262,6 @@  
}  
}  
 
- iconv_close(url_conv);  
lprintf("mms: connect: passed\n");  
 
return this;  
@@ -1280,8 +1275,6 @@  
gnet_uri_delete(this->guri);  
if (this->uri)  
free(this->uri);  
- if (url_conv != (iconv_t)-1)  
- iconv_close(url_conv);  
 
free (this);  
return NULL;  
 
#  
# Copyright (C) 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:=libmpdclient  
PKG_VERSION:=2.4  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=https://sourceforge.net/projects/musicpd/files/libmpdclient/$(PKG_VERSION)/  
#PKG_SOURCE_URL:=@SF/musicpd/files/libmpdclient/$(PKG_VERSION)  
PKG_MD5SUM:=8c166c5212dd95d538d3a35bb9ad4634  
 
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libmpdclient  
TITLE:=libmpdclient  
SECTION:=libs  
CATEGORY:=Libraries  
URL:=http://mpd.wikia.com/wiki/ClientLib:libmpdclient  
DEPENDS:=  
endef  
 
define Package/libmpdclient/description  
A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages.  
endef  
 
TARGET_CFLAGS+="-std=gnu99"  
 
#TARGET_LDFLAGS+=-lpthread  
 
define Build/Configure  
$(call Build/Configure/Default)  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) \  
$(1)/usr/include \  
$(1)/usr/lib \  
$(1)/usr/lib/pkgconfig  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/* \  
$(1)/usr/lib/  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/include/* \  
$(1)/usr/include/  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig \  
$(1)/usr/lib/  
endef  
 
define Package/libmpdclient/install  
$(INSTALL_DIR) \  
$(1)/usr/lib  
$(CP) \  
$(PKG_INSTALL_DIR)/usr/lib/libmpdclient.so* \  
$(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libmpdclient))  
 
file:a/libs/libupnp/Makefile (deleted)
#  
# 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:=libupnp  
PKG_VERSION:=1.6.18  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=@SF/pupnp  
PKG_MD5SUM:=11c6484fd2e2927bf3b8d8108407ca56  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libupnp/Default  
SECTION:=libs  
CATEGORY:=Libraries  
URL:=http://pupnp.sourceforge.net/  
endef  
 
define Package/libupnp  
$(call Package/libupnp/Default)  
DEPENDS:=+libpthread  
TITLE:=UPnP SDK library  
MENU:=1  
endef  
 
define Package/libupnp/description  
The portable SDK for UPnP Devices (libupnp) provides developers with an API and  
open source code for building control points, devices, and bridges that are  
compliant with Version 1.0 of the Universal Plug and Play Device Architecture  
Specification.  
endef  
 
define Package/libupnp-sample  
$(call Package/libupnp/Default)  
DEPENDS:=libupnp  
TITLE:=UPnP sample applications  
endef  
 
define Package/libupnp-sample/description  
TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/  
endef  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include  
$(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*,la} $(1)/usr/lib/  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/  
endef  
 
define Package/libupnp/install  
$(INSTALL_DIR) $(1)/usr/lib  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/  
endef  
 
define Package/libupnp-sample/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin  
$(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web  
$(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice  
endef  
 
$(eval $(call BuildPackage,libupnp))  
$(eval $(call BuildPackage,libupnp-sample))  
 
file:a/libs/libvorbis/Makefile (deleted)
#  
# Copyright (C) 2008-2013 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:=libvorbis  
PKG_VERSION:=1.3.3  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz  
PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/  
PKG_MD5SUM:=71b649d3e08e63ece16649df906ce8b9  
 
PKG_LICENSE:=BSD-3c  
PKG_LICENSE_FILES:=COPYING  
 
PKG_FIXUP:=autoreconf  
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/libvorbis  
SECTION:=libs  
CATEGORY:=Libraries  
TITLE:=libvorbis  
URL:=http://xiph.org/vorbis/  
DEPENDS:=+libogg  
endef  
 
define Package/libvorbis/description  
Vorbis is a general purpose audio and music encoding format  
contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond  
MPEG audio layer 3. Unlike the MPEG sponsored formats (and other  
proprietary formats such as RealAudio G2 and Windows' flavor of the  
month), the Vorbis CODEC specification belongs to the public domain.  
All the technical details are published and documented, and any  
software entity may make full use of the format without license  
fee, royalty or patent concerns.  
endef  
 
CONFIGURE_ARGS+= \  
--disable-oggtest \  
 
define Build/InstallDev  
$(INSTALL_DIR) $(1)/usr/include/vorbis/  
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/  
$(INSTALL_DIR) $(1)/usr/lib/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/  
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/  
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/  
$(INSTALL_DIR) $(1)/usr/share/aclocal/  
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/  
endef  
 
define Package/libvorbis/install  
$(INSTALL_DIR) $(1)/usr/lib/  
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/  
endef  
 
$(eval $(call BuildPackage,libvorbis))  
 
#  
# Copyright (C) 2013 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:=shairport  
PKG_VERSION:=2014-05-08  
PKG_RELEASE:=$(PKG_SOURCE_VERSION)  
 
PKG_SOURCE_PROTO:=git  
PKG_SOURCE_URL:=git://github.com/abrasive/shairport.git  
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)  
PKG_SOURCE_VERSION:=078b21043cdcef6ffad7452db27f036770b23b0c  
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/shairport  
SECTION:=multimedia  
CATEGORY:=Multimedia  
DEPENDS:=+libpthread +avahi-utils +libopenssl +libao +libavahi-client \  
+alsa-utils  
TITLE:=ShairPort AirPort Express emulator  
endef  
 
define Package/shairport/description  
This program emulates an AirPort Express for the purpose of streaming  
music from iTunes and compatible iPods. It implements a server for the  
Apple RAOP protocol.  
ShairPort does not support AirPlay v2 (video and photo streaming).  
 
It supports multiple simultaneous streams, if your audio output chain  
(as detected by libao) does so.  
endef  
 
TARGET_CFLAGS += $(FPIC)  
 
LIBS:=-lao -lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound  
 
MAKE_FLAGS += \  
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \  
LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)"  
 
define Package/shairport/install  
$(INSTALL_DIR) $(1)/usr/sbin  
$(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/sbin/  
$(INSTALL_DIR) $(1)/etc/init.d/  
$(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport  
$(INSTALL_DIR) $(1)/etc/config  
$(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport  
endef  
 
$(eval $(call BuildPackage,shairport))  
 
config shairport  
option name 'AirPort'  
option password ''  
option port '5002'  
option buffer '256'  
option log '/var/log/shairport'  
option cmd_start ''  
option cmd_stop ''  
option cmd_wait '0'  
option audio_output ''  
option mdns ''  
 
#!/bin/sh /etc/rc.common  
# Copyright (C) 2013-2014 OpenWrt.org  
 
START=50  
USE_PROCD=1  
 
config_shairport() {  
local cfg="$1"  
 
local cfg_name  
local cfg_password  
local cfg_port  
local cfg_buffer  
local cfg_log  
local cfg_cmd_start  
local cfg_cmd_stop  
local cfg_cmd_wait  
local cfg_audio_output  
local cfg_mdns  
 
config_get cfg_name $cfg 'name' 'AirPort'  
config_get cfg_password $cfg 'password' ''  
config_get cfg_port $cfg 'port' '5002'  
config_get cfg_buffer $cfg 'buffer' '256'  
config_get cfg_log $cfg 'log' '/var/log/shairport'  
config_get cfg_cmd_start $cfg 'cmd_start' ''  
config_get cfg_cmd_stop $cfg 'cmd_stop' ''  
config_get_bool cfg_cmd_wait $cfg 'cmd_wait' '0'  
config_get cfg_audio_output $cfg 'audio_output' ''  
config_get cfg_mdns $cfg 'mdns' ''  
 
procd_open_instance  
 
procd_set_param command /usr/sbin/shairport  
procd_append_param command -a "$cfg_name"  
[ ! -z "$cfg_password" ] && procd_append_param command -k "$cfg_password"  
procd_append_param command -p $cfg_port  
procd_append_param command -b $cfg_buffer  
procd_append_param command -l $cfg_log  
[ ! -z "$cfg_cmd_start" ] && procd_append_param command -B "$cfg_cmd_start"  
[ ! -z "$cfg_cmd_stop" ] && procd_append_param command -E "$cfg_cmd_stop"  
[ "$cfg_cmd_wait" -eq 1 ] && procd_append_param command -w  
[ ! -z "$cfg_audio_output" ] && procd_append_param command -o "$cfg_audio_output"  
[ ! -z "$cfg_mdns" ] && procd_append_param command -m "$cfg_mdns"  
 
procd_set_param respawn  
procd_close_instance  
}  
 
start_service() {  
config_load shairport  
config_foreach config_shairport shairport  
}  
 
--- a/configure  
+++ b/configure  
@@ -59,7 +59,7 @@ do_pkg_config()  
 
do_pkg_config OpenSSL openssl  
do_pkg_config libao ao CONFIG_AO  
-do_pkg_config PulseAudio libpulse-simple CONFIG_PULSE  
+#do_pkg_config PulseAudio libpulse-simple CONFIG_PULSE  
do_pkg_config ALSA alsa CONFIG_ALSA  
do_pkg_config Avahi\ client avahi-client CONFIG_AVAHI  
 
 
file:a/sound/mpc/Makefile (deleted)
#  
# Copyright (C) 2006-2009 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:=mpc  
PKG_VERSION:=0.20  
PKG_RELEASE:=1  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=@SF/musicpd  
PKG_MD5SUM:=24c81ad6afe6099e8d7a6826ef4b7105  
 
include $(INCLUDE_DIR)/package.mk  
 
define Package/mpc  
SECTION:=sound  
CATEGORY:=Sound  
DEPENDS:=+libmpdclient  
TITLE:=Music Player Daemon Console Client  
URL:=http://www.musicpd.org/  
endef  
 
define Package/mpc/description  
MPD is a music player supporting flac, mp3 and ogg files.  
It is typically controlled over a network using one of it's many  
clients including mpc(console), gmpc(gnome), phpmp(php) etc.  
this is MPC  
endef  
 
define Build/Configure  
$(call Build/Configure/Default, \  
--disable-iconv \  
)  
endef  
 
define Build/Compile  
$(call Build/Compile/Default,\  
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \  
prefix="/usr" \  
all \  
)  
endef  
 
define Package/mpc/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mpc $(1)/usr/bin/  
$(INSTALL_BIN) ./files/pls-handler.sh $(1)/usr/bin/  
endef  
 
$(eval $(call BuildPackage,mpc))  
 
#!/usr/bin/env sh  
echo parameter: file.pls  
mpc clear  
grep '^File[0-9]*' $1 | sed -e 's/^File[0-9]*=//' | mpc add  
mpc play  
file:a/sound/mpd/Makefile (deleted)
#  
# Copyright (C) 2007-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:=mpd  
PKG_VERSION:=0.16.8  
PKG_RELEASE:=2  
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2  
PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.16/  
PKG_MD5SUM:=b412a9d0b3457bea1bb87904a8f80c04  
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)  
PKG_BUILD_PARALLEL:=1  
 
PKG_CONFIG_DEPENDS:= \  
CONFIG_IPV6 \  
 
PKG_INSTALL:=1  
 
include $(INCLUDE_DIR)/package.mk  
include $(INCLUDE_DIR)/nls.mk  
 
define Package/mpd/Default  
SECTION:=sound  
CATEGORY:=Sound  
TITLE:=Music Player Daemon  
URL:=http://www.musicpd.org/  
DEPENDS:= +glib2 +libcurl +libpthread \  
+libflac +BUILD_PATENTED:libmad +libvorbisidec  
endef  
 
define Package/mpd/Default/description  
Music Player Daemon (MPD) is a flexible, powerful, server-side  
application for playing music. It is typically controlled over a  
network using one of it's many clients including mpc (console),  
gmpc (gnome), phpmp (php), etc...  
endef  
 
 
define Package/mpd-full  
$(call Package/mpd/Default)  
TITLE+= (full)  
DEPENDS+= \  
+AUDIO_SUPPORT:alsa-lib \  
+libaudiofile +BUILD_PATENTED:libfaad2 +libffmpeg +libid3tag \  
+libmms +libogg +libshout +libsndfile +libvorbis  
PROVIDES:=mpd  
VARIANT:=full  
endef  
 
define Package/mpd-full/description  
$(call Package/mpd/Default/description)  
.  
This package contains a full-blown Music Player Daemon.  
endef  
 
define Package/mpd-full/conffiles  
/etc/avahi/services/mpd.service  
/etc/mpd.conf  
endef  
 
 
define Package/mpd-mini  
$(call Package/mpd/Default)  
TITLE+= (mini)  
PROVIDES:=mpd  
VARIANT:=mini  
endef  
 
define Package/mpd-mini/description  
$(call Package/mpd/Default/description)  
.  
This package contains a minimal Music Player Daemon, with support for  
only Flac, MP3 & OGG media types & only file: & http: protocols.  
endef  
 
define Package/mpd-mini/conffiles  
/etc/mpd.conf  
endef  
 
 
CONFIGURE_ARGS += \  
$(call autoconf_bool,CONFIG_IPV6,ipv6) \  
--disable-debug \  
--disable-documentation \  
--disable-gprof \  
--disable-test \  
--disable-werror \  
\  
--disable-ao \  
--disable-bzip2 \  
--disable-cue \  
--disable-ffado \  
--disable-fluidsynth \  
--disable-gme \  
--disable-inotify \  
--disable-iso9660 \  
--disable-jack \  
--disable-lame-encoder \  
--disable-libwrap \  
--disable-lsr \  
--disable-mikmod \  
--disable-modplug \  
--disable-mpc \  
--disable-mpg123 \  
--disable-mvp \  
--disable-openal \  
--disable-pulse \  
--disable-sidplay \  
--disable-solaris-output \  
--disable-sqlite \  
--disable-twolame-encoder \  
--disable-wave-encoder \  
--disable-wavpack \  
--disable-wildmidi \  
--disable-zzip \  
--with-zeroconf=no \  
\  
--enable-curl \  
--enable-flac \  
--enable-httpd-output \  
$(call autoconf_bool,CONFIG_BUILD_PATENTED,mad) \  
$(call autoconf_bool,CONFIG_AUDIO_SUPPORT,oss) \  
--enable-tcp \  
--enable-un \  
 
CONFIGURE_VARS += \  
FLAC_CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/FLAC" \  
FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \  
$(if $(CONFIG_BUILD_PATENTED),MAD_CFLAGS="$(TARGET_CFLAGS)") \  
$(if $(CONFIG_BUILD_PATENTED),MAD_LIBS="$(TARGET_LDFLAGS) -lmad") \  
 
TARGET_CFLAGS += -std=gnu99  
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib  
 
# use gcc instead of g++ to avoid unnecessary linking against libstdc++  
TARGET_CXX:=$(TARGET_CC)  
 
ifeq ($(BUILD_VARIANT),full)  
 
CONFIGURE_ARGS += \  
$(call autoconf_bool,CONFIG_BUILD_PATENTED,aac) \  
$(call autoconf_bool,CONFIG_AUDIO_SUPPORT,alsa) \  
--enable-audiofile \  
--enable-fifo \  
--enable-ffmpeg \  
--enable-id3 \  
--enable-lastfm \  
--enable-mms \  
--enable-oggflac \  
--enable-pipe-output \  
--enable-recorder-output \  
--enable-shout \  
--enable-sndfile \  
--enable-vorbis \  
--enable-vorbis-encoder \  
--with-faad="$(STAGING_DIR)/usr" \  
--with-tremor=no \  
 
endif  
 
ifeq ($(BUILD_VARIANT),mini)  
 
# oggflac is not compatible with tremor  
CONFIGURE_ARGS += \  
--disable-aac \  
--disable-alsa \  
--disable-audiofile \  
--disable-fifo \  
--disable-ffmpeg \  
--disable-id3 \  
--disable-lastfm \  
--disable-mms \  
--disable-oggflac \  
--disable-pipe-output \  
--disable-recorder-output \  
--disable-shout \  
--disable-sndfile \  
--disable-vorbis \  
--disable-vorbis-encoder \  
--with-tremor=yes \  
 
endif  
 
define Package/mpd/install  
$(INSTALL_DIR) $(1)/usr/bin  
$(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/  
$(INSTALL_DIR) $(1)/etc  
$(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf  
$(INSTALL_DIR) $(1)/etc/init.d  
$(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd  
endef  
 
define Package/mpd-full/install  
$(call Package/mpd/install,$1)  
$(INSTALL_DIR) $(1)/etc/avahi/services  
$(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/  
endef  
 
define Package/mpd-mini/install  
$(call Package/mpd/install,$1)  
endef  
 
$(eval $(call BuildPackage,mpd-full))  
$(eval $(call BuildPackage,mpd-mini))  
 
#!/bin/sh /etc/rc.common  
# Copyright (C) 2007-2011 OpenWrt.org  
 
START=93  
 
start() {  
#create mpd directories  
pld=`grep ^playlist_directory /etc/mpd.conf | cut -d "\"" -f 2 | sed "s/~/\/root/g"`  
if [ ! -d $pld ]; then  
mkdir -m 0755 -p $pld  
fi  
 
# Set the initial volume to something manageable  
[ -x /usr/bin/amixer ] && /usr/bin/amixer set PCM 40  
 
if [ -x /bin/nice ]; then  
# This has real-time constraints, so let's at least tell the OS  
# that this should have higher priority to avoid skipping  
# when doing other things in the background.  
nice -n -10  
fi  
 
service_start /usr/bin/mpd  
}  
 
stop() {  
service_stop /usr/bin/mpd  
}  
 
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->  
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">  
<service-group>  
<name replace-wildcards="yes">Music Player Daemon on %h</name>  
<service>  
<type>_mpd._tcp</type>  
<port>6600</port>  
</service>  
</service-group>  
 
--- a/configure  
+++ b/configure  
@@ -8803,6 +8803,7 @@ fi  
# Check whether --with-faad was given.  
if test "${with_faad+set}" = set; then :  
withval=$with_faad;  
+ faad_prefix=$with_faad;  
else  
faad_prefix=""  
fi  
--- a/src/input/file_input_plugin.c  
+++ b/src/input/file_input_plugin.c  
@@ -79,10 +79,6 @@ input_file_open(const char *filename, GE  
return false;  
}  
 
-#ifdef POSIX_FADV_SEQUENTIAL  
- posix_fadvise(fd, (off_t)0, st.st_size, POSIX_FADV_SEQUENTIAL);  
-#endif  
-  
fis = g_new(struct file_input_stream, 1);  
input_stream_init(&fis->base, &input_plugin_file, filename);  
 
 
comments