[libclang-perl] 02/03: Build against the current default LLVM/Clang versions.

gregor herrmann gregoa at debian.org
Fri Dec 4 16:51:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libclang-perl.

commit 2debecf57979d285e509f0bef88abeaf9d64cbfa
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Dec 4 17:45:45 2015 +0100

    Build against the current default LLVM/Clang versions.
    
    Update build dependencies to use the unversioned libclang-dev, and add llvm
    which contains the llvm-config command.
    
    In debian/rules, use llvm-config to find the libdir and includedir, and pass
    them to Makefile.PL in override_dh_auto_configure.
    
    Closes: #803645
---
 debian/control | 3 ++-
 debian/rules   | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index ae0cc46..5e8eb97 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: Lucas Kanashiro <kanashiro.duarte at gmail.com>
 Build-Depends: debhelper (>= 9.20120312~),
                libdevel-checklib-perl,
                perl,
-               libclang-3.8-dev,
+               libclang-dev,
+               llvm,
                chrpath
 Standards-Version: 3.9.6
 Homepage: https://metacpan.org/release/Clang
diff --git a/debian/rules b/debian/rules
index e1b8283..9936422 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,15 @@
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+LLVMLIB := $(shell llvm-config --libdir)
+LLVMINC := $(shell llvm-config --includedir)
 
 %:
 	dh $@
 
+override_dh_auto_configure:
+	dh_auto_configure -- LIBS="-L$(LLVMLIB) -lclang" INC="-I$(LLVMINC)"
+
 override_dh_auto_build:
 	dh_auto_build
 	chrpath -d $(CURDIR)/blib/arch/auto/Clang/Clang.so

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclang-perl.git



More information about the Pkg-perl-cvs-commits mailing list