lede-packages-rs

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

Makefile (1932B)


      1 #
      2 # Copyright (C) 2008-2015 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:=libvorbis
     11 PKG_VERSION:=1.3.5
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     15 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
     16 PKG_MD5SUM:=28cb28097c07a735d6af56e598e1c90f
     17 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
     18 
     19 PKG_LICENSE:=BSD-3-Clause
     20 PKG_LICENSE_FILES:=COPYING
     21 
     22 PKG_FIXUP:=autoreconf
     23 PKG_INSTALL:=1
     24 
     25 include $(INCLUDE_DIR)/package.mk
     26 
     27 define Package/libvorbis
     28   SECTION:=libs
     29   CATEGORY:=Libraries
     30   TITLE:=libvorbis
     31   URL:=http://xiph.org/vorbis/
     32   DEPENDS:=+libogg
     33 endef
     34 
     35 define Package/libvorbis/description
     36 Vorbis is a general purpose audio and music encoding format
     37 contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
     38 MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
     39 proprietary formats such as RealAudio G2 and Windows' flavor of the
     40 month), the Vorbis CODEC specification belongs to the public domain.
     41 All the technical details are published and documented, and any
     42 software entity may make full use of the format without license
     43 fee, royalty or patent concerns.
     44 endef
     45 
     46 CONFIGURE_ARGS+= \
     47 	--disable-oggtest \
     48 
     49 define Build/InstallDev
     50 	$(INSTALL_DIR) $(1)/usr/include/vorbis/
     51 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/
     52 	$(INSTALL_DIR) $(1)/usr/lib/
     53 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
     54 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
     55 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
     56 	$(INSTALL_DIR) $(1)/usr/share/aclocal/
     57 	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
     58 endef
     59 
     60 define Package/libvorbis/install
     61 	$(INSTALL_DIR) $(1)/usr/lib/
     62 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
     63 endef
     64 
     65 $(eval $(call BuildPackage,libvorbis))