[packages] gdbm: don't autoreconf
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gdbm
11 PKG_VERSION:=1.8.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gdbm
16 PKG_MD5SUM:=1d1b1d5c0245b1c00aff92da751e9aa1
17
18 PKG_FIXUP:=libtool no-autoreconf
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libgdbm
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=GNU database manager
27 URL:=http://www.gnu.org/software/gdbm/
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 CONFIGURE_ARGS += \
33 --enable-shared \
34 --enable-static \
35
36 define Build/Compile
37 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
38 BINOWN=`id -u` \
39 BINGRP=`id -g` \
40 INSTALL_ROOT="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/libgdbm/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libgdbm))