Fix compilation when modules are selected or not, should fix buildbot spam :p
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=flac
12 PKG_VERSION:=1.1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/flac
17 PKG_MD5SUM:=2bfc127cdda02834d0491ab531a20960
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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:=ttp://flac.sourceforge.net/
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \
36 $(TARGET_CONFIGURE_OPTS) \
37 RELEASE_CFLAGS="$(TARGET_CFLAGS)" \
38 libFLAC
39 endef
40
41 define Build/InstallDev
42 mkdir -p $(STAGING_DIR)/usr/include
43 $(CP) $(PKG_BUILD_DIR)/include/FLAC $(STAGING_DIR)/usr/include/
44 mkdir -p $(STAGING_DIR)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.{a,so} $(STAGING_DIR)/usr/lib/
46 endef
47
48 define Build/UninstallDev
49 rm -rf \
50 $(STAGING_DIR)/usr/include/FLAC \
51 $(STAGING_DIR)/usr/lib/libFLAC.{a,so}
52 endef
53
54 define Package/libflac/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libflac))