Added support httpd user-agent, IP address binding, closes #265 and #108
[openwrt.git] / package / flac / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=flac
6 PKG_VERSION:=1.1.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2bfc127cdda02834d0491ab531a20960
9
10 PKG_SOURCE_URL:=@SF/flac
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBFLAC,libflac,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 rm -rf $(PKG_INSTALL_DIR)
26 mkdir -p $(PKG_INSTALL_DIR)
27 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lite \
28 $(TARGET_CONFIGURE_OPTS) \
29 RELEASE_CFLAGS="$(TARGET_CFLAGS)" \
30 libFLAC
31 touch $@
32
33 $(IPKG_LIBFLAC):
34 install -m0755 -d $(IDIR_LIBFLAC)/usr/lib
35 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(IDIR_LIBFLAC)/usr/lib/
36 $(RSTRIP) $(IDIR_LIBFLAC)
37 $(IPKG_BUILD) $(IDIR_LIBFLAC) $(PACKAGE_DIR)
38
39 $(STAGING_DIR)/usr/lib/libFLAC.so: $(PKG_BUILD_DIR)/.built
40 mkdir -p $(STAGING_DIR)/usr/include
41 $(CP) $(PKG_BUILD_DIR)/include/FLAC $(STAGING_DIR)/usr/include/
42 mkdir -p $(STAGING_DIR)/usr/lib
43 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.a $(STAGING_DIR)/usr/lib/
44 $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(STAGING_DIR)/usr/lib/
45 touch $@
46
47 install-dev: $(STAGING_DIR)/usr/lib/libFLAC.so
48
49 uninstall-dev:
50 rm -rf \
51 $(STAGING_DIR)/usr/include/FLAC \
52 $(STAGING_DIR)/usr/lib/libFLAC.a \
53 $(STAGING_DIR)/usr/lib/libFLAC.so \
54
55 compile-targets: install-dev
56 clean-targets: uninstall-dev
57
58 mostlyclean:
59 -$(MAKE) -C $(PKG_BUILD_DIR) clean
60 rm -f $(PKG_BUILD_DIR)/.built
61
This page took 0.04447 seconds and 5 git commands to generate.