net/usbip: fix SDK compile issues
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 21 Oct 2010 09:57:57 +0000 (09:57 +0000)
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 21 Oct 2010 09:57:57 +0000 (09:57 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23568 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/usbip/Makefile

index be48be0..1af6e7e 100644 (file)
@@ -24,7 +24,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/usbip/Common
   TITLE:=USB-over-IP
   URL:=http://usbip.sourceforge.net/
-  DEPENDS:=@!LINUX_2_4 @USB_SUPPORT
+  DEPENDS:=@!LINUX_2_4 @USB_SUPPORT +glib2 +sysfsutils
   MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
 endef
 
@@ -91,9 +91,11 @@ CONFIGURE_PATH:=./src
 MAKE_PATH:=./src
 LIBTOOL_PATHS:=./src
 
+CFLAGS+="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include"
+
 define Build/Prepare
 $(call Build/Prepare/Default)
-       (cd $(PKG_BUILD_DIR)/src; [ -x ./configure ] || ./autogen.sh )
+       (cd $(PKG_BUILD_DIR)/src; ./autogen.sh )
 endef
 
 define Build/Compile/kmod