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