Skip to content

Commit

Permalink
Merge pull request #21 from zear/opendingux-2014.05
Browse files Browse the repository at this point in the history
libshake: Added package
  • Loading branch information
mthuurne committed Oct 6, 2015
2 parents cf1794d + c7ef506 commit 2493711
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Expand Up @@ -664,6 +664,7 @@ source "package/libnfc/Config.in"
source "package/libqmi/Config.in"
source "package/libraw1394/Config.in"
source "package/libserial/Config.in"
source "package/libshake/Config.in"
source "package/libsoc/Config.in"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
Expand Down
6 changes: 6 additions & 0 deletions package/libshake/Config.in
@@ -0,0 +1,6 @@
config BR2_PACKAGE_LIBSHAKE
bool "libshake"
help
A basic haptic library using the Linux Force Feedback API.

https://github.com/zear/libShake
26 changes: 26 additions & 0 deletions package/libshake/libshake.mk
@@ -0,0 +1,26 @@
#############################################################
#
# libshake
#
#############################################################
LIBSHAKE_VERSION = v0.2.0
LIBSHAKE_SITE = $(call github,zear,libShake,$(LIBSHAKE_VERSION))
LIBSHAKE_LICENSE = MIT
LIBSHAKE_LICENSE_FILES = LICENSE.txt
LIBSHAKE_INSTALL_STAGING = YES

LIBSHAKE_MAKE_ENV = CC="$(TARGET_CC)" PREFIX=/usr

define LIBSHAKE_BUILD_CMDS
$(LIBSHAKE_MAKE_ENV) $(MAKE) -C $(@D)
endef

define LIBSHAKE_INSTALL_STAGING_CMDS
$(LIBSHAKE_MAKE_ENV) DESTDIR="$(STAGING_DIR)" $(MAKE) -C $(@D) install
endef

define LIBSHAKE_INSTALL_TARGET_CMDS
$(LIBSHAKE_MAKE_ENV) DESTDIR="$(TARGET_DIR)" $(MAKE) -C $(@D) install-lib
endef

$(eval $(generic-package))

0 comments on commit 2493711

Please sign in to comment.