2 # Copyright (C) 2006 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_MD5SUM
:=1d1b1d5c0245b1c00aff92da751e9aa1
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libgdbm
25 TITLE
:=GNU database manager
26 URL
:=http
://www.gnu.org
/software
/gdbm
/
29 TARGET_CFLAGS
+= $(FPIC
)
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 INSTALL_ROOT
="$(PKG_INSTALL_DIR)" \
43 define Build
/InstallDev
44 mkdir
-p
$(1)/usr
/include
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gdbm.h
$(1)/usr
/include/
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.
{a
,so
*} $(1)/usr
/lib
/
50 define Package
/libgdbm
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.so.
* $(1)/usr
/lib
/
55 $(eval
$(call BuildPackage
,libgdbm
))