[Buildroot] [PATCH 05/13] lockdev: new package

Maxime Hadjinlian maxime.hadjinlian at gmail.com
Thu Feb 21 14:58:35 UTC 2013


library for locking devices
This package was originally found at : https://github.com/huceke/buildroot-rbp
By gimli <ebsi4711 at gmail.com>

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
---
 package/Config.in          |    1 +
 package/lockdev/Config.in  |    6 ++++++
 package/lockdev/lockdev.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/lockdev/Config.in
 create mode 100644 package/lockdev/lockdev.mk

diff --git a/package/Config.in b/package/Config.in
index 01eeee8..2106391 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -555,6 +555,7 @@ source "package/libffi/Config.in"
 source "package/gsl/Config.in"
 source "package/libglib2/Config.in"
 source "package/libical/Config.in"
+source "package/lockdev/Config.in"
 source "package/libnspr/Config.in"
 source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000..abb640c
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LOCKDEV
+	bool "lockdev"
+	help
+	  library for locking devices
+
+	  http://packages.debian.org/source/sid/lockdev
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000..2012211
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# lockdev
+#
+#############################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SITE = http://ftp.de.debian.org/debian/pool/main/l/lockdev
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_INSTALL_STAGING = YES
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILES = LICENSE
+
+define LOCKDEV_BUILD_CMDS
+	$(MAKE) $(TARGET_CONFIGURE_OPTS) OPTIM= -C $(@D) V=1 shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE) basedir=$(STAGING_DIR)/usr -C $(@D) install
+	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+	ln -s $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+	$(MAKE) basedir=$(TARGET_DIR)/usr -C $(@D) install
+	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
+	ln -s $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
+endef
+
+$(eval $(generic-package))
-- 
1.7.10.4




More information about the buildroot mailing list