2016-08-18 23:50:13 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# musl-compat-headers
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# No main site, just using extra downloads
|
|
|
|
MUSL_COMPAT_HEADERS_QUEUE_H = http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/queue.h?rev=1.70
|
|
|
|
|
|
|
|
MUSL_COMPAT_HEADERS_EXTRA_DOWNLOADS = $(MUSL_COMPAT_HEADERS_QUEUE_H)
|
|
|
|
|
2017-03-30 15:43:38 +02:00
|
|
|
MUSL_COMPAT_HEADERS_LICENSE = BSD-3-Clause, Public Domain or CC0
|
2016-08-18 23:50:13 +02:00
|
|
|
MUSL_COMPAT_HEADERS_LICENSE_FILES = queue.h cdefs.h
|
|
|
|
|
|
|
|
MUSL_COMPAT_HEADERS_ADD_TOOLCHAIN_DEPENDENCY = NO
|
|
|
|
|
|
|
|
# Only installs headers
|
|
|
|
MUSL_COMPAT_HEADERS_INSTALL_TARGET = NO
|
|
|
|
MUSL_COMPAT_HEADERS_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# Copying both headers so legal-info finds them (they are _LICENSE_FILES)
|
|
|
|
define MUSL_COMPAT_HEADERS_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(MUSL_COMPAT_HEADERS_DL_DIR)/$(notdir $(MUSL_COMPAT_HEADERS_QUEUE_H)) $(@D)/queue.h
|
2016-08-18 23:50:13 +02:00
|
|
|
$(INSTALL) -m 0644 -D $(MUSL_COMPAT_HEADERS_PKGDIR)/cdefs.h $(@D)/cdefs.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MUSL_COMPAT_HEADERS_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/queue.h \
|
|
|
|
$(STAGING_DIR)/usr/include/sys/queue.h
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/cdefs.h \
|
|
|
|
$(STAGING_DIR)/usr/include/sys/cdefs.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|