gcc-defaults-armhf-cross-1.16/0000755000000000000000000000000012161311317013106 5ustar gcc-defaults-armhf-cross-1.16/debian/0000755000000000000000000000000012303373756014345 5ustar gcc-defaults-armhf-cross-1.16/debian/control.in0000644000000000000000000001516312303373653016357 0ustar Source: gcc-defaults-CROSS_ARCH-cross Section: devel Priority: standard Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Marcin Juszkiewicz Standards-Version: 3.9.5 Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.13.9), lsb-release XS-Python-Version: all Package: cpp-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Section: interpreters Depends: cpp-${pv:cpp}-CROSS_GNU_TYPE ${reqv:cpp}, ${misc:Depends} Conflicts: cpp-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), cpp-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Suggests: cpp-doc Description: The GNU C preprocessor (cpp) for CROSS_ARCH architecture The GNU C preprocessor is a macro processor that is used automatically by the GNU C compiler to transform programs before actual compilation. . This package has been separated from gcc for the benefit of those who require the preprocessor but not the cross-compiler for CROSS_ARCH architecture. . This is a dependency package providing the default GNU C preprocessor for CROSS_ARCH architecture. Package: g++-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcc-CROSS_GNU_TYPE (>= ${version:cpp}), g++-${pv:gpp}MULTILIB-CROSS_GNU_TYPE ${reqv:gpp}, gcc-${pv:gpp}MULTILIB-CROSS_GNU_TYPE ${reqv:gpp}, ${misc:Depends} Conflicts: g++-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), g++-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Description: The GNU C++ compiler for CROSS_ARCH architecture This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. . This is a dependency package providing the default GNU C++ cross-compiler for CROSS_ARCH architecture. Package: gobjc-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcc-CROSS_GNU_TYPE (>= ${version:cpp}), gobjc-${pv:gobjc}MULTILIB-CROSS_GNU_TYPE ${reqv:gobjc}, ${misc:Depends} Conflicts: gobjc-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), gobjc-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Description: The GNU Objective-C compiler for CROSS_ARCH architecture This is the GNU Objective-C compiler, which compiles Objective-C on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Objective-C cross-compiler for CROSS_ARCH architecture. Package: gobjc++-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcc-CROSS_GNU_TYPE (>= ${version:cpp}), gobjc++-${pv:gobjcxx}MULTILIB-CROSS_GNU_TYPE ${reqv:gobjcxx}, ${misc:Depends} Conflicts: gobjc++-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), gobjc++-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Recommends: g++-CROSS_GNU_TYPE (>= ${version:cpp}), gobjc-CROSS_GNU_TYPE (>= ${version:cpp}) Description: The GNU Objective-C++ compiler for CROSS_ARCH architecture This is the GNU Objective-C++ compiler, which compiles Objective-C++ on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Objective-C++ cross-compiler for CROSS_ARCH architecture. Package: gfortran-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcc-CROSS_GNU_TYPE (>= ${version:gcc}), gfortran-${pv:gfort}MULTILIB-CROSS_GNU_TYPE ${reqv:gfort}, ${misc:Depends} Conflicts: gfortran-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), gfortran-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Suggests: gfortran-doc Description: The GNU Fortran 95 compiler for CROSS_ARCH architecture This is the GNU Fortran 95 compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Fortran 95 cross-compiler for CROSS_ARCH architecture. Package: gccgo-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), g++-CROSS_GNU_TYPE (>= ${version:gcc}), gccgo-${pv:ggo}MULTIGOLIB-CROSS_GNU_TYPE ${reqv:ggo}, ${misc:Depends} Suggests: gccgo-doc Description: Go compiler, based on the GCC backend This is the GNU Go compiler, which compiles Go on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Go cross-compiler cross-compiler for the CROSS_ARCH architecture. Package: gcj-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcj-${pv:gcj}MULTIGOLIB-CROSS_GNU_TYPE ${reqv:gcj}, ${misc:Depends} Description: GNU Java compiler, based on the GCC backend This is the GNU Java compiler, which compiles java on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Java cross-compiler cross-compiler for the CROSS_ARCH architecture. Package: gdc-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gdc-${pv:gdc}MULTIGOLIB-CROSS_GNU_TYPE ${reqv:gdc}, ${misc:Depends} Description: GNU D compiler, based on the GCC backend This is the GNU D compiler, which compiles D on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU D cross-compiler cross-compiler for the CROSS_ARCH architecture. Package: gcc-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: cpp-CROSS_GNU_TYPE (>= ${version:cpp}), gcc-${pv:gcc}MULTILIB-CROSS_GNU_TYPE ${reqv:gcc}, ${misc:Depends} Conflicts: gcc-4.4-CROSS_GNU_TYPE (<= 4.4.5-15~), gcc-4.5-CROSS_GNU_TYPE (<= 4.5.2-8~) Recommends: libc6-dev-CROSS_ARCH-cross | libc-dev-CROSS_ARCH-cross Suggests: make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb-CROSS_GNU_TYPE, gcc-doc Description: The GNU C compiler for CROSS_ARCH architecture This is the GNU C compiler, a fairly portable optimizing compiler for C. . This is a dependency package providing the default GNU C cross-compiler for CROSS_ARCH architecture. Package: pkg-config-CROSS_GNU_TYPE Priority: optional Architecture: @host_archs@ Depends: pkg-config (>= 0.25-1.1ubuntu2), ${misc:Depends} Description: manage compile and link flags for libraries for CROSS_ARCH architecture pkg-config is a system for managing library compile and link flags that works with automake and autoconf. . Increasingly libraries ship with ".pc" files that allow querying of the compiler and linker flags needed to use them through the pkg-config(1) program. . This is a dependency package providing cross pkg-config support for the CROSS_ARCH architecture. gcc-defaults-armhf-cross-1.16/debian/copyright0000644000000000000000000000073311765576167016317 0ustar gcc-defaults is Copyright (C) 2000, 2001, 2006, 2009 Debian. gcc-defaults-armel-cross is Copyright (C) 2010 Linaro These scripts are free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. gcc-defaults-armhf-cross-1.16/debian/changelog0000644000000000000000000000750312303373306016213 0ustar gcc-defaults-armhf-cross (1.16) trusty; urgency=medium * Build for arm64. -- Matthias Klose Wed, 26 Feb 2014 15:14:06 +0100 gcc-defaults-armhf-cross (1.15) saucy; urgency=low * Bump version to 4.8.1. * Build gcj and gdc packages. -- Matthias Klose Sat, 22 Jun 2013 13:58:39 +0200 gcc-defaults-armhf-cross (1.14) saucy; urgency=low * Bump default GCC version to 4.8 to match native compilers. -- Adam Conrad Sat, 27 Apr 2013 12:06:33 -0600 gcc-defaults-armhf-cross (1.13) raring; urgency=low * Bump the release number for the binary packages. -- Matthias Klose Wed, 12 Dec 2012 11:49:38 +0100 gcc-defaults-armhf-cross (1.12) raring; urgency=low * ARM doesn't have gccgo multilib packages. -- Matthias Klose Sun, 09 Dec 2012 14:01:01 +0100 gcc-defaults-armhf-cross (1.11) raring; urgency=low * Build a gccgo package. * Depend on the -multilib cross packages. A hack to force these into the cross build environment. -- Matthias Klose Sun, 09 Dec 2012 13:48:58 +0100 gcc-defaults-armhf-cross (1.10) quantal; urgency=low * Fix build failure exposed with recent changes in dpkg-dev. * Bump version to 4.7.2. * debian/rules (clean): Really clean. -- Matthias Klose Sat, 06 Oct 2012 15:14:56 +0200 gcc-defaults-armhf-cross (1.9) quantal; urgency=low * switch to gcc 4.7 * bumped standards-version to 3.9.3 -- Marcin Juszkiewicz Tue, 12 Jun 2012 09:50:38 +0200 gcc-defaults-armhf-cross (1.8) precise; urgency=low * Fixed pkg-config wrappers symlink. * Wrote debian/control generator (copied from armel-cross-toolchain-base). * Bumped to 4.6.2-7 to get cross compiler from Ubuntu 'precise'. -- Marcin Juszkiewicz Wed, 14 Dec 2011 16:05:48 +0100 gcc-defaults-armhf-cross (1.7) precise; urgency=low [ Wookey ] * Add arm-linux-gnueabi-pkg-config wrapper package - closes LP: #771569 [ Marcin Juszkiewicz ] * Added build-{arch,indep} tasks. * Bumped to 4.6.1 -- Marcin Juszkiewicz Thu, 17 Nov 2011 15:54:35 +0100 gcc-defaults-armhf-cross (1.6) oneiric; urgency=low * First armhf version - targetting gcc 4.6 by default. -- Marcin Juszkiewicz Mon, 06 Jun 2011 17:28:36 +0200 gcc-defaults-armhf-cross (1.5) natty; urgency=low * "Say good bye to update-alternatives" release - LP: #676454 - components does not register into u-a anymore - selection of default version is now done by gcc-defaults-armhf-cross package. -- Marcin Juszkiewicz Fri, 15 Apr 2011 16:01:49 +0300 gcc-defaults-armhf-cross (1.4) natty; urgency=low * switch to gcc 4.5 by default - version selection is still done by compiler packages - see LP: 676454 * dropped version from variable names * added code for use after 676454 will be solved - commented for now -- Marcin Juszkiewicz Fri, 10 Dec 2010 16:53:15 +0100 gcc-defaults-armhf-cross (1.3) maverick; urgency=low * Made it amd64 i386 only. -- Marcin Juszkiewicz Wed, 15 Sep 2010 11:27:42 +0200 gcc-defaults-armhf-cross (1.2) maverick; urgency=low * Dropped few more build dependencies. -- Marcin Juszkiewicz Thu, 02 Sep 2010 12:39:18 +0200 gcc-defaults-armhf-cross (1.1) maverick; urgency=low * Dropped dependency on gcc-4.4-arm-linux-gnueabi-base. -- Marcin Juszkiewicz Thu, 02 Sep 2010 12:33:36 +0200 gcc-defaults-armhf-cross (1.0) maverick; urgency=low * Initial release based on gcc-defaults 1.93ubuntu2 - closes LP: #600930. -- Marcin Juszkiewicz Thu, 02 Sep 2010 11:56:37 +0200 gcc-defaults-armhf-cross-1.16/debian/compat0000644000000000000000000000000211765576167015557 0ustar 5 gcc-defaults-armhf-cross-1.16/debian/control0000644000000000000000000001541212303373764015752 0ustar Source: gcc-defaults-armhf-cross Section: devel Priority: standard Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Marcin Juszkiewicz Standards-Version: 3.9.5 Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.13.9), lsb-release XS-Python-Version: all Package: cpp-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Section: interpreters Depends: cpp-${pv:cpp}-arm-linux-gnueabihf ${reqv:cpp}, ${misc:Depends} Conflicts: cpp-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), cpp-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Suggests: cpp-doc Description: The GNU C preprocessor (cpp) for armhf architecture The GNU C preprocessor is a macro processor that is used automatically by the GNU C compiler to transform programs before actual compilation. . This package has been separated from gcc for the benefit of those who require the preprocessor but not the cross-compiler for armhf architecture. . This is a dependency package providing the default GNU C preprocessor for armhf architecture. Package: g++-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcc-arm-linux-gnueabihf (>= ${version:cpp}), g++-${pv:gpp}-multilib-arm-linux-gnueabihf ${reqv:gpp}, gcc-${pv:gpp}-multilib-arm-linux-gnueabihf ${reqv:gpp}, ${misc:Depends} Conflicts: g++-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), g++-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Description: The GNU C++ compiler for armhf architecture This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. . This is a dependency package providing the default GNU C++ cross-compiler for armhf architecture. Package: gobjc-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcc-arm-linux-gnueabihf (>= ${version:cpp}), gobjc-${pv:gobjc}-multilib-arm-linux-gnueabihf ${reqv:gobjc}, ${misc:Depends} Conflicts: gobjc-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), gobjc-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Description: The GNU Objective-C compiler for armhf architecture This is the GNU Objective-C compiler, which compiles Objective-C on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Objective-C cross-compiler for armhf architecture. Package: gobjc++-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcc-arm-linux-gnueabihf (>= ${version:cpp}), gobjc++-${pv:gobjcxx}-multilib-arm-linux-gnueabihf ${reqv:gobjcxx}, ${misc:Depends} Conflicts: gobjc++-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), gobjc++-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Recommends: g++-arm-linux-gnueabihf (>= ${version:cpp}), gobjc-arm-linux-gnueabihf (>= ${version:cpp}) Description: The GNU Objective-C++ compiler for armhf architecture This is the GNU Objective-C++ compiler, which compiles Objective-C++ on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Objective-C++ cross-compiler for armhf architecture. Package: gfortran-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcc-arm-linux-gnueabihf (>= ${version:gcc}), gfortran-${pv:gfort}-multilib-arm-linux-gnueabihf ${reqv:gfort}, ${misc:Depends} Conflicts: gfortran-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), gfortran-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Suggests: gfortran-doc Description: The GNU Fortran 95 compiler for armhf architecture This is the GNU Fortran 95 compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Fortran 95 cross-compiler for armhf architecture. Package: gccgo-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), g++-arm-linux-gnueabihf (>= ${version:gcc}), gccgo-${pv:ggo}-arm-linux-gnueabihf ${reqv:ggo}, ${misc:Depends} Suggests: gccgo-doc Description: Go compiler, based on the GCC backend This is the GNU Go compiler, which compiles Go on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Go cross-compiler cross-compiler for the armhf architecture. Package: gcj-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcj-${pv:gcj}-arm-linux-gnueabihf ${reqv:gcj}, ${misc:Depends} Description: GNU Java compiler, based on the GCC backend This is the GNU Java compiler, which compiles java on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU Java cross-compiler cross-compiler for the armhf architecture. Package: gdc-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gdc-${pv:gdc}-arm-linux-gnueabihf ${reqv:gdc}, ${misc:Depends} Description: GNU D compiler, based on the GCC backend This is the GNU D compiler, which compiles D on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. . This is a dependency package providing the default GNU D cross-compiler cross-compiler for the armhf architecture. Package: gcc-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: cpp-arm-linux-gnueabihf (>= ${version:cpp}), gcc-${pv:gcc}-multilib-arm-linux-gnueabihf ${reqv:gcc}, ${misc:Depends} Conflicts: gcc-4.4-arm-linux-gnueabihf (<= 4.4.5-15~), gcc-4.5-arm-linux-gnueabihf (<= 4.5.2-8~) Recommends: libc6-dev-armhf-cross | libc-dev-armhf-cross Suggests: make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb-arm-linux-gnueabihf, gcc-doc Description: The GNU C compiler for armhf architecture This is the GNU C compiler, a fairly portable optimizing compiler for C. . This is a dependency package providing the default GNU C cross-compiler for armhf architecture. Package: pkg-config-arm-linux-gnueabihf Priority: optional Architecture: amd64 i386 arm64 Depends: pkg-config (>= 0.25-1.1ubuntu2), ${misc:Depends} Description: manage compile and link flags for libraries for armhf architecture pkg-config is a system for managing library compile and link flags that works with automake and autoconf. . Increasingly libraries ship with ".pc" files that allow querying of the compiler and linker flags needed to use them through the pkg-config(1) program. . This is a dependency package providing cross pkg-config support for the armhf architecture. gcc-defaults-armhf-cross-1.16/debian/rules0000755000000000000000000002111712303373756015427 0ustar #! /usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 REL_NO := 1 GCC_VER := 4.8.2 # minimum required gcc-X.Y versions REQV := (>= $(GCC_VER)-$(REL_NO)) CV_CPP := $(GCC_VER)-$(REL_NO) CV_GCC := $(GCC_VER)-$(REL_NO) CV_GPP := $(GCC_VER)-$(REL_NO) CV_GOBJC := $(GCC_VER)-$(REL_NO) CV_GOBJCXX := $(GCC_VER)-$(REL_NO) CV_GFORT := $(GCC_VER)-$(REL_NO) CV_GGO := $(GCC_VER)-$(REL_NO) CV_GDC := $(GCC_VER)-$(REL_NO) CV_GCJ := $(GCC_VER)-$(REL_NO) REQV_CPP = $(REQV) REQV_GCC = $(REQV) REQV_GPP = $(REQV) REQV_GOBJC = $(REQV) REQV_GOBJCXX = $(REQV) REQV_GFORT = $(REQV) REQV_GGO = $(REQV) REQV_GDC = $(REQV) REQV_GCJ = $(REQV) CROSS_ARCH := $(shell dpkg-parsechangelog| sed -n 's/^Source: gcc-defaults-\(.*\)-cross/\1/p') CROSS_GNU_TYPE := $(shell dpkg-architecture -a${CROSS_ARCH} -qDEB_HOST_GNU_TYPE -f) ifneq (,$(filter $(CROSS_ARCH),armel armhf amd64 i386 mips mipsel powerpc ppc64 s390 s390x sparc sparc64)) MULTILIB = -multilib endif ifneq (,$(filter $(CROSS_ARCH),amd64 i386 mips mipsel powerpc ppc64 s390 s390x sparc sparc64)) MULTIGOLIB = -multilib endif host_archs = amd64 i386 arm64 print: @echo ${CROSS_ARCH} @echo ${CROSS_GNU_TYPE} EPOCH=4 distribution := $(shell lsb_release -is) all_packages := \ g++-${CROSS_GNU_TYPE} \ gfortran-${CROSS_GNU_TYPE} \ gdc-${CROSS_GNU_TYPE} \ gcj-${CROSS_GNU_TYPE} \ gobjc-${CROSS_GNU_TYPE} \ gobjc++-${CROSS_GNU_TYPE} \ gccgo-${CROSS_GNU_TYPE} \ pkg-config-${CROSS_GNU_TYPE} no_packages := packages := $(filter-out $(no_packages), $(all_packages)) # derived version number (without release) V_CPP := $(shell echo $(CV_CPP) | sed 's/-[^-]*$$//') V_GCC := $(shell echo $(CV_GCC) | sed 's/-[^-]*$$//') V_GPP := $(shell echo $(CV_GPP) | sed 's/-[^-]*$$//') V_GOBJC := $(shell echo $(CV_GOBJC) | sed 's/-[^-]*$$//') V_GOBJCXX := $(shell echo $(CV_GOBJCXX) | sed 's/-[^-]*$$//') V_GFORT := $(shell echo $(CV_GFORT) | sed 's/-[^-]*$$//') V_GGO := $(shell echo $(CV_GGO) | sed 's/-[^-]*$$//') V_GDC := $(shell echo $(CV_GDC) | sed 's/-[^-]*$$//') V_GCJ := $(shell echo $(CV_GCJ) | sed 's/-[^-]*$$//') # number for the package name PV_CPP := $(shell echo $(V_CPP) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GCC := $(shell echo $(V_GCC) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GPP := $(shell echo $(V_GPP) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GOBJC:= $(shell echo $(V_GOBJC) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GOBJCXX:= $(shell echo $(V_GOBJCXX) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GFORT:= $(shell echo $(V_GFORT) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GGO := $(shell echo $(V_GGO) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GDC := $(shell echo $(V_GDC) | awk -F. '{printf "%d.%d", $$1, $$2}') PV_GCJ := $(shell echo $(V_GCJ) | awk -F. '{printf "%d.%d", $$1, $$2}') substvars: ( \ echo 'version:cpp=$(EPOCH):$(CV_CPP)'; \ echo 'version:gcc=$(EPOCH):$(CV_GCC)'; \ echo 'version:gpp=$(EPOCH):$(CV_GPP)'; \ echo 'version:gobjc=$(EPOCH):$(CV_GOBJC)'; \ echo 'version:gfort=$(EPOCH):$(CV_GFORT)'; \ echo 'pv:cpp=$(PV_CPP)'; \ echo 'pv:gcc=$(PV_GCC)'; \ echo 'pv:gpp=$(PV_GPP)'; \ echo 'pv:gobjc=$(PV_GOBJC)'; \ echo 'pv:gobjcxx=$(PV_GOBJCXX)'; \ echo 'pv:gfort=$(PV_GFORT)'; \ echo 'pv:ggo=$(PV_GGO)'; \ echo 'pv:gdc=$(PV_GDC)'; \ echo 'pv:gcj=$(PV_GCJ)'; \ echo 'reqv:cpp=$(REQV_CPP)'; \ echo 'reqv:gcc=$(REQV_GCC)'; \ echo 'reqv:gpp=$(REQV_GPP)'; \ echo 'reqv:gobjc=$(REQV_GOBJC)'; \ echo 'reqv:gobjcxx=$(REQV_GOBJCXX)'; \ echo 'reqv:gfort=$(REQV_GFORT)'; \ echo 'reqv:ggo=$(REQV_GGO)'; \ echo 'reqv:gdc=$(REQV_GDC)'; \ echo 'reqv:gcj=$(REQV_GCJ)'; \ ) > debian/substvars.local build: build-stamp build-stamp: dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f *-stamp rm -rf build rm -f debian/control.tmp* rm -f debian/substvars.local rm -rf *-${CROSS_GNU_TYPE} rm -f *-stamp dh_clean install: build substvars dh_testdir dh_testroot dh_clean -k for p in `dh_listpackages`; do \ cp -l debian/substvars.local debian/$$p.substvars; \ done nopkgs :=-s $(foreach p, $(no_packages),-N$(p)) build-indep: binary-indep: build-indep : build-arch: build binary-arch: build-arch install dh_testdir dh_testroot # dh_installdebconf dh_installdocs -pcpp-${CROSS_GNU_TYPE} for p in `dh_listpackages $(nopkgs) -Ncpp-${CROSS_GNU_TYPE} -Npkg-config-${CROSS_GNU_TYPE}`; do \ echo ln -sf cpp-${CROSS_GNU_TYPE} debian/$$p/usr/share/doc/$$p; \ mkdir -p debian/$$p/usr/share/doc; \ rm -f debian/$$p/usr/share/doc/$$p; \ ln -sf cpp-${CROSS_GNU_TYPE} debian/$$p/usr/share/doc/$$p; \ done dh_link -ppkg-config-${CROSS_GNU_TYPE} \ /usr/share/pkg-config-crosswrapper /usr/bin/${CROSS_GNU_TYPE}-pkg-config dh_link -pcpp-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-cpp-$(PV_CPP) /usr/bin/${CROSS_GNU_TYPE}-cpp \ /usr/share/man/man1/${CROSS_GNU_TYPE}-cpp-$(PV_CPP).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-cpp.1.gz dh_link -pgcc-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-gcc-$(PV_GCC) /usr/bin/${CROSS_GNU_TYPE}-gcc \ /usr/bin/${CROSS_GNU_TYPE}-gcov-$(PV_GCC) /usr/bin/${CROSS_GNU_TYPE}-gcov \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gcc-$(PV_GCC).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gcc.1.gz \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gcov-$(PV_GCC).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gcov.1.gz dh_link -pg++-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-g++-$(PV_GPP) /usr/bin/${CROSS_GNU_TYPE}-g++ \ /usr/share/man/man1/${CROSS_GNU_TYPE}-g++-$(PV_GPP).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-g++.1.gz \ dh_link -pgfortran-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-gfortran-$(PV_GFORT) /usr/bin/${CROSS_GNU_TYPE}-gfortran \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gfortran-$(PV_GFORT).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gfortran.1.gz dh_link -pgccgo-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-gccgo-$(PV_GGO) /usr/bin/${CROSS_GNU_TYPE}-gccgo \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gccgo-$(PV_GGO).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gccgo.1.gz dh_link -pgdc-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-gdc-$(PV_GDC) /usr/bin/${CROSS_GNU_TYPE}-gdc \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gdc-$(PV_GDC).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gdc.1.gz dh_link -pgcj-${CROSS_GNU_TYPE} \ /usr/bin/${CROSS_GNU_TYPE}-gcj-$(PV_GCJ) /usr/bin/${CROSS_GNU_TYPE}-gcj \ /usr/share/man/man1/${CROSS_GNU_TYPE}-gcj-$(PV_GCJ).1.gz /usr/share/man/man1/${CROSS_GNU_TYPE}-gcj.1.gz dh_installchangelogs -pcpp-${CROSS_GNU_TYPE} mv debian/cpp-${CROSS_GNU_TYPE}/usr/share/doc/cpp-${CROSS_GNU_TYPE}/changelog \ debian/cpp-${CROSS_GNU_TYPE}/usr/share/doc/cpp-${CROSS_GNU_TYPE}/changelog.Debian dh_compress -s $(nopkgs) dh_fixperms -s $(nopkgs) dh_installdeb -s $(nopkgs) dh_gencontrol -pcpp-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_CPP) dh_gencontrol -pgcc-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GCC) dh_gencontrol -ppkg-config-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GCC) ifneq (,$(filter g++-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pg++-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GPP) endif ifneq (,$(filter gobjc-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgobjc-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GOBJC) endif ifneq (,$(filter gobjc++-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgobjc++-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GOBJCXX) endif ifneq (,$(filter gfortran-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgfortran-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GFORT) endif ifneq (,$(filter gccgo-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgccgo-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GGO) endif ifneq (,$(filter gdc-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgdc-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GDC) endif ifneq (,$(filter gcj-${CROSS_GNU_TYPE}, $(packages))) dh_gencontrol -pgcj-${CROSS_GNU_TYPE} -u-v$(EPOCH):$(CV_GCJ) endif dh_md5sums -s $(nopkgs) dh_builddeb -s $(nopkgs) binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install control: sed -e "s/CROSS_ARCH/${CROSS_ARCH}/g" \ -e "s/CROSS_GNU_TYPE/${CROSS_GNU_TYPE}/g" \ -e "s/CROSS_GNU_TYPE/${CROSS_GNU_TYPE}/g" \ -e "s/MULTILIB/${MULTILIB}/g" \ -e "s/MULTIGOLIB/${MULTIGOLIB}/g" \ -e "s/MIN_VER_EGLIBC/${MIN_VER_EGLIBC}/g" \ -e "s/MIN_VER_LINUX/${MIN_VER_LINUX}/g" \ -e "s/VER_LINUX/${VER_LINUX}/g" \ -e "s/MIN_VER_GCC/${MIN_VER_GCC}/g" \ -e "s/VER_GCC_BASE/${VER_GCC_BASE}/g" \ -e "s/EXTRA_DEPS/${EXTRA_DEPS}/g" \ -e "s/@host_archs@/${host_archs}/g" \ $(CURDIR)/debian/control.in >$(CURDIR)/debian/control