diff options
author | Marcel Denia <naoir@gmx.net> | 2014-07-06 10:46:10 +0200 |
---|---|---|
committer | Marcel Denia <naoir@gmx.net> | 2014-07-06 10:53:00 +0200 |
commit | 40a5ed3d9963fbbfb466da5f66c94707c74ef4a2 (patch) | |
tree | 85c60d7a83682ae9dc099cfc68583dcb68ba6c65 /libs/gdbm | |
parent | 05b3e9c0e0a59141da783fcf921e3a67d2ba2dfe (diff) |
Import of oldpackages/libs/gdbm
Signed-off-by: Marcel Denia <naoir@gmx.net>
Diffstat (limited to 'libs/gdbm')
-rw-r--r-- | libs/gdbm/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libs/gdbm/Makefile b/libs/gdbm/Makefile new file mode 100644 index 000000000..cde9676e4 --- /dev/null +++ b/libs/gdbm/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 2006-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gdbm +PKG_VERSION:=1.10 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/gdbm +PKG_MD5SUM:=88770493c2559dc80b561293e39d3570 + +PKG_LICENSE:=GPLv3 +PKG_LICENSE_FILES:=COPYING + +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=0 + +include $(INCLUDE_DIR)/package.mk + +define Package/libgdbm + SECTION:=libs + CATEGORY:=Libraries + TITLE:=GNU database manager + URL:=http://www.gnu.org/software/gdbm/ +endef + +TARGET_CFLAGS += $(FPIC) + +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + +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 + $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/ +endef + +define Package/libgdbm/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libgdbm)) |