mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2025-12-16 16:57:28 +00:00
PKG_NAME was lost during package migration from "packages" feed to "main" feed. Signed-off-by: Matthias Franck <matthias.franck@softathome.com> Link: https://github.com/openwrt/openwrt/pull/20662 Signed-off-by: Robert Marko <robimarko@gmail.com>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
include ../libxcrypt-common.mk
|
|
|
|
PKG_NAME:=libcrypt-compat
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libcrypt-compat/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libcrypt-compat
|
|
$(Package/libxcrypt/Default)
|
|
TITLE+= - libc compatibility
|
|
DEPENDS:=@USE_GLIBC
|
|
endef
|
|
|
|
Package/libcrypt-compat/description=$(Package/libxcrypt/description)
|
|
|
|
CONFIGURE_ARGS += \
|
|
--with-pic \
|
|
--enable-year2038 \
|
|
--disable-xcrypt-compat-files \
|
|
--enable-obsolete-api=glibc \
|
|
--enable-hashes=glibc
|
|
|
|
define Package/libcrypt-compat/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypt.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcrypt.{a,la,so*} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
# libcrypt.pc is symlink to libxcrypt.pc
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxcrypt.pc $(1)/usr/lib/pkgconfig/libcrypt.pc
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libcrypt-compat))
|