lede-packages-rs

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

Makefile (1813B)


      1 #
      2 # Copyright (C) 2008-2012 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:=libtheora
     11 PKG_VERSION:=1.1.1
     12 PKG_RELEASE:=1
     13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
     14 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/
     15 PKG_MD5SUM:=292ab65cedd5021d6b7ddd117e07cd8e
     16 
     17 PKG_LICENSE:=BSD-3-Clause
     18 PKG_LICENSE_FILES:=COPYING LICENSE
     19 
     20 PKG_FIXUP:=autoreconf
     21 PKG_BUILD_DEPENDS:=libvorbis
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 PKG_INSTALL=1
     26 
     27 define Package/libtheora
     28   SECTION:=libs
     29   CATEGORY:=Libraries
     30   TITLE:=libtheora
     31   URL:=http://xiph.org/theora/
     32   MAINTAINER:=W. Michael Petullo <mike@flyn.org>
     33   DEPENDS:=+libogg
     34 endef
     35 
     36 define Package/libtheora/description
     37 Theora is Xiph.Org's first publicly released video codec, intended
     38 for use within the Foundation's Ogg multimedia streaming system.
     39 Theora is derived directly from On2's VP3 codec; Currently the
     40 encoders are nearly identical, but Theora will make use of new
     41 features supported by the decoder to improve over what is
     42 is possible with VP3.
     43 endef
     44 
     45 define Build/Configure
     46 	$(call Build/Configure/Default, \
     47 		--disable-examples \
     48 		--disable-oggtest \
     49 		--disable-vorbistest \
     50 		--disable-sdltest \
     51 	)
     52 endef
     53 
     54 define Build/InstallDev
     55 	$(INSTALL_DIR) $(1)/usr/include/theora/
     56 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/
     57 	$(INSTALL_DIR) $(1)/usr/lib/
     58 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
     59 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
     60 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
     61 endef
     62 
     63 define Package/libtheora/install
     64 	$(INSTALL_DIR) $(1)/usr/lib/
     65 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
     66 endef
     67 
     68 $(eval $(call BuildPackage,libtheora))