From: Roman Yeryomin <leroi.lists@gmail.com>
[packages.git] / libs / spandsp / Makefile
1 #
2 # Copyright (C) 2010 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=spandsp
12 PKG_VERSION:=0.0.6
13 PKG_RELEASE:=17
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)pre17.tgz
16 PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
17 PKG_MD5SUM:=cc860f77270cf3b881f8ccd42d2d0238
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libspandsp
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=spandsp library
27   DEPENDS:=+libtiff
28 endef
29
30 CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
31 TARGET_CFLAGS += $(FPIC)
32
33 define Build/InstallDev
34         $(INSTALL_DIR) $(1)/usr/{lib,include}
35         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib
36         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
37 endef
38
39 define Package/libspandsp/install
40         $(INSTALL_DIR) $(1)/usr/lib
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libspandsp))