libv4l: update to 1.22.1
[feed/packages.git] / libs / libvorbis / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libvorbis
9 PKG_VERSION:=1.3.7
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
14 PKG_HASH:=b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17 PKG_LICENSE:=BSD-3-Clause
18 PKG_LICENSE_FILES:=COPYING
19 PKG_CPE_ID:=cpe:/a:xiph.org:libvorbis
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/libvorbis
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=libvorbis
28 URL:=http://xiph.org/vorbis/
29 DEPENDS:=+libogg
30 endef
31
32 define Package/libvorbis/description
33 Vorbis is a general purpose audio and music encoding format
34 contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
35 MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
36 proprietary formats such as RealAudio G2 and Windows' flavor of the
37 month), the Vorbis CODEC specification belongs to the public domain.
38 All the technical details are published and documented, and any
39 software entity may make full use of the format without license
40 fee, royalty or patent concerns.
41 endef
42
43 CMAKE_OPTIONS += \
44 -DBUILD_SHARED_LIBS=ON
45
46 ifneq ($(findstring arm,$(CONFIG_ARCH)),)
47 TARGET_CFLAGS += -flto
48 TARGET_CXX_FLAGS += -flto
49 TARGET_LDFLAGS += -flto
50 endif
51
52 define Build/InstallDev
53 $(call Build/InstallDev/cmake,$(1))
54 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
55 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
56 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
57 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
58 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbis.pc
59 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbis.pc
60 endef
61
62 define Package/libvorbis/install
63 $(INSTALL_DIR) $(1)/usr/lib/
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libvorbis))