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 PKG_LICENSE
:=LGPL-2.1 GPL-2.0
23 PKG_LICENSE_FILES
:=COPYING
24 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libspandsp
32 TITLE
:=spandsp library
36 TARGET_CFLAGS
+= $(FPIC
)
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/usr
/lib
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspandsp
* $(1)/usr
/lib
/
42 $(INSTALL_DIR
) $(1)/usr
/include
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp.h
$(1)/usr
/include/
45 $(INSTALL_DIR
) $(1)/usr
/include/spandsp
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp
/*.h
$(1)/usr
/include/spandsp
/
48 $(INSTALL_DIR
) $(1)/usr
/include/spandsp
/private
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp
/private
/*.h
$(1)/usr
/include/spandsp
/private
/
51 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/spandsp.
pc $(1)/usr
/lib
/pkgconfig
/
55 define Package
/libspandsp
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspandsp
*so
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,libspandsp
))