From fab45fe044201c2f7becd4cd97b9db99d3e8c1dc Mon Sep 17 00:00:00 2001
From: Dan Hirsch <thequux@upstandinghackers.com>
Date: Thu, 5 Dec 2013 09:58:30 +0100
Subject: [PATCH] Helps to add the perl makefile. Bonus points for including a
 README

---
 src/bindings/perl/Makefile.PL | 15 +++++++++++++++
 src/bindings/perl/README.md   |  9 +++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 src/bindings/perl/Makefile.PL
 create mode 100644 src/bindings/perl/README.md

diff --git a/src/bindings/perl/Makefile.PL b/src/bindings/perl/Makefile.PL
new file mode 100644
index 00000000..c9bf9db9
--- /dev/null
+++ b/src/bindings/perl/Makefile.PL
@@ -0,0 +1,15 @@
+use ExtUtils::MakeMaker;
+use File::Basename;
+use Config;
+
+# Scons hack...
+chdir(dirname($0));
+
+WriteMakefile(
+    NAME => "hammer",
+    LIBS => ["-lhammer"],
+    OBJECT => 'hammer_wrap.o',
+    INC => '-I../..',
+    CCFLAGS => "$Config{ccflags} -DSWIG -DHAMMER_INTERNAL__NO_STDARG_H -std=gnu99",
+    );
+
diff --git a/src/bindings/perl/README.md b/src/bindings/perl/README.md
new file mode 100644
index 00000000..b2f7442a
--- /dev/null
+++ b/src/bindings/perl/README.md
@@ -0,0 +1,9 @@
+Perl Hammer bindings
+====================
+
+To build and run these bindings, you will need to have
+ExtUtils::MakeMaker and make installed. On a Debian system, this just
+means that you need perl installed. On a lesser Linux distribution,
+this may be all you need, but you're on your own. On Windows or
+another UNIX, you're *really* on your own (until we get PRs with
+better instructions).
\ No newline at end of file
-- 
GitLab