libmcrypt: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 7 Jan 2013 18:12:59 +0000 (15:12 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 13 Jan 2013 20:28:59 +0000 (21:28 +0100)
[Peter: Do libmcrypt-config fixup in single pass]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libmcrypt/Config.in [new file with mode: 0644]
package/libmcrypt/libmcrypt-nocxx.patch [new file with mode: 0644]
package/libmcrypt/libmcrypt.mk [new file with mode: 0644]

index 01e3694f6808be17e3535ede995b4c5e9ceb9553..ef62fb75ab0a5ed7fdbdfada425a0af9456d1f59 100644 (file)
@@ -371,6 +371,7 @@ source "package/beecrypt/Config.in"
 source "package/gnutls/Config.in"
 source "package/libgcrypt/Config.in"
 source "package/libgpg-error/Config.in"
+source "package/libmcrypt/Config.in"
 source "package/libmhash/Config.in"
 source "package/libnss/Config.in"
 source "package/libsha1/Config.in"
diff --git a/package/libmcrypt/Config.in b/package/libmcrypt/Config.in
new file mode 100644 (file)
index 0000000..e5dc5e2
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBMCRYPT
+       bool "libmcrypt"
+       help
+         libmcrypt is a library that provides uniform interface to access
+         several encryption algorithms.
+
+         http://mcrypt.sourceforge.net/
diff --git a/package/libmcrypt/libmcrypt-nocxx.patch b/package/libmcrypt/libmcrypt-nocxx.patch
new file mode 100644 (file)
index 0000000..b1c2871
--- /dev/null
@@ -0,0 +1,15 @@
+libmcrypt doesn't use C++ so remove the check.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura libmcrypt-2.5.8.orig/configure.in libmcrypt-2.5.8/configure.in
+--- libmcrypt-2.5.8.orig/configure.in  2013-01-07 12:20:44.332200669 -0300
++++ libmcrypt-2.5.8/configure.in       2013-01-07 12:20:50.405390565 -0300
+@@ -19,7 +19,6 @@
+ AC_PROG_MAKE_SET
+-AC_PROG_CXX
+ AC_PROG_CC
+ AC_PROG_CPP
+ AC_PROG_INSTALL
diff --git a/package/libmcrypt/libmcrypt.mk b/package/libmcrypt/libmcrypt.mk
new file mode 100644 (file)
index 0000000..a03c892
--- /dev/null
@@ -0,0 +1,22 @@
+#############################################################
+#
+# libmcrypt
+#
+#############################################################
+
+LIBMCRYPT_VERSION = 2.5.8
+LIBMCRYPT_SITE = http://downloads.sourceforge.net/project/mcrypt/Libmcrypt/$(LIBMCRYPT_VERSION)
+LIBMCRYPT_AUTORECONF = YES
+LIBMCRYPT_INSTALL_STAGING = YES
+LIBMCRYPT_LICENSE = LGPLv2.1
+LIBMCRYPT_LICENSE_FILES = COPYING.LIB
+
+define LIBMCRYPT_STAGING_LIBMCRYPT_CONFIG_FIXUP
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               $(STAGING_DIR)/usr/bin/libmcrypt-config
+endef
+
+LIBMCRYPT_POST_INSTALL_STAGING_HOOKS += LIBMCRYPT_STAGING_LIBMCRYPT_CONFIG_FIXUP
+
+$(eval $(autotools-package))