[packages] libflac: Upgrade to 1.2.1
[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 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libflac
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Free Lossless Audio Codec library
26 URL:=http://flac.sourceforge.net/
27 endef
28
29 define Build/Configure
30 $(call Build/Configure/Default, \
31 --disable-cpplibs \
32 --disable-sse \
33 --disable-3dnow \
34 --disable-altivec \
35 --disable-doxgen-docs \
36 --disable-local-xmms-plugin \
37 --disable-xmms-plugin \
38 --disable-ogg \
39 --disable-oggtest \
40 --disable-debug \
41 )
42 endef
43
44 TARGET_CFLAGS += $(FPIC)
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) \
49 $(PKG_INSTALL_DIR)/usr/include/FLAC \
50 $(1)/usr/include/
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/libFLAC.{a,so*,la} \
54 $(1)/usr/lib/
55 $(INSTALL_DATA) \
56 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
57 $(1)/usr/lib/pkgconfig/
58
59 $(INSTALL_DIR) $(1)/usr/share/aclocal/
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
62 $(1)/usr/share/aclocal/
63 endef
64
65 define Package/libflac/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libflac))