nbd-client depends on linux-2.6
[openwrt/svn-archive/archive.git] / net / nbd / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=nbd
12 PKG_VERSION:=2.9.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nbd
17 PKG_MD5SUM:=7fdd912edba85b82f599e17449ccea40
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_BUILD_DEPENDS:=glib2 libintl
22
23 define Package/nbd
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=@LINUX_2_6
27 TITLE:=Network Block Device utilities
28 URL:=http://nbd.sourceforge.net
29 endef
30
31 define Package/nbd/description
32 This package contains the network block device client.
33 endef
34
35 CONFIGURE_ARGS += \
36 --disable-glibtest
37 CONFIGURE_VARS += GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include"
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CC="$(TARGET_CC)" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 CPPFLAGS="$(TARGET_CPPFLAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib/ -L$(STAGING_DIR)/usr/lib/" \
44 nbd-client
45 endef
46
47 define Package/nbd/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nbd-client $(1)/usr/sbin
50 endef
51
52 $(eval $(call BuildPackage,nbd))