2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/gdbm
16 PKG_HASH
:=8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
22 PKG_FIXUP
:=autoreconf gettext-version
23 PKG_REMOVE_FILES
:=Makefile compat
/Makefile doc
/Makefile
export/Makefile src
/Makefile tests
/Makefile
26 PKG_BUILD_DEPENDS
:=gettext-full
/host
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libgdbm
33 TITLE
:=GNU database manager
34 URL
:=http
://www.gnu.org
/software
/gdbm
/
37 define Package
/libgdbm
/description
38 GNU database manager library
39 GNU dbm is a set of database routines that use extendible hashing and
40 works similar to the standard UNIX dbm routines.
43 TARGET_CFLAGS
+= $(FPIC
)
50 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
57 define Build
/InstallDev
58 $(INSTALL_DIR
) $(1)/usr
/include
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gdbm.h
$(1)/usr
/include/
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.
{a
,so
*} $(1)/usr
/lib
/
64 define Package
/libgdbm
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.so.
* $(1)/usr
/lib
/
69 $(eval
$(call BuildPackage
,libgdbm
))