libs/libpam: port some uclibc xdr code to yppasswd_xdr.c
[openwrt/svn-archive/archive.git] / libs / flac / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=flac
11 PKG_VERSION:=1.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/flac
16 PKG_MD5SUM:=
17 PKG_INSTALL:=1
18
19 PKG_FIXUP:=libtool
20 PKG_REMOVE_FILES:=autogen.sh aclocal.m4
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libflac
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Free Lossless Audio Codec library
28 URL:=http://flac.sourceforge.net/
29 endef
30
31 define Build/Configure
32 $(call Build/Configure/Default, \
33 --disable-cpplibs \
34 --disable-sse \
35 --disable-3dnow \
36 --disable-altivec \
37 --disable-doxgen-docs \
38 --disable-local-xmms-plugin \
39 --disable-xmms-plugin \
40 --disable-ogg \
41 --disable-oggtest \
42 --disable-debug \
43 )
44 endef
45
46 TARGET_CFLAGS += $(FPIC)
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include
50 $(CP) \
51 $(PKG_INSTALL_DIR)/usr/include/FLAC \
52 $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libFLAC.{a,so*,la} \
56 $(1)/usr/lib/
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
60
61 $(INSTALL_DIR) $(1)/usr/share/aclocal/
62 $(INSTALL_DATA) \
63 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
64 $(1)/usr/share/aclocal/
65 endef
66
67 define Package/libflac/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
70 endef
71
72 $(eval $(call BuildPackage,libflac))