kumquat-buildroot/package/skalibs/skalibs.mk
Joachim Wiberg 0f7bfc8081 package/skalibs: bump to v2.12.0.1
Summary of changes:

New:
 - New djbunix functions: waitn_posix(), waitn_reap_posix()
 - New unix-transactional.h function: opendir_at.
 - New skalibs/posixplz.h function: munmap_void().
 - random functions now have an early version, to use when randomness is
   required before the generator can be seeded (i.e. in programs running in
   the very early boot).
 - envdir_internal() now has a SKALIBS_ENVDIR_NOCLAMP option allowing
   reading of unlimited-size variables.
 - fd_close() now chooses to adapt to Linux's close() behaviour (closing
   the fd on EINTR) over the HP-UX one (not closing it). Destructors like
   close() being allowed to fail has always been a mistake in the
   specification and a programming nightmare, making it impossible to
   behave correctly on all systems, but apparently standardization efforts
   are on the way and the Linux behaviour seems to be the chosen one.

Removed:
 - libbiguint removed.
 - Obsolete skalibs/environ.h and skalibs/getpeereid.h headers removed.
 - rc4 and md5 functions removed.
 - iobuffer removed. fd_cat() and fd_catn() changed signatures.
 - All signal functions entirely reworked; cruft removed.
 - The unsafe cdb_successor() API has been removed.
 - random_init() and random_finish() removed, as well as random_char().

Renamed APIs and type:
 - random_string() renamed to random_buf().
 - All *_t types renamed without the _t suffix, to preserve POSIX namespace.
 - subgetopt() renamed to lgetopt().
 - skalibs/cdb_make.h renamed to skalibs/cdbmake.h;
   cdbmake functions now return 1 on success and 0 on failure.
 - skalibs/cdb.h redesigned to remove reader state from the cdb structure.

License hash updated due to copyright year change.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-10-30 22:34:59 +01:00

56 lines
1.3 KiB
Makefile

################################################################################
#
# skalibs
#
################################################################################
SKALIBS_VERSION = 2.12.0.1
SKALIBS_SITE = http://skarnet.org/software/skalibs
SKALIBS_LICENSE = ISC
SKALIBS_LICENSE_FILES = COPYING
SKALIBS_INSTALL_STAGING = YES
SKALIBS_CONF_OPTS = \
--prefix=/ \
--with-default-path=/sbin:/usr/sbin:/bin:/usr/bin \
--with-sysdep-devurandom=yes \
$(SHARED_STATIC_LIBS_OPTS)
define SKALIBS_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(SKALIBS_CONF_OPTS))
endef
define SKALIBS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
define SKALIBS_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
rm -rf $(TARGET_DIR)/usr/lib/skalibs
endef
define SKALIBS_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
endef
HOST_SKALIBS_CONF_OPTS = \
--prefix=$(HOST_DIR) \
--disable-static \
--enable-shared \
--disable-allstatic
define HOST_SKALIBS_CONFIGURE_CMDS
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_SKALIBS_CONF_OPTS))
endef
define HOST_SKALIBS_BUILD_CMDS
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
endef
define HOST_SKALIBS_INSTALL_CMDS
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
endef
$(eval $(generic-package))
$(eval $(host-generic-package))