1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
8 PKG_SOURCE_URL
:=https
://libbsd.freedesktop.org
/releases
9 PKG_HASH
:=9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261
11 PKG_LICENSE
:=BSD-4-Clause
12 PKG_LICENSE_FILES
:=COPYING
16 PKG_BUILD_DEPENDS
:= libmd
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=common BSD library
28 define Package
/libbsd
/description
29 This library provides useful functions commonly found on BSD systems
, and lacking on others like GNU systems
, thus making it easier to port projects with strong BSD origins
, without needing to embed the same code over and over again on each project.
32 define Build
/InstallDev
33 $(INSTALL_DIR
) $(1)/usr
/lib
34 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
35 $(INSTALL_DIR
) $(1)/usr
/include
36 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbsd.
{la
,so
*} $(1)/usr
/lib
/
37 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libbsd
*.
pc $(1)/usr
/lib
/pkgconfig
/
38 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
41 define Package
/libbsd
/install
42 $(INSTALL_DIR
) $(1)/usr
/lib
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbsd.so.
* $(1)/usr
/lib
/
46 $(eval
$(call BuildPackage
,libbsd
))