summaryrefslogtreecommitdiffstats
path: root/package/lockdev
diff options
context:
space:
mode:
authorSpenser Gilliland <spenser@gillilanding.com>2013-05-08 13:55:26 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-29 21:23:04 +0200
commitf2a007480cab92c359432b9fa307eb48c5510086 (patch)
tree4523efc31a06de0dcc3f904ba2b488294da343c0 /package/lockdev
parent51fc2776b7f4efbd6c221f48690b568d143db8e3 (diff)
downloadbuildroot-f2a007480cab92c359432b9fa307eb48c5510086.tar.gz
buildroot-f2a007480cab92c359432b9fa307eb48c5510086.zip
lockdev: add lockdev
Add lockdev a package for locking devices. [Thomas: change location in menuconfig, reformat header in .mk file.] Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lockdev')
-rw-r--r--package/lockdev/Config.in6
-rw-r--r--package/lockdev/lockdev.mk41
2 files changed, 47 insertions, 0 deletions
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000000..4b386f4ab0
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LOCKDEV
+ bool "lockdev"
+ help
+ Library for locking devices.
+
+ No upstream site, primary site is Debian.
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000000..004b637b69
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,41 @@
+################################################################################
+#
+# lockdev
+#
+################################################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_SITE = http://snapshot.debian.org/archive/debian/20130508T154517Z/pool/main/l/lockdev/
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILES = LICENSE
+LOCKDEV_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+define LOCKDEV_BUILD_CMDS
+ $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+ $(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev
+endef
+
+else # BR2_PREFER_STATIC_LIB
+
+define LOCKDEV_BUILD_CMDS
+ $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+ $(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev install_run
+ ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+ ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+ $(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install_run
+ ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+endif # BR2_PREFER_STATIC_LIB
+
+$(eval $(generic-package))
OpenPOWER on IntegriCloud