Re: [OpenWrt-Devel] [PATCH 1/2] new package: libmpeg2

2011-10-23 Thread Nico
Added libmpeg2 (with minor modifications and a patch to disable
altivec on powerpc) in [28534].

Thanks!
--
-{Nico}
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] new package: libmpeg2

2011-10-08 Thread W. Michael Petullo
This series of packages:

1) Adds a new package, libmpeg2.
2) Enables the mpeg2dec plugin in gst-plugins-ugly

Signed-off-by: W. Michael Petullo 

Index: libs/libmpeg2/Makefile
===
--- libs/libmpeg2/Makefile  (revision 0)
+++ libs/libmpeg2/Makefile  (revision 0)
@@ -0,0 +1,60 @@
+#
+# Copyright (C) 2009-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# This Makefile is a skeleton
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libmpeg2
+PKG_VERSION:=0.5.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=libmpeg2-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://libmpeg2.sourceforge.net/files/
+PKG_MD5SUM:=0f92c7454e58379b4a5a378485bbd8ef
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libmpeg2-$(PKG_VERSION)
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libmpeg2
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=libmpeg2
+  URL:=http://libmpeg2.sourceforge.net/
+  MAINTAINER:=W. Michael Petullo 
+endef
+
+define Package/libmpeg2/decription
+  Libmpeg2 is a library for decoding mpeg-2 and mpeg-1 video streams
+endef
+
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include/
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/include/mpeg2dec/ \
+   $(1)/usr/include/
+   $(INSTALL_DIR) $(1)/usr/lib/
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/*.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/libmpeg2/install
+   $(INSTALL_DIR) $(1)/usr/lib/
+   $(CP) \
+   $(PKG_INSTALL_DIR)/usr/lib/*.so* \
+   $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libmpeg2))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel