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
:=f4725916c22cf514969efb15c3c207233d64739383f7d42956038b78f6cae8c8
22 PKG_LICENSE
:=LGPL-2.1
+
23 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libosip2
31 TITLE
:=GNU oSIP library
32 URL
:=http
://www.gnu.org
/software
/osip
/
37 define Package
/libosip2
/description
38 GNU oSIP library
, a Session Initiation Protocol
(SIP
) implementation.
41 # toolchain __arc__ define conflicts with libosip2 source
42 TARGET_CFLAGS
+= $(if
$(CONFIG_arc
),-U__arc__
)
47 --disable-silent-rules \
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/osip
{,parser
}2 $(1)/usr
/include/
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.
{a
,so
*} $(1)/usr
/lib
/
65 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libosip2.
pc $(1)/usr
/lib
/pkgconfig
/
69 define Package
/libosip2
/install
70 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.so.
$(ABI_VERSION
)* $(1)/usr
/lib
/
74 $(eval
$(call BuildPackage
,libosip2
))