From bdfc6c1134e2db1ef0f6bd7f997523bf79e49967 Mon Sep 17 00:00:00 2001 From: kyak Date: Fri, 25 Feb 2011 16:19:00 +0300 Subject: [PATCH] mpg123 and libmpg123 initial port --- mpg123/Makefile | 91 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 mpg123/Makefile diff --git a/mpg123/Makefile b/mpg123/Makefile new file mode 100644 index 0000000..acd9ac4 --- /dev/null +++ b/mpg123/Makefile @@ -0,0 +1,91 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=mpg123 +PKG_VERSION:=1.13.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://www.mpg123.de/download/ +PKG_MD5SUM:=7cb959877d205f89215a32bf446f5737 +PKG_FIXUP:=libtool + +include $(INCLUDE_DIR)/package.mk + +PKG_INSTALL=1 + +define Package/mpg123/Default + URL:=http://www.mpg123.de + DEPENDS:=@BUILD_PATENTED +endef + +define Package/libmpg123 + $(call Package/mpg123/Default) + SECTION:=libs + CATEGORY:=Libraries + TITLE:=fast console mpeg audio decoder library +endef + +define Package/mpg123 + $(call Package/mpg123/Default) + SECTION:=utils + CATEGORY:=Utilities + TITLE:=fast console mpeg audio player + DEPENDS+=+libmpg123 +endef + +define Build/Configure + $(call Build/Configure/Default, \ + --enable-shared \ + --enable-static \ + --with-cpu=generic_nofpu \ + ) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/include/mpg123.h \ + $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \ + $(1)/usr/lib/ + + $(INSTALL_DIR) $(1)/usr/lib/mpg123 + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \ + $(1)/usr/lib/mpg123 + + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \ + $(1)/usr/lib/pkgconfig +endef + +define Package/libmpg123/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libmpg123.so* \ + $(1)/usr/lib/ +endef + +define Package/mpg123/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/bin/mpg123 \ + $(1)/usr/bin + + $(INSTALL_DIR) $(1)/usr/lib/mpg123 + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/mpg123/* \ + $(1)/usr/lib/mpg123 +endef + +$(eval $(call BuildPackage,libmpg123)) +$(eval $(call BuildPackage,mpg123))