[packages] cwiid: don't build on 2.4, reformat, cleanup
authorNicolas Thill <nico@openwrt.org>
Fri, 16 Jul 2010 02:28:34 +0000 (02:28 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 16 Jul 2010 02:28:34 +0000 (02:28 +0000)
 * use the uinput subsystem, only available on 2.6

SVN-Revision: 22224

utils/cwiid/Makefile

index 2c045ba17b71ec0b11482e8908b5553a558f68bd..9e03bd6c337fb5dcbabecad04b5502902c84ec2b 100644 (file)
@@ -17,26 +17,32 @@ PKG_SOURCE_VERSION:=2100f14c612471084434b364501e3818c7f4144e
 
 include $(INCLUDE_DIR)/package.mk
 
+define Package/cwiid/Default
+  TITLE:=Linux Nintendo Wiimote interface
+  URL:=http://abstrakraft.org/cwiid/
+  DEPENDS:= @!LINUX_2_4
+endef
+
 define Package/libcwiid
+$(call Package/cwiid/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+bluez-libs
-  TITLE:=Linux Nintendo Wiimote interface
-  URL:=http://abstrakraft.org/cwiid/
+  TITLE+= (library)
+  DEPENDS+= +bluez-libs
 endef
 
 define Package/wminput
+$(call Package/cwiid/Default)
   SECTION:=utils
   CATEGORY:=Utilities
-  DEPENDS:=+libcwiid
-  TITLE:=Linux Nintendo Wiimote interface
-  URL:=http://abstrakraft.org/cwiid/
+  TITLE+= (utility)
+  DEPENDS+= +libcwiid
 endef
 
 CONFIGURE_ARGS += \
-               --without-python \
-               --disable-ldconfig \
-               --enable-shared \
+       --without-python \
+       --disable-ldconfig \
+       --enable-shared \
 
 TARGET_CFLAGS += $(FPIC)
 
@@ -57,9 +63,9 @@ define Build/Compile
 endef
 
 define Build/InstallDev
-       mkdir -p $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_BUILD_DIR)/libcwiid/*.h $(1)/usr/include/
-       mkdir -p $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/libcwiid/*.so $(1)/usr/lib/
 endef