packages: fix parallel build by adding + for every make command that passes the jobserver
[packages.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.9.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gdbm
16 PKG_MD5SUM:=59f6e4c4193cb875964ffbe8aa384b58
17
18 PKG_FIXUP:=autoreconf
19 PKG_BUILD_PARALLEL:=0
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                 DESTDIR="$(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))