2 # Copyright (C) 2014 - 2018 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
:=@GNU
/osip
16 PKG_HASH
:=fe82fe841608266ac15a5c1118216da00c554d5006e2875a8ac3752b1e6adc79
18 PKG_LICENSE
:=LGPL-2.1
-or-later
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_CPE_ID
:=cpe
:/a
:gnu
:osip
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libosip2
32 TITLE
:=GNU oSIP library
33 URL
:=http
://www.gnu.org
/software
/osip
/
38 define Package
/libosip2
/description
39 GNU oSIP library
, a Session Initiation Protocol
(SIP
) implementation.
42 # toolchain __arc__ define conflicts with libosip2 source
43 TARGET_CFLAGS
+= $(if
$(CONFIG_arc
),-U__arc__
)
48 --disable-silent-rules \
59 define Build
/InstallDev
60 $(INSTALL_DIR
) $(1)/usr
/include
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/osip
{,parser
}2 $(1)/usr
/include/
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.
{a
,so
*} $(1)/usr
/lib
/
66 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libosip2.
pc $(1)/usr
/lib
/pkgconfig
/
70 define Package
/libosip2
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.so.
$(ABI_VERSION
)* $(1)/usr
/lib
/
75 $(eval
$(call BuildPackage
,libosip2
))