2014-07-06 10:46:10 +02:00
|
|
|
#
|
2014-07-06 11:10:23 +02:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2014-07-06 10:46:10 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gdbm
|
2021-09-19 09:37:43 +02:00
|
|
|
PKG_VERSION:=1.21
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=2
|
2014-07-06 10:46:10 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/gdbm
|
2021-09-19 09:37:43 +02:00
|
|
|
PKG_HASH:=b0b7dbdefd798de7ddccdd8edf6693a30494f7789777838042991ef107339cc2
|
2014-07-06 10:46:10 +02:00
|
|
|
|
2014-07-06 10:54:33 +02:00
|
|
|
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
|
2019-07-02 22:07:52 +02:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-07-06 10:46:10 +02:00
|
|
|
|
2021-05-19 16:16:43 +02:00
|
|
|
PKG_INSTALL:=2
|
2014-07-06 10:46:10 +02:00
|
|
|
PKG_BUILD_PARALLEL:=0
|
2016-01-21 00:38:58 +01:00
|
|
|
|
2014-07-06 10:46:10 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libgdbm
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU database manager
|
2019-07-02 22:07:52 +02:00
|
|
|
URL:=https://www.gnu.org/software/gdbm/
|
2014-07-06 10:46:10 +02:00
|
|
|
endef
|
|
|
|
|
2014-07-06 11:09:34 +02:00
|
|
|
define Package/libgdbm/description
|
|
|
|
GNU database manager library
|
|
|
|
GNU dbm is a set of database routines that use extendible hashing and
|
|
|
|
works similar to the standard UNIX dbm routines.
|
|
|
|
endef
|
|
|
|
|
2014-07-06 10:46:10 +02:00
|
|
|
CONFIGURE_ARGS += \
|
2021-05-19 16:16:43 +02:00
|
|
|
--enable-libgdbm-compat \
|
2022-10-26 13:59:07 +02:00
|
|
|
--enable-shared \
|
|
|
|
--without-readline
|
2014-07-06 10:46:10 +02:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
|
|
|
BINOWN=`id -u` \
|
|
|
|
BINGRP=`id -g` \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2021-05-19 16:16:43 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/{gdbm,ndbm}.h $(1)/usr/include/
|
2014-07-06 10:46:10 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-05-19 16:16:43 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
|
2014-07-06 10:46:10 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgdbm/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
|
2021-05-19 16:16:43 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
|
2014-07-06 10:46:10 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libgdbm))
|