[packages] copy/modify openntpd's postinst code for ntpd, ntpdate and ntp-utils
[openwrt/svn-archive/archive.git] / libs / libvorbisidec / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libvorbisidec
12 PKG_VERSION:=1.0.2+svn14261
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
17 PKG_MD5SUM:=bc617d4af1cd74b38d7c51451dd6eff0
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libvorbisidec
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=A fixed-point Ogg/Vorbis decoder library
30 URL:=http://wiki.xiph.org/index.php/Tremor
31 endef
32
33 define Package/libvorbisidec/description
34 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
35 It also has libogg built-in. It is suitable as a replacement for
36 libvorbis and libogg in tremor-aware applications.
37 Tremor is a decoder only.
38 endef
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); ./autogen.sh );
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 )
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Build/InstallDev
55 mkdir -p $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
57 mkdir -p $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
59 endef
60
61 define Package/libvorbisidec/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libvorbisidec))