596ea64722b7d75701d4a77c1496186c0e679458
[openwrt/svn-archive/archive.git] / libs / flac / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=flac
11 PKG_VERSION:=1.1.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/flac
16 PKG_MD5SUM:=2bfc127cdda02834d0491ab531a20960
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libflac
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Free Lossless Audio Codec library
24 URL:=http://flac.sourceforge.net/
25 endef
26
27 define Build/Configure
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \
34 $(TARGET_CONFIGURE_OPTS) \
35 RELEASE_CFLAGS="$(TARGET_CFLAGS)" \
36 libFLAC
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include
41 $(CP) $(PKG_BUILD_DIR)/include/FLAC $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.{a,so} $(1)/usr/lib/
44 endef
45
46 define Package/libflac/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libflac))