[packages] mocp (#9419)
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jun 2011 13:15:02 +0000 (13:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Jun 2011 13:15:02 +0000 (13:15 +0000)
- make libmad depend on PATENTED flag
- use wide ncurses for proper utf-8 handling
- add missing deps
- remove extraneous deps

SVN-Revision: 27098

multimedia/mocp/Makefile

index 582b649..a95a64d 100644 (file)
@@ -9,6 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=moc
 PKG_VERSION:=2.4.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=ftp://ftp.daper.net/pub/soft/moc/stable/
@@ -24,7 +25,7 @@ include $(INCLUDE_DIR)/nls.mk
 define Package/moc
   SECTION:=sound
   CATEGORY:=Sound
-  DEPENDS:=+librt +libltdl +libcurl +libflac +libmad +libvorbis +libncurses +libid3tag $(ICONV_DEPENDS)
+  DEPENDS:=+libcurl +BUILD_PATENTED:libmad +libvorbis $(ICONV_DEPENDS) +alsa-utils +libid3tag +libflac +libsamplerate +PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses +libffmpeg
   TITLE:=Music On Console
 endef
 
@@ -34,6 +35,7 @@ endef
 
 define Build/Configure
        $(call Build/Configure/Default, \
+               $(if $(CONFIG_BUILD_PATENTED),,--without-mp3) \
                --enable-shared \
                --disable-static \
                --disable-debug \