gcc: convert to the new template format.
This commit is contained in:
parent
35699ef72e
commit
d395b12793
|
@ -1,14 +0,0 @@
|
|||
# Template file for 'gcc-c++-multilib'.
|
||||
#
|
||||
depends="gcc-c++>=${_majorver} gcc-multilib>=${_majorver}
|
||||
libstdc++32-devel>=${_majorver}"
|
||||
short_desc="GCC C++ compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
local libmddir="usr/lib/gcc/${_triplet}/${_majorver}"
|
||||
|
||||
for f in std sup; do
|
||||
vmove usr/lib32/lib${f}c++.a ${libmddir}/32
|
||||
done
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
# Template file for 'gcc-c++'.
|
||||
#
|
||||
depends="gcc>=${_majorver} libstdc++-devel>=${_majorver}"
|
||||
short_desc="GCC C++ support"
|
||||
|
||||
do_install() {
|
||||
for f in g++ c++ ${_triplet}-g++ ${_triplet}-c++; do
|
||||
vmove usr/bin/${f} usr/bin
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1plus \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
vmove usr/share/man/man1/g++.1 usr/share/man/man1
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
# Template file for 'gcc-fortran'.
|
||||
#
|
||||
depends="gcc>=${_majorver} libgfortran-devel>=${_majorver}"
|
||||
short_desc="GCC Fortran compiler frontend"
|
||||
|
||||
do_install() {
|
||||
for f in gfortran ${_triplet}-gfortran; do
|
||||
vmove usr/bin/${f} usr/bin
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/f951 \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/finclude \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
|
||||
vmove usr/share/info/gfortran.info usr/share/info
|
||||
touch ${DESTDIR}/usr/share/info/dir
|
||||
vmove usr/share/man/man1/gfortran.1 usr/share/man/man1
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
# Template file for 'gcc-go'.
|
||||
#
|
||||
depends="gcc>=${_majorver} libgo-devel>=${_majorver}"
|
||||
short_desc="GCC Go compiler frontend"
|
||||
|
||||
do_install() {
|
||||
for f in gccgo ${_triplet}-gccgo; do
|
||||
vmove usr/bin/${f} usr/bin
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/go1 \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
|
||||
vmove usr/share/info/gccgo.info usr/share/info
|
||||
touch ${DESTDIR}/usr/share/info/dir
|
||||
vmove usr/share/man/man1/gccgo.1 usr/share/man/man1
|
||||
vmove usr/lib/go usr/lib
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
# Template file for 'gcc-c-multilib'.
|
||||
#
|
||||
depends="gcc>=${_majorver} libgcc32>=${_majorver} libgomp32>=${_majorver}
|
||||
libitm32>=${_majorver} zlib32 glibc32-devel"
|
||||
short_desc="GCC C compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
local libmddir="usr/lib/gcc/${_triplet}/${_majorver}"
|
||||
|
||||
vmove ${libmddir}/32 ${libmddir}
|
||||
vmove "usr/lib32/libssp*.a" usr/lib32
|
||||
vinstall host-${_triplet}/gcc/specs 644 ${libmddir}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'gcc-objc++'.
|
||||
#
|
||||
depends="gcc-c++>=${_majorver} gcc-objc>=${_majorver}"
|
||||
short_desc="GCC Objective-C++ support"
|
||||
|
||||
do_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1objplus \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
# Template file for 'gcc-objc-multilib'.
|
||||
#
|
||||
depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc32>=${_majorver}"
|
||||
short_desc="The GNU Objective-C compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
local libmddir="/usr/lib/gcc/${_triplet}/${_majorver}"
|
||||
|
||||
vmove "usr/lib32/libobjc*.a" ${libmddir}/32
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
# Template file for 'gcc-objc'.
|
||||
#
|
||||
depends="gcc>=${_majorver} libobjc>=${_majorver}"
|
||||
short_desc="GCC Objective-C support"
|
||||
|
||||
do_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/objc \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}/include
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1obj \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
# Template file for 'gcc-libgcc'.
|
||||
#
|
||||
short_desc="GCC version ${version} shared library support"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install()
|
||||
{
|
||||
vmove "usr/lib/libgcc_s.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# Template file for 'libgcc32'.
|
||||
#
|
||||
short_desc="GCC version ${version} shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libgcc_s.so*" usr/lib32
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
# Template file for 'libgfortran-devel'.
|
||||
#
|
||||
depends="libgfortran>=${_majorver}"
|
||||
short_desc="GCC Fortran library ${version} - development files"
|
||||
|
||||
do_install() {
|
||||
# create version -> major symlink
|
||||
vmkdir usr/lib/gcc/${_triplet}/${_majorver}
|
||||
ln -sf /usr/lib/gcc/${_triplet}/${_majorver} \
|
||||
${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
|
||||
|
||||
vmove usr/lib/libgfortran.a usr/lib
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/libgfortranbegin.a \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# Template file for 'libgfortran'.
|
||||
#
|
||||
short_desc="GCC Fortran library ${version} shared library support"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libgfortran.so*" usr/lib
|
||||
vmove usr/lib/libgfortran.spec usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libgo-devel'.
|
||||
#
|
||||
depends="libgo>=${_majorver}"
|
||||
short_desc="GCC Go library ${version} shared library support - development files"
|
||||
|
||||
do_install() {
|
||||
vmove usr/lib/libgo.a usr/lib
|
||||
vmove usr/lib/libgobegin.a usr/lib
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libgo'.
|
||||
#
|
||||
short_desc="Go library ${version} shared library support"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libgo.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Template file for 'libgomp-devel'.
|
||||
#
|
||||
depends="libgomp>=${_majorver}"
|
||||
short_desc="GCC OpenMP v3.0 shared support library - development files"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains GCC OpenMP headers and static libraries
|
||||
for OpenMP v3.0 support."
|
||||
|
||||
|
||||
|
||||
do_install() {
|
||||
vmove usr/lib/libgomp.a usr/lib
|
||||
vmove usr/share/info/libgomp.info usr/share/info
|
||||
touch ${DESTDIR}/usr/share/info/dir
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
# Template file for 'libgomp'.
|
||||
#
|
||||
short_desc="GCC OpenMP v3.0 shared support library"
|
||||
replaces="gcc>=4.6.3<4.6.3_3"
|
||||
|
||||
do_install() {
|
||||
local libmddir="usr/lib/gcc/${_triplet}/${_majorver}"
|
||||
|
||||
vmove ${libmddir}/include/omp.h ${libmddir}/include
|
||||
vmove "usr/lib/libgomp*.so*" usr/lib
|
||||
vmove usr/lib/libgomp.spec usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libgomp32'.
|
||||
#
|
||||
depends="libgcc32 glibc32"
|
||||
short_desc="GCC OpenMP v3.0 shared support library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libgomp.*" usr/lib32
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libitm'.
|
||||
#
|
||||
short_desc="GCC Transactional Memory support library"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libitm.*" usr/lib
|
||||
vmove usr/share/info/libitm.info usr/share/info
|
||||
touch ${DESTDIR}/usr/share/info/dir
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libitm'.
|
||||
#
|
||||
depends="libgcc32"
|
||||
short_desc="GCC Transactional Memory support library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libitm*" usr/lib32
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# Template file for 'gcc-libmudflap-devel'.
|
||||
#
|
||||
depends="libmudflap>=${_majorver}"
|
||||
short_desc="GCC mudflap shared support library (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libmudflap*.a" usr/lib
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'gcc-libmudflap'.
|
||||
#
|
||||
short_desc="GCC mudflap shared support library"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libmudflap*.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# Template file for 'libmudflap32-devel'.
|
||||
#
|
||||
depends="gcc-multilib glibc32-devel libmudflap32"
|
||||
short_desc="GCC 32bit mudflap support libraries (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libmudflap*.a" usr/lib32
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libmudflap32'.
|
||||
#
|
||||
depends="gcc-multilib glibc32"
|
||||
short_desc="GCC mudflap shared support libraries (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libmudflap*.so*" usr/lib32
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
# Template file for 'libobjc-devel'.
|
||||
#
|
||||
depends="libobjc>=${_majorver}"
|
||||
short_desc="GCC Objective-C shared library support (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libobjc.*a" usr/lib
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libobjc'.
|
||||
#
|
||||
short_desc="GCC Objective-C shared library support"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libobjc.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libobjc32'.
|
||||
#
|
||||
depends="libgcc32 glibc32"
|
||||
short_desc="GCC Objective-C shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libobjc.so*" usr/lib32
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# Template file for 'libquadmath-devel'.
|
||||
#
|
||||
depends="libquadmath>=${_majorver}"
|
||||
short_desc="GCC quadmath shared support library (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libquadmath*.a" usr/lib
|
||||
vmove usr/share/info/libquadmath.info usr/share/info
|
||||
touch ${DESTDIR}/usr/share/info/dir
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libquadmath'
|
||||
#
|
||||
short_desc="GCC quad match ${version} shared library support"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libquadmath.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Template file for 'libssp'.
|
||||
#
|
||||
depends="glibc-devel libssp>=${_majorver}"
|
||||
short_desc="GCC SSP library support"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the Stack Smashing Protection development
|
||||
files provided by GCC."
|
||||
|
||||
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libssp*.a" usr/lib
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/ssp \
|
||||
usr/lib/gcc/${_triplet}/${_majorver}/include
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libssp'.
|
||||
#
|
||||
short_desc="GCC SSP shared library support"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libssp.so*" usr/lib
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libssp32'.
|
||||
#
|
||||
depends="glibc32"
|
||||
short_desc="GCC SSP shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libssp.so*" usr/lib32
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# Template file for 'gcc-libstdc++-devel'.
|
||||
#
|
||||
depends="libstdc++>=${_majorver}"
|
||||
short_desc="GCC Standard C++ Library (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libstdc++.*a" usr/lib
|
||||
vmove "usr/lib/libsupc++.*" usr/lib
|
||||
vmove usr/include/c++ usr/include
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
# Template file for 'gcc-libstdc++'.
|
||||
#
|
||||
short_desc="GCC Standard C++ Library"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libstdc++.so*" usr/lib
|
||||
vmove usr/share/locale/fr/LC_MESSAGES/libstdc++.mo \
|
||||
usr/share/locale/fr/LC_MESSAGES
|
||||
vmove usr/share/locale/de/LC_MESSAGES/libstdc++.mo \
|
||||
usr/share/locale/de/LC_MESSAGES
|
||||
vinstall COPYING.RUNTIME 644 \
|
||||
usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
# Template file for 'libstdc++32-devel'.
|
||||
#
|
||||
depends="libstdc++-devel libstdc++32"
|
||||
short_desc="GCC Standard C++ Library (32bit) development files"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove usr/include/c++/${_majorver}/${_triplet}/32 \
|
||||
usr/include/c++/${_majorver}/${_triplet}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libstdc++32'.
|
||||
#
|
||||
depends="libgcc32 glibc32 libstdc++"
|
||||
short_desc="GCC Standard C++ Library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libstdc++.so*" usr/lib32
|
||||
}
|
|
@ -4,42 +4,26 @@ _majorver=4.7
|
|||
version=${_majorver}.2
|
||||
revision=2
|
||||
hostmakedepends="perl flex"
|
||||
makedepends="zlib-devel libfl-devel gmp-devel mpfr-devel mpc-devel ppl-devel>=1.0 cloog-devel"
|
||||
makedepends="zlib-devel gmp-devel mpfr-devel mpc-devel ppl-devel>=1.0 cloog-devel"
|
||||
short_desc="The GNU C Compiler"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://gcc.gnu.org"
|
||||
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
||||
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
||||
depends="binutils libgomp>=${_majorver} libitm>=${_majorver} libssp-devel>=${_majorver}"
|
||||
checksum=8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084
|
||||
|
||||
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
|
||||
# Required stuff for multilib packages.
|
||||
_triplet="${XBPS_MACHINE}-unknown-linux-gnu"
|
||||
makedepends="${makedepends} glibc32-devel"
|
||||
subpackages="gcc-multilib gcc-c++-multilib gcc-objc-multilib libgcc32
|
||||
libgomp32 libmudflap32-devel libmudflap32
|
||||
libobjc32 libssp32 libstdc++32-devel
|
||||
libstdc++32 libitm32"
|
||||
makedepends+=" glibc32-devel"
|
||||
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
||||
_triplet="arm-linux-gnueabihf"
|
||||
else
|
||||
_triplet="${XBPS_MACHINE}-pc-linux-gnu"
|
||||
_triplet="${XBPS_TARGET_MACHINE}-pc-linux-gnu"
|
||||
fi
|
||||
|
||||
disable_debug=yes
|
||||
|
||||
subpackages="${subpackages} libgcc libgo libssp libssp-devel libstdc++
|
||||
libstdc++-devel libgomp libquadmath libquadmath-devel libgo-devel
|
||||
libgomp-devel libitm libmudflap libmudflap-devel libobjc
|
||||
libobjc-devel libgfortran libgfortran-devel gcc-fortran gcc-c++
|
||||
gcc-objc gcc-objc++ gcc-go"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
# XXX enable default langs: objc, obj-c++, fortran and go.
|
||||
subpackages="libgcc libssp libssp-devel libstdc++
|
||||
libstdc++-devel libgomp libgomp-devel
|
||||
libitm libmudflap libmudflap-devel gcc-c++"
|
||||
makedepends+=" libfl-devel"
|
||||
fi
|
||||
|
||||
do_configure() {
|
||||
|
@ -133,3 +117,379 @@ do_install() {
|
|||
vinstall ${FILESDIR}/${f}.1 644 usr/share/man/man1 ${f}.1
|
||||
done
|
||||
}
|
||||
|
||||
# Multilib packages
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
|
||||
gcc-c++-multilib_package() {
|
||||
depends="gcc-c++>=${_majorver} gcc-multilib>=${_majorver} libstdc++32-devel>=${_majorver}"
|
||||
short_desc="GCC C++ compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib32/libstdc++.a
|
||||
vmove usr/lib32/libsupc++.a
|
||||
}
|
||||
}
|
||||
|
||||
gcc-c-multilib_package() {
|
||||
depends="gcc>=${_majorver} libgcc32>=${_majorver} libgomp32>=${_majorver} libitm32>=${_majorver} zlib32 glibc32-devel"
|
||||
short_desc="GCC C compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/32
|
||||
vmove "usr/lib32/libssp*.a"
|
||||
vinstall host-${_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}/32
|
||||
}
|
||||
}
|
||||
|
||||
gcc-objc-multilib_package() {
|
||||
depends="gcc-multilib>=${_majorver} gcc-objc>=${_majorver} libobjc32>=${_majorver}"
|
||||
short_desc="The GNU Objective-C compiler (multilib files)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libobjc*.a"
|
||||
}
|
||||
}
|
||||
|
||||
libgcc32_package() {
|
||||
short_desc="GCC version ${version} shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libgcc_s.so*"
|
||||
}
|
||||
}
|
||||
|
||||
libgomp32_package() {
|
||||
depends="libgcc32 glibc32"
|
||||
short_desc="GCC OpenMP v3.0 shared support library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib32/libgomp.*"
|
||||
}
|
||||
}
|
||||
|
||||
libitm32_package() {
|
||||
depends="libgcc32"
|
||||
short_desc="GCC Transactional Memory support library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libitm*"
|
||||
}
|
||||
}
|
||||
|
||||
libmudflap32-devel_package() {
|
||||
depends="gcc-multilib glibc32-devel libmudflap32"
|
||||
short_desc="GCC 32bit mudflap support libraries (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libmudflap*.a"
|
||||
}
|
||||
}
|
||||
|
||||
libmudflap32_package() {
|
||||
depends="gcc-multilib glibc32"
|
||||
short_desc="GCC mudflap shared support libraries (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libmudflap*.so*"
|
||||
}
|
||||
}
|
||||
|
||||
libobjc32_package() {
|
||||
depends="libgcc32 glibc32"
|
||||
short_desc="GCC Objective-C shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libobjc.so*"
|
||||
}
|
||||
}
|
||||
|
||||
libssp32_package() {
|
||||
depends="glibc32"
|
||||
short_desc="GCC SSP shared library support (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libssp.so*"
|
||||
}
|
||||
}
|
||||
|
||||
libstdc++32-devel_package() {
|
||||
depends="libstdc++-devel libstdc++32"
|
||||
short_desc="GCC Standard C++ Library (32bit) development files"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/include/c++/${_majorver}/${_triplet}/32
|
||||
}
|
||||
}
|
||||
|
||||
libstdc++32_package() {
|
||||
depends="libgcc32 glibc32 libstdc++"
|
||||
short_desc="GCC Standard C++ Library (32bit)"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib32/libstdc++.so*"
|
||||
}
|
||||
}
|
||||
|
||||
fi # !x86_64
|
||||
|
||||
gcc_package() {
|
||||
depends="binutils libgomp>=${_majorver} libitm>=${_majorver} libssp-devel>=${_majorver}"
|
||||
pkg_install() {
|
||||
vmove usr
|
||||
}
|
||||
}
|
||||
|
||||
gcc-c++_package() {
|
||||
depends="gcc>=${_majorver} libstdc++-devel>=${_majorver}"
|
||||
short_desc="GCC C++ support"
|
||||
|
||||
pkg_install() {
|
||||
for f in g++ c++ ${_triplet}-g++ ${_triplet}-c++; do
|
||||
vmove usr/bin/${f}
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1plus
|
||||
vmove usr/share/man/man1/g++.1
|
||||
}
|
||||
}
|
||||
|
||||
# Disabled packages in cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
|
||||
gcc-fortran_package() {
|
||||
depends="gcc>=${_majorver} libgfortran-devel>=${_majorver}"
|
||||
short_desc="GCC Fortran compiler frontend"
|
||||
|
||||
pkg_install() {
|
||||
for f in gfortran ${_triplet}-gfortran; do
|
||||
vmove usr/bin/${f}
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/f951
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/finclude
|
||||
vmove usr/share/info/gfortran.info
|
||||
vmove usr/share/man/man1/gfortran.1
|
||||
}
|
||||
}
|
||||
|
||||
gcc-go_package() {
|
||||
depends="gcc>=${_majorver} libgo-devel>=${_majorver}"
|
||||
short_desc="GCC Go compiler frontend"
|
||||
|
||||
pkg_install() {
|
||||
for f in gccgo ${_triplet}-gccgo; do
|
||||
vmove usr/bin/${f}
|
||||
done
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/go1
|
||||
vmove usr/share/info/gccgo.info
|
||||
vmove usr/share/man/man1/gccgo.1
|
||||
vmove usr/lib/go
|
||||
}
|
||||
}
|
||||
|
||||
gcc-objc_package() {
|
||||
depends="gcc>=${_majorver} libobjc>=${_majorver}"
|
||||
short_desc="GCC Objective-C support"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/objc
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1obj
|
||||
}
|
||||
}
|
||||
|
||||
gcc-objc++_package() {
|
||||
depends="gcc-c++>=${_majorver} gcc-objc>=${_majorver}"
|
||||
short_desc="GCC Objective-C++ support"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1objplus
|
||||
}
|
||||
}
|
||||
|
||||
libgfortran-devel_package() {
|
||||
depends="libgfortran>=${_majorver}"
|
||||
short_desc="GCC Fortran library ${version} - development files"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/libgfortran.a
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/libgfortranbegin.a
|
||||
}
|
||||
}
|
||||
|
||||
libgfortran_package() {
|
||||
short_desc="GCC Fortran library ${version} shared library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libgfortran.so*" usr/lib
|
||||
vmove usr/lib/libgfortran.spec usr/lib
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libgo-devel_package() {
|
||||
depends="libgo>=${_majorver}"
|
||||
short_desc="GCC Go library ${version} shared library support - development files"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/libgo.a
|
||||
vmove usr/lib/libgobegin.a
|
||||
}
|
||||
}
|
||||
|
||||
libgo_package() {
|
||||
short_desc="Go library ${version} shared library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libgo.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libobjc-devel_package() {
|
||||
depends="libobjc>=${_majorver}"
|
||||
short_desc="GCC Objective-C shared library support (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libobjc.*a"
|
||||
}
|
||||
}
|
||||
|
||||
libobjc_package() {
|
||||
short_desc="GCC Objective-C shared library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libobjc.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libquadmath-devel_package() {
|
||||
depends="libquadmath>=${_majorver}"
|
||||
short_desc="GCC quadmath shared support library (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libquadmath*.a"
|
||||
vmove usr/share/info/libquadmath.info
|
||||
}
|
||||
}
|
||||
|
||||
libquadmath_package() {
|
||||
short_desc="GCC quad match ${version} shared library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libquadmath.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
fi # !CROSS_BUILD
|
||||
|
||||
libgcc_package() {
|
||||
short_desc="GCC version ${version} shared library support"
|
||||
noverifyrdeps=yes
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libgcc_s.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libgomp-devel_package() {
|
||||
depends="libgomp>=${_majorver}"
|
||||
short_desc="GCC OpenMP v3.0 shared support library - development files"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/libgomp.a
|
||||
vmove usr/share/info/libgomp.info
|
||||
}
|
||||
}
|
||||
|
||||
libgomp_package() {
|
||||
short_desc="GCC OpenMP v3.0 shared support library"
|
||||
replaces="gcc>=4.6.3<4.6.3_3"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/omp.h
|
||||
vmove "usr/lib/libgomp*.so*"
|
||||
vmove usr/lib/libgomp.spec
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libitm_package() {
|
||||
short_desc="GCC Transactional Memory support library"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libitm.*"
|
||||
vmove usr/share/info/libitm.info
|
||||
}
|
||||
}
|
||||
|
||||
libmudflap-devel_package() {
|
||||
depends="libmudflap>=${_majorver}"
|
||||
short_desc="GCC mudflap shared support library (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libmudflap*.a"
|
||||
}
|
||||
}
|
||||
|
||||
libmudflap_package() {
|
||||
short_desc="GCC mudflap shared support library"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libmudflap*.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libssp-devel_package() {
|
||||
depends="glibc-devel libssp>=${_majorver}"
|
||||
short_desc="GCC SSP library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libssp*.a"
|
||||
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/ssp
|
||||
}
|
||||
}
|
||||
|
||||
libssp_package() {
|
||||
short_desc="GCC SSP shared library support"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libssp.so*"
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
||||
libstdc++-devel_package() {
|
||||
depends="libstdc++>=${_majorver}"
|
||||
short_desc="GCC Standard C++ Library (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libstdc++.*a"
|
||||
vmove "usr/lib/libsupc++.*"
|
||||
vmove usr/include/c++
|
||||
}
|
||||
}
|
||||
|
||||
libstdc++_package() {
|
||||
short_desc="GCC Standard C++ Library"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libstdc++.so*"
|
||||
vmove usr/share/locale/fr/LC_MESSAGES/libstdc++.mo
|
||||
vmove usr/share/locale/de/LC_MESSAGES/libstdc++.mo
|
||||
vinstall COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue