packages: Update s-lang library to 2.2.4
[openwrt/svn-archive/archive.git] / libs / spandsp / Makefile
1 #
2 # Copyright (C) 2010-2012 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_VERSION_SUFFIX:=pre17
14 PKG_RELEASE:=2
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VERSION_SUFFIX).tgz
17 PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
18 PKG_MD5SUM:=cc860f77270cf3b881f8ccd42d2d0238
19
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libspandsp
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=spandsp library
30 DEPENDS:=+libtiff
31 endef
32
33 TARGET_CFLAGS += $(FPIC)
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/{lib,include}
37 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib
38 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
39 endef
40
41 define Package/libspandsp/install
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
44 endef
45
46 $(eval $(call BuildPackage,libspandsp))