enable $(FPIC) for a few more packages
[openwrt/svn-archive/archive.git] / libs / libao / 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:=libao
12 PKG_VERSION:=0.8.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
17 PKG_MD5SUM:=12e136a4c0995068ff134997c84421ed
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libao
22 SECTION:=libs
23 DEPENDS:=+alsa-lib
24 CATEGORY:=Libraries
25 TITLE:=A cross platform audio library
26 URL:=http://www.xiph.org/ao/
27 endef
28
29 define Package/libao/description
30 Libao is a cross-platform audio library that allows programs to
31 output audio using a simple API on a wide variety of platforms.
32 endef
33
34 CONFIGURE_ARGS += \
35 --enable-shared \
36 --enable-static \
37 --disable-esd \
38 --disable-arts \
39 --disable-nas \
40 --disable-polyp
41
42 TARGET_CFLAGS += $(FPIC)
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
55 mkdir -p $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
57 endef
58
59 define Package/libao/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libao))