Odp: Kompilacja wlasnej paczki
i zobacz co z tego będzie ciekawego.
wkleilem wszystkie trzy jak pisales po kolesji i rezultat chyba taki sam ![]()
then mv -f ".deps/src_mpd-vorbis_plugin.Tpo" ".deps/src_mpd-vorbis_plugin.Po"; else rm -f ".deps/src_mpd-vorbis_plugin.Tpo"; exit 1; fi
In file included from /openwrt/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/glib-2.0/glib/gasyncqueue.h:34,
from /openwrt/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/glib-2.0/glib.h:34,
from src/decoder/../conf.h:24,
from src/decoder/../decoder_api.h:35,
from src/decoder/_ogg_common.h:27,
from src/decoder/vorbis_plugin.c:22:
/openwrt/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/glib-2.0/glib/gthread.h: In function 'g_once_init_enter':
/openwrt/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/glib-2.0/glib/gthread.h:344: warning: cast discards qualifiers from pointer target type
src/decoder/vorbis_plugin.c: In function 'vorbis_tag_dup':
src/decoder/vorbis_plugin.c:386: error: 'OV_CALLBACKS_STREAMONLY' undeclared (first use in this function)
src/decoder/vorbis_plugin.c:386: error: (Each undeclared identifier is reported only once
src/decoder/vorbis_plugin.c:386: error: for each function it appears in.)
make[4]: *** [src_mpd-vorbis_plugin.o] Error 1
make[4]: Leaving directory `/openwrt/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/mpd-0.15.3'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/openwrt/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/mpd-0.15.3'
make[2]: *** [/openwrt/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/mpd-0.15.3/.built] Error 2
make[2]: Leaving directory `/openwrt/trunk/feeds/packages/sound/mpd'
make[1]: *** [package/feeds/packages/mpd/compile] Error 2
make[1]: Leaving directory `/openwrt/trunk'
make: *** [package/feeds/packages/mpd-compile] Error 2;/
vobis i ogg sie kompiluje a mpd pakiet nie, oto makefile do mpd
#
# Copyright (C) 2007-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:=mpd
PKG_VERSION:=0.15.3
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://sunet.dl.sourceforge.net/project/musicpd/mpd/0.15.3
#PKG_MD5SUM:=eec9f5642d4a9c59a0df0a458def3505
include $(INCLUDE_DIR)/package.mk
define Package/mpd
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libpthread +glib2 +libmms +libcurl
TITLE:=Music Player Daemon
URL:=http://www.musicpd.org/
endef
define Package/mpd/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.
endef
define Package/mpd/conffiles
/etc/mpd.conf
endef
ifndef CONFIG_PACKAGE_kmod-sound-core
EXTRA_CONFIG_PARAM:=--disable-alsa
endif
CONFIGURE_VARS += \
CURL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto -lcurl" \
CURL_CFLAGS="-I$(STAGING_DIR)/usr/include" \
ID3TAG_LIBS="$(TARGET_LDFLAGS) -lz -lid3tag" \
ID3TAG_CFLAGS="$(TARGET_CPPFLAGS)" \
FLAC_LIBS="$(TARGET_LDFLAGS) -lFLAC" \
FLAC_CFLAGS="-I$(STAGING_DIR)/usr/include/FLAC" \
MAD_LIBS="$(TARGET_LDFLAGS) -lmad" \
MAD_CFLAGS="$(TARGET_CPPFLAGS)" \
OGGVORBIS_LIBS="$(TARGET_LDLFAGS) -lvorbisidec" \
OGGVORBIS_CFLAGS="$(TARGET_CPPFLAGS)" \
GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
GLIB_LIBS="$(TARGET_LDLFAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -lglib-2.0 -lgthread-2.0 -pthread"
define Build/Configure
$(call Build/Configure/Default, \
$(EXTRA_CONFIG_PARAM) \
--disable-audiofile \
--disable-mpc \
--disable-aac \
--disable-lsr \
--disable-ao \
--disable-mvp \
--disable-lametest \
--disable-lame-encoder \
--enable-flac \
--enable-lastfm \
--enable-mms \
--with-tremor="$(STAGING_DIR)/usr/lib" \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/mpd/install
$(INSTALL_DIR) $(1)/etc
$(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(1)/etc/mpd.conf
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mpd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/mpd.init $(1)/etc/init.d/mpd
endef
$(eval $(call BuildPackage,mpd))