mirror of
https://github.com/openwrt/packages.git
synced 2026-07-12 22:44:28 +04:00
c3cc59102c
Changelog: Changes from 1.5 to 1.5.1 ------------------------- * Rename public register definitions on x86 and x86_64 to avoid clashing with glibc definitions when built in freestanding mode. Patch contributed by Daan De Meyer. Changes from 1.4 to 1.5 ----------------------- * Workaround various header compatibility issues in glibc and bionic. * Allow ppc64 target to be built in freestanding mode. Changes from 1.3.3 to 1.4 ------------------------- * Add hard-float support to most architectures where relevant. Some patches contributed by Richard Campbell. Changes from 1.3.2 to 1.3.3 --------------------------- * Use `bl` instruction instead of explicit GOT lookup for `exit` in 64-bit PowerPC assembly. * Fix installation path for standalone libucontext headers. Patch contributed by Marian Buschsieweke. * Fix missing includes for freestanding builds. Patch contributed by David Leeds. Makefile: Disabled documents. Added glibc supports, and remove hardcoded musl dependency. Put test_libucontext_posix only available in musl runtime. Build system: x86/64 Build-tested: x86/64-glibc Build-tested: x86/64-musl Run-tested: x86/64-glibc Signed-off-by: Aditya Nugraha <vortexilation@gmail.com>
75 lines
2.0 KiB
Makefile
75 lines
2.0 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libucontext
|
|
PKG_VERSION:=1.5.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/kaniini/libucontext.git
|
|
PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_MIRROR_HASH:=6c5f756f32418d8db52b715e1837e46ea2d94926ba93e74d202e2cf891eda1f0
|
|
|
|
PKG_MAINTAINER:=Volker Christian <me@vchrist.at>
|
|
PKG_LICENSE:=ISC
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/libucontext
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=libucontext is a library which provides the ucontext.h C API
|
|
URL:=https://github.com/kaniini/libucontext
|
|
endef
|
|
|
|
define Package/libucontext-tests
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Test applications for libucontext
|
|
URL:=https://github.com/kaniini/libucontext
|
|
DEPENDS:=libucontext
|
|
endef
|
|
|
|
define Package/libucontext/description
|
|
This package is a development package aimed to be linked to
|
|
libraries/applications which need the SYS-V ucontext API.
|
|
endef
|
|
|
|
MESON_ARGS += \
|
|
-Ddocs=false
|
|
|
|
ifneq ($(CONFIG_USE_MUSL),)
|
|
MESON_ARGS += \
|
|
-Dfreestanding=false
|
|
else ifneq ($(CONFIG_USE_GLIBC),)
|
|
MESON_ARGS += \
|
|
-Dfreestanding=true \
|
|
-Dexport_unprefixed=false
|
|
endif
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libucontext $(1)/usr/include/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucontext* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libucontext.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libucontext/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucontext*.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libucontext-tests/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
ifneq ($(CONFIG_USE_MUSL),)
|
|
$(INSTALL_BIN) $(MESON_BUILD_DIR)/test_libucontext_posix $(1)/usr/bin/
|
|
endif
|
|
$(INSTALL_BIN) $(MESON_BUILD_DIR)/test_libucontext $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libucontext))
|
|
$(eval $(call BuildPackage,libucontext-tests))
|