2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)pre17.tgz
16 PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
17 PKG_MD5SUM:=cc860f77270cf3b881f8ccd42d2d0238
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libspandsp
26 TITLE:=spandsp library
30 CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
31 TARGET_CFLAGS += $(FPIC)
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/
39 define Package/libspandsp/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
44 $(eval $(call BuildPackage,libspandsp))