net/usbip: fix SDK compile issues
authorAlexandros C. Couloumbis <alex@ozo.com>
Thu, 21 Oct 2010 09:57:57 +0000 (09:57 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Thu, 21 Oct 2010 09:57:57 +0000 (09:57 +0000)
SVN-Revision: 23568

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