mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-06 23:10:15 +00:00
manage different version of Ubuntu & Debian
This commit is contained in:
parent
747842a8ba
commit
712c10817b
6
debian/control
vendored
6
debian/control
vendored
@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 9.0), flex, bison, dejagnu, tcl8.5, expect,
|
|||||||
sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9),
|
sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9),
|
||||||
lsb-release, patchutils, diffstat, xz-utils, chrpath, python-dev,
|
lsb-release, patchutils, diffstat, xz-utils, chrpath, python-dev,
|
||||||
libedit-dev, swig, python-sphinx, ocaml-nox, binutils-dev, libcloog-isl-dev,
|
libedit-dev, swig, python-sphinx, ocaml-nox, binutils-dev, libcloog-isl-dev,
|
||||||
libisl-dev (>= 0.11.1)
|
libisl-dev
|
||||||
Build-Conflicts: oprofile, ocaml
|
Build-Conflicts: oprofile, ocaml
|
||||||
Standards-Version: 3.9.3
|
Standards-Version: 3.9.3
|
||||||
Homepage: http://www.llvm.org/
|
Homepage: http://www.llvm.org/
|
||||||
@ -45,8 +45,8 @@ Description: C, C++ and Objective-C compiler (LLVM based)
|
|||||||
|
|
||||||
Package: clang-3.3
|
Package: clang-3.3
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libstdc++6-4.7-dev, libgcc-4.7-dev,
|
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:devlibs},
|
||||||
libobjc-4.7-dev, libclang-common-dev (= ${binary:Version})
|
libclang-common-dev (= ${binary:Version})
|
||||||
Provides: c-compiler, objc-compiler, c++-compiler
|
Provides: c-compiler, objc-compiler, c++-compiler
|
||||||
Recommends: llvm-3.3-dev, python
|
Recommends: llvm-3.3-dev, python
|
||||||
Replaces: clang (<< 1:3.1), clang-3.1, compiler-rt
|
Replaces: clang (<< 1:3.1), clang-3.1, compiler-rt
|
||||||
|
26
debian/rules
vendored
26
debian/rules
vendored
@ -16,6 +16,12 @@ DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|||||||
|
|
||||||
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
|
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
|
||||||
|
|
||||||
|
distribution := $(shell lsb_release --id --short)
|
||||||
|
distrel := $(shell lsb_release --codename --short)
|
||||||
|
ifeq ($(distrel),n/a)
|
||||||
|
distrel := sid
|
||||||
|
endif
|
||||||
|
|
||||||
confargs := \
|
confargs := \
|
||||||
--with-c-include-dirs=/usr/include/$(DEB_HOST_MULTIARCH):/usr/include/$(DEB_HOST_GNU_TYPE):/usr/include \
|
--with-c-include-dirs=/usr/include/$(DEB_HOST_MULTIARCH):/usr/include/$(DEB_HOST_GNU_TYPE):/usr/include \
|
||||||
--with-cxx-include-root=/usr/include/c++/$(GCC_VERSION) \
|
--with-cxx-include-root=/usr/include/c++/$(GCC_VERSION) \
|
||||||
@ -33,10 +39,27 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
|||||||
opt_flags += -marm
|
opt_flags += -marm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(distribution),Ubuntu)
|
||||||
|
ifeq ($(distrel),precise)
|
||||||
|
control_vars = '-Vdep:devlibs=libstdc++6-4.6-dev'
|
||||||
|
endif
|
||||||
|
ifeq ($(distrel),quantal)
|
||||||
|
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev'
|
||||||
|
endif
|
||||||
|
ifeq ($(distrel),raring)
|
||||||
|
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev, libgcc-4.7-dev, libobjc-4.7-dev'
|
||||||
|
endif
|
||||||
|
|
||||||
|
else
|
||||||
|
# Debian experimental
|
||||||
|
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev, libgcc-4.7-dev, libobjc-4.7-dev'
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
# --buildsystem=cmake --builddirectory=$(TARGET_BUILD)
|
# --buildsystem=cmake --builddirectory=$(TARGET_BUILD)
|
||||||
|
|
||||||
debian/%: debian/%.in
|
debian/%: debian/%.in
|
||||||
sed -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' -e "s|@OCAML_STDLIB_DIR@|$(OCAML_STDLIB_DIR)|g" -e "s|@LLVM_VERSION@|$(LLVM_VERSION)|g" $< > $@
|
sed -e 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' -e "s|@OCAML_STDLIB_DIR@|$(OCAML_STDLIB_DIR)|g" -e "s|@LLVM_VERSION@|$(LLVM_VERSION)|g" $< > $@
|
||||||
|
|
||||||
@ -147,6 +170,9 @@ override_dh_shlibdeps:
|
|||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
$(MAKE) -C $(TARGET_BUILD) check || true
|
$(MAKE) -C $(TARGET_BUILD) check || true
|
||||||
|
|
||||||
|
override_dh_gencontrol:
|
||||||
|
dh_gencontrol -- $(control_vars)
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
dh_auto_clean
|
dh_auto_clean
|
||||||
rm -rf $(TARGET_BUILD) tools/clang/include/clang/Debian/debian_path.h docs/_build/ tools/clang/docs/_html/
|
rm -rf $(TARGET_BUILD) tools/clang/include/clang/Debian/debian_path.h docs/_build/ tools/clang/docs/_html/
|
||||||
|
Loading…
Reference in New Issue
Block a user