2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
16 PKG_MD5SUM:=897d839516a6d4edb20397d4757a7ca3
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libspandsp
28 TITLE:=spandsp library
30 MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
33 TARGET_CFLAGS += $(FPIC)
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/lib
37 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib/
39 $(INSTALL_DIR) $(1)/usr/include
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/include/spandsp
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
45 $(INSTALL_DIR) $(1)/usr/include/spandsp/private
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
52 define Package/libspandsp/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
57 $(eval $(call BuildPackage,libspandsp))