remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / gdbm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gdbm
12 PKG_VERSION:=1.8.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/gdbm
17 PKG_MD5SUM:=1d1b1d5c0245b1c00aff92da751e9aa1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libgdbm
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=GNU database manager
25 URL:=http://www.gnu.org/software/gdbm/
26 endef
27
28 CONFIGURE_ARGS += \
29 --enable-shared \
30 --enable-static \
31
32 define Build/Configure
33 $(call Build/Configure/Default)
34 $(call libtool_disable_rpath)
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) all
39 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 BINOWN=`id -u` \
42 BINGRP=`id -g` \
43 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
44 install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/include
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/
50 mkdir -p $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/
52 endef
53
54 define Package/libgdbm/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libgdbm))