2 # Copyright (C) 2008-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://downloads.xiph.org
/releases
/ogg
/
16 PKG_HASH
:=c4d91be36fc8e54deae7575241e03f4211eb102afb3fc0775fbbc1b740016705
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
32 URL
:=https
://xiph.org
/ogg
/
36 define Package
/libogg
/description
37 Ogg project codecs use the Ogg bitstream format to arrange the raw
,
38 compressed bitstream into a more robust
, useful form. For example
,
39 the Ogg bitstream makes seeking
, time stamping and error recovery
40 possible
, as well
as mixing several sepearate
, concurrent media
41 streams into a single physical bitstream.
44 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
46 define Build
/InstallDev
47 $(INSTALL_DIR
) $(1)/usr
/include/ogg
/
48 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/ogg
/* $(1)/usr
/include/ogg
/
49 $(INSTALL_DIR
) $(1)/usr
/lib
/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} $(1)/usr
/lib
/
51 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
/
52 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
53 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
/
54 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* $(1)/usr
/share
/aclocal
/
57 define Package
/libogg
/install
58 $(INSTALL_DIR
) $(1)/usr
/lib
/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libogg.so.
* $(1)/usr
/lib
/
62 $(eval
$(call BuildPackage
,libogg
))