2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=http
://downloads.xiph.org
/releases
/vorbis
/
14 PKG_HASH
:=b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b
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
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/cmake.mk
24 define Package
/libvorbis
28 URL
:=http
://xiph.org
/vorbis
/
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.
44 -DBUILD_SHARED_LIBS
=ON
46 ifneq ($(findstring arm
,$(CONFIG_ARCH
)),)
47 TARGET_CFLAGS
+= -flto
48 TARGET_CXX_FLAGS
+= -flto
49 TARGET_LDFLAGS
+= -flto
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
62 define Package
/libvorbis
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
/
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so.
* $(1)/usr
/lib
/
67 $(eval
$(call BuildPackage
,libvorbis
))