2 # Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
:=https
://github.com
/freeswitch
/spandsp.git
14 PKG_SOURCE_DATE
=2020-08-14
15 PKG_SOURCE_VERSION
:=6ec23e5a7e411a22d59e5678d12c4d2942c4a4b6
17 PKG_MIRROR_HASH
:=fcfa13576a25ff27e3746c3db30de89d2afceb963072b352a34e7a4a9f492ae5
23 PKG_LICENSE
:=LGPL-2.1
-or-later GPL-2.0
-or-later
24 PKG_LICENSE_FILES
:=COPYING
26 Jiri Slachta
<jiri@slachta.eu
> \
27 Sebastian Kemper
<sebastian_ml@gmx.net
>
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/libspandsp3
35 TITLE
:=spandsp3 library
36 DEPENDS
:=+libjpeg-turbo
+libtiff
37 URL
:=https
://github.com
/freeswitch
/spandsp
41 # Use fixed point math when soft float support is enabled for target devices.
42 ifeq ($(CONFIG_SOFT_FLOAT
),y
)
47 define Build
/InstallDev
49 $(1)/usr
/lib
/spandsp3
/{include/spandsp
/private
,lib
}
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspandsp
* \
52 $(1)/usr
/lib
/spandsp3
/lib
54 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp.h \
55 $(1)/usr
/lib
/spandsp3
/include
57 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp
/*.h \
58 $(1)/usr
/lib
/spandsp3
/include/spandsp
60 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/spandsp
/private
/*.h \
61 $(1)/usr
/lib
/spandsp3
/include/spandsp
/private
63 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
64 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/spandsp.
pc \
65 $(1)/usr
/lib
/pkgconfig
/spandsp3.
pc
68 define Package
/libspandsp3
/install
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libspandsp.so.
$(ABI_VERSION
)* \
74 $(eval
$(call BuildPackage
,libspandsp3
))