lede/package/libs/libbsd/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

2017-09-06 19:19:45 +08:00
include $(TOPDIR)/rules.mk
PKG_NAME:=libbsd
2020-07-02 23:30:56 +08:00
PKG_VERSION:=0.10.0
2017-09-06 19:19:45 +08:00
PKG_RELEASE:=1
2018-09-07 13:43:55 +08:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
2020-07-02 23:30:56 +08:00
PKG_HASH:=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887
2017-09-06 19:19:45 +08:00
PKG_LICENSE:=BSD-4-Clause
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
2020-07-02 23:30:56 +08:00
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
2017-09-06 19:19:45 +08:00
define Package/libbsd
SECTION:=libs
CATEGORY:=Libraries
TITLE:=common BSD library
2020-07-02 23:30:56 +08:00
ABI_VERSION:=0
2017-09-06 19:19:45 +08:00
endef
define Package/libbsd/description
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.
endef
define Build/InstallDev
2018-09-07 13:43:55 +08:00
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.{la,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbsd*.pc $(1)/usr/lib/pkgconfig/
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
2017-09-06 19:19:45 +08:00
endef
define Package/libbsd/install
2018-09-07 13:43:55 +08:00
$(INSTALL_DIR) $(1)/usr/lib
2020-07-02 23:30:56 +08:00
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbsd.so.* $(1)/usr/lib/
2017-09-06 19:19:45 +08:00
endef
$(eval $(call BuildPackage,libbsd))