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
:=@GNU
/osip
16 PKG_MD5SUM
:=756423628683c07f817432f046a26516
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
/
36 define Package
/libosip2
/description
37 GNU oSIP library
, a Session Initiation Protocol
(SIP
) implementation.
40 TARGET_CFLAGS
+= $(FPIC
)
57 define Build
/InstallDev
58 $(INSTALL_DIR
) $(1)/usr
/include
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/osip
{,parser
}2 $(1)/usr
/include/
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.
{a
,so
*} $(1)/usr
/lib
/
64 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libosip2.
pc $(1)/usr
/lib
/pkgconfig
/
68 define Package
/libosip2
/install
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.so
$(PKG_INSTALL_DIR
)/usr
/lib
/libosip
{,parser
}2.so.
* $(1)/usr
/lib
/
73 $(eval
$(call BuildPackage
,libosip2
))