lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1371B)


      1 #
      2 # Copyright (C) 2011 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=libmpeg2
     11 PKG_VERSION:=0.5.1
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=libmpeg2-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=http://libmpeg2.sourceforge.net/files/
     16 PKG_MD5SUM:=0f92c7454e58379b4a5a378485bbd8ef
     17 
     18 PKG_INSTALL:=1
     19 
     20 include $(INCLUDE_DIR)/package.mk
     21 
     22 define Package/libmpeg2
     23   SECTION:=libs
     24   CATEGORY:=Libraries
     25   TITLE:=MPEG-1 & -2 decoding library
     26   URL:=http://libmpeg2.sourceforge.net/
     27   MAINTAINER:=W. Michael Petullo <mike@flyn.org>
     28 endef
     29 
     30 define Package/libmpeg2/decription
     31   Libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams
     32 endef
     33 
     34 CONFIGURE_ARGS += \
     35 	--disable-sdl \
     36 	--without-x \
     37 
     38 define Build/InstallDev
     39 	$(INSTALL_DIR) $(1)/usr/include
     40 	$(CP) \
     41 		$(PKG_INSTALL_DIR)/usr/include/mpeg2dec \
     42 		$(1)/usr/include/
     43 	$(INSTALL_DIR) $(1)/usr/lib
     44 	$(CP) \
     45 		$(PKG_INSTALL_DIR)/usr/lib/libmpeg2{,convert}.{a,so*} \
     46 		$(1)/usr/lib/
     47 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     48 	$(INSTALL_DATA) \
     49 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpeg2{,convert}.pc \
     50 		$(1)/usr/lib/pkgconfig/
     51 endef
     52 
     53 define Package/libmpeg2/install
     54 	$(INSTALL_DIR) $(1)/usr/lib
     55 	$(CP) \
     56 		$(PKG_INSTALL_DIR)/usr/lib/libmpeg2{,convert}.so.* \
     57 		$(1)/usr/lib/
     58 endef
     59 
     60 $(eval $(call BuildPackage,libmpeg2))