2008-10-21 04:38:29 +02:00
|
|
|
# Template build file for 'gcc'
|
|
|
|
pkgname=gcc
|
2012-03-30 12:40:29 +02:00
|
|
|
_majorver=4.7
|
2013-04-16 18:07:01 +02:00
|
|
|
version=${_majorver}.3
|
2013-08-19 09:12:31 +02:00
|
|
|
revision=6
|
2010-01-17 07:38:13 +01:00
|
|
|
short_desc="The GNU C Compiler"
|
2008-10-21 04:38:29 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-05 12:43:10 +02:00
|
|
|
homepage="http://gcc.gnu.org"
|
|
|
|
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
2012-07-10 12:15:10 +02:00
|
|
|
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
2013-04-16 18:07:01 +02:00
|
|
|
checksum=2f7c37eb4fc14422ff2358a9ef59c974a75ab41204ef0e49fc34ab1d8981a9c3
|
2008-10-21 04:38:29 +02:00
|
|
|
|
2013-04-17 08:16:47 +02:00
|
|
|
hostmakedepends="perl flex"
|
2013-07-21 09:07:15 +02:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" zip unzip"
|
|
|
|
fi
|
2013-08-19 09:14:31 +02:00
|
|
|
makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel>=1.0.1_2 ppl-devel>=1.0 cloog-devel isl-devel"
|
2013-04-17 08:16:47 +02:00
|
|
|
|
2013-04-13 11:15:31 +02:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2012-03-02 00:25:23 +01:00
|
|
|
# Required stuff for multilib packages.
|
2011-11-08 11:56:17 +01:00
|
|
|
_triplet="${XBPS_MACHINE}-unknown-linux-gnu"
|
2013-04-10 17:24:16 +02:00
|
|
|
makedepends+=" glibc32-devel"
|
2013-03-24 10:21:58 +01:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-02-18 18:49:03 +01:00
|
|
|
_triplet="arm-linux-gnueabihf"
|
2011-07-10 17:55:00 +02:00
|
|
|
else
|
2013-04-10 17:24:16 +02:00
|
|
|
_triplet="${XBPS_TARGET_MACHINE}-pc-linux-gnu"
|
2011-07-10 17:55:00 +02:00
|
|
|
fi
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-10 17:24:16 +02:00
|
|
|
makedepends+=" libfl-devel"
|
2013-02-18 18:49:03 +01:00
|
|
|
fi
|
|
|
|
|
2011-11-15 17:20:37 +01:00
|
|
|
do_configure() {
|
2013-04-17 08:16:47 +02:00
|
|
|
local _langs _args
|
|
|
|
|
2010-10-28 00:44:07 +02:00
|
|
|
# As specified in the LFS book, disable installing libiberty.
|
2011-04-11 20:03:02 +02:00
|
|
|
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
2010-10-28 00:44:07 +02:00
|
|
|
# Do not run fixincludes
|
2011-04-11 20:03:02 +02:00
|
|
|
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-18 18:49:03 +01:00
|
|
|
export CC_FOR_TARGET="$CC"
|
|
|
|
export GCC_FOR_TARGET="$CC"
|
|
|
|
export CXX_FOR_TARGET="$CXX"
|
2013-04-17 08:16:47 +02:00
|
|
|
|
2013-02-18 18:49:03 +01:00
|
|
|
_langs="c,c++,lto"
|
2013-04-17 08:16:47 +02:00
|
|
|
_args="--disable-multilib"
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
2013-07-09 15:31:28 +02:00
|
|
|
_args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard"
|
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
|
|
|
_args+=" --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard"
|
2013-04-17 08:16:47 +02:00
|
|
|
fi
|
|
|
|
_args+=" --host=$XBPS_CROSS_TRIPLET"
|
2013-02-18 18:49:03 +01:00
|
|
|
else
|
2013-07-21 09:07:15 +02:00
|
|
|
_langs="c,c++,objc,obj-c++,fortran,go,lto,java"
|
|
|
|
_args+=" --enable-java-gc=boehm --enable-fast-character"
|
2013-02-18 18:49:03 +01:00
|
|
|
fi
|
|
|
|
|
2013-04-17 08:16:47 +02:00
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info --libexecdir=/usr/lib \
|
2011-07-10 17:55:00 +02:00
|
|
|
--enable-clocale=gnu --disable-bootstrap --libdir=/usr/lib \
|
2012-03-02 00:25:23 +01:00
|
|
|
--enable-threads=posix --enable-__cxa_atexit --enable-multilib \
|
2012-03-02 07:27:28 +01:00
|
|
|
--disable-rpath --with-system-zlib --enable-shared --enable-lto \
|
2011-07-05 12:43:10 +02:00
|
|
|
--enable-linker-build-id --enable-gnu-unique-object \
|
2012-03-02 07:27:28 +01:00
|
|
|
--enable-checking=release --disable-libstdcxx-pch \
|
2012-07-01 17:27:32 +02:00
|
|
|
--with-ppl --enable-cloog-backend=isl --enable-libstdcxx-time \
|
2013-02-18 18:49:03 +01:00
|
|
|
--enable-tls --enable-languages=${_langs} ${_args}
|
2011-10-17 06:45:07 +02:00
|
|
|
}
|
|
|
|
|
2011-11-15 17:20:37 +01:00
|
|
|
do_build() {
|
2011-10-18 00:54:01 +02:00
|
|
|
make ${makejobs}
|
2008-10-27 06:12:30 +01:00
|
|
|
}
|
|
|
|
|
2011-11-15 17:20:37 +01:00
|
|
|
do_install() {
|
2013-03-24 10:21:58 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2011-07-10 17:55:00 +02:00
|
|
|
vmkdir usr/lib
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${DESTDIR}/usr
|
|
|
|
ln -sf lib lib64
|
2009-10-18 12:28:15 +02:00
|
|
|
fi
|
2012-03-02 00:25:23 +01:00
|
|
|
cd ${wrksrc}
|
2011-04-11 20:03:02 +02:00
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2011-07-10 17:55:00 +02:00
|
|
|
# Make version a symlink of major version to make all versions
|
|
|
|
# from the same series work automagically.
|
|
|
|
mv ${DESTDIR}/usr/lib/gcc/${_triplet}/${version} \
|
|
|
|
${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${DESTDIR}/usr/lib/gcc/${_triplet}
|
|
|
|
ln -sf ${_majorver} ${version}
|
2011-07-10 17:55:00 +02:00
|
|
|
|
|
|
|
# Ditto for c++ headers.
|
|
|
|
mv ${DESTDIR}/usr/include/c++/${version} \
|
|
|
|
${DESTDIR}/usr/include/c++/${_majorver}
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${DESTDIR}/usr/include/c++
|
|
|
|
ln -sf ${_majorver} ${version}
|
2011-07-10 17:55:00 +02:00
|
|
|
|
|
|
|
# cc symlink.
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${DESTDIR}/usr/bin
|
|
|
|
ln -sf gcc cc
|
2009-03-14 01:00:19 +01:00
|
|
|
# rpcgen wants /lib/cpp, make a symlink.
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${DESTDIR}/usr/lib
|
|
|
|
ln -sf ../bin/cpp .
|
2012-07-10 12:15:10 +02:00
|
|
|
|
2010-01-27 02:42:27 +01:00
|
|
|
rm -f ${DESTDIR}/usr/lib64
|
2010-10-28 00:44:07 +02:00
|
|
|
|
2011-07-05 12:43:10 +02:00
|
|
|
# Remove libffi stuff.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libffi*
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man3/ffi*
|
|
|
|
|
2012-03-02 00:25:23 +01:00
|
|
|
# Remove unused stuff for multilib.
|
2013-03-24 10:21:58 +01:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2013-02-18 18:49:03 +01:00
|
|
|
if [ -d ${DESTDIR}/usr/lib32 ]; then
|
|
|
|
rm -f ${DESTDIR}/usr/lib32/libffi*
|
|
|
|
rm -f ${DESTDIR}/usr/lib32/libgfortran*
|
|
|
|
rm -f ${DESTDIR}/usr/lib32/libgo.{a,so*}
|
|
|
|
rm -f ${DESTDIR}/usr/lib32/libgobegin.a
|
|
|
|
rm -f ${DESTDIR}/usr/lib32/libquadmath*
|
|
|
|
rm -rf ${DESTDIR}/usr/lib32/go
|
|
|
|
fi
|
2012-03-02 00:25:23 +01:00
|
|
|
fi
|
|
|
|
|
2010-10-28 00:44:07 +02:00
|
|
|
# Remove all python scripts in libdir.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.py
|
|
|
|
|
|
|
|
# Remove more python stuff.
|
|
|
|
if [ -d ${DESTDIR}/usr/share/gcc-${version}/python ]; then
|
|
|
|
rm -rf ${DESTDIR}/usr/share/gcc-${version}/python
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Install c89 and c99 wrappers and its manpages, from NetBSD.
|
|
|
|
for f in c89 c99; do
|
2011-07-10 17:55:00 +02:00
|
|
|
vinstall ${FILESDIR}/${f}.sh 755 usr/bin ${f}
|
|
|
|
vinstall ${FILESDIR}/${f}.1 644 usr/share/man/man1 ${f}.1
|
2010-10-28 00:44:07 +02:00
|
|
|
done
|
2008-10-27 06:12:30 +01:00
|
|
|
}
|
2013-04-10 17:24:16 +02:00
|
|
|
|
|
|
|
# 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() {
|
2013-04-15 16:51:30 +02:00
|
|
|
vmkdir usr/lib/gcc/${_triplet}/${_majorver}/32
|
|
|
|
mv ${DESTDIR}/usr/lib32/libstdc++.a \
|
|
|
|
${PKGDESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/32
|
|
|
|
mv ${DESTDIR}/usr/lib32/libsupc++.a \
|
|
|
|
${PKGDESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/32
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 11:15:31 +02:00
|
|
|
gcc-multilib_package() {
|
2013-04-10 17:24:16 +02:00
|
|
|
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"
|
2013-04-15 16:51:30 +02:00
|
|
|
vinstall ${wrksrc}/host-${_triplet}/gcc/specs 644 usr/lib/gcc/${_triplet}/${_majorver}
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2013-04-15 16:51:30 +02:00
|
|
|
vmkdir usr/lib/gcc/${_triplet}/${_majorver}/32
|
|
|
|
mv ${DESTDIR}/usr/lib32/libobjc*.a \
|
|
|
|
${PKGDESTDIR}/usr/lib/gcc/${_triplet}/${_majorver}/32
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgcc32_package() {
|
|
|
|
short_desc="GCC version ${version} shared library support (32bit)"
|
|
|
|
noverifyrdeps=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib32/libgcc_s.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 09:07:15 +02:00
|
|
|
libgcj32_package() {
|
|
|
|
short_desc="GCC Java library ${version} shared library support (32bit)"
|
|
|
|
noverifyrdeps=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib32/libgcj*.so*"
|
|
|
|
vmove "usr/lib32/libgij.so*"
|
|
|
|
vmove usr/lib32/gcj-${version}-13
|
|
|
|
vmove usr/lib32/logging.properties
|
|
|
|
vmove usr/lib32/security/classpath.security
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-10 17:24:16 +02:00
|
|
|
libgomp32_package() {
|
|
|
|
depends="libgcc32 glibc32"
|
|
|
|
short_desc="GCC OpenMP v3.0 shared support library (32bit)"
|
|
|
|
noverifyrdeps=yes
|
2013-04-13 11:15:31 +02:00
|
|
|
pkg_install() {
|
2013-04-10 17:24:16 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
# Disabled packages in cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
2013-07-21 09:07:15 +02:00
|
|
|
gcc-gcj_package() {
|
2013-07-23 04:09:52 +02:00
|
|
|
depends="gcc>=${_majorver} libgcj-devel>=${_majorver} eclipse-ecj"
|
2013-07-21 09:07:15 +02:00
|
|
|
short_desc="GCC Java compiler frontend"
|
|
|
|
pkg_install() {
|
|
|
|
for f in gcj jv-convert gjarsigner gjar grmic jcf-dump \
|
|
|
|
gtnameserv gcjh gnative2ascii gserialver gkeytool \
|
|
|
|
gij grmiregistry grmid gorbd gcj-dbtool gjavah \
|
|
|
|
gc-analyze gappletviewer rebuild-gcj-db aot-compile; do
|
|
|
|
vmove usr/bin/${f}
|
|
|
|
done
|
|
|
|
for f in gcj jv-convert gjarsigner gjar grmic jcf-dump gjdoc \
|
|
|
|
gtnameserv gcjh gnative2ascii gserialver gkeytool \
|
|
|
|
gij grmiregistry grmid gorbd gcj-dbtool gjavah \
|
|
|
|
gc-analyze gappletviewer rebuild-gcj-db aot-compile; do
|
|
|
|
if [ -f ${DESTDIR}/usr/share/man/man1/${f}.1 ]; then
|
|
|
|
vmove usr/share/man/man1/${f}.1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
vmove usr/bin/${_triplet}-gcj
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/jc1
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/jvgenmain
|
|
|
|
vmove usr/share/info/gcj.info
|
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-10 17:24:16 +02:00
|
|
|
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
|
2013-07-21 09:07:15 +02:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 17:24:16 +02:00
|
|
|
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
|
2013-07-21 09:07:15 +02:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 17:24:16 +02:00
|
|
|
vmove usr/share/man/man1/gccgo.1
|
|
|
|
vmove usr/lib/go
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:44:00 +02:00
|
|
|
gcc-objc++_package() {
|
|
|
|
depends="gcc-c++>=${_majorver} gcc-objc>=${_majorver}"
|
|
|
|
short_desc="GCC Objective-C++ support"
|
2013-04-10 17:24:16 +02:00
|
|
|
pkg_install() {
|
2013-04-13 10:44:00 +02:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1objplus
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:44:00 +02:00
|
|
|
gcc-objc_package() {
|
|
|
|
depends="gcc>=${_majorver} libobjc>=${_majorver}"
|
|
|
|
short_desc="GCC Objective-C support"
|
2013-04-10 17:24:16 +02:00
|
|
|
pkg_install() {
|
2013-04-13 10:44:00 +02:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/objc
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1obj
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 09:07:15 +02:00
|
|
|
libgcj-devel_package() {
|
|
|
|
short_desc="GCC Java library ${version} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/c++/${_majorver}/gnu
|
|
|
|
vmove usr/include/c++/${_majorver}/java
|
|
|
|
vmove usr/include/c++/${_majorver}/javax
|
|
|
|
vmove usr/include/c++/${_majorver}/sun
|
|
|
|
vmove usr/include/c++/${_majorver}/gcj
|
|
|
|
vmove usr/include/c++/${_majorver}/org
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/plugin/include/java
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/jni*"
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/gcj*"
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/jvm*"
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/jawt*"
|
|
|
|
vmove usr/lib/pkgconfig/libgcj-4.7.pc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgcj_package() {
|
|
|
|
short_desc="GCC Java library ${version} shared library support"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgcj*.so*"
|
|
|
|
vmove "usr/lib/libgij.so*"
|
|
|
|
vmove usr/lib/gcj-${version}-13
|
|
|
|
vmove usr/lib/logging.properties
|
|
|
|
vmove usr/lib/libgcj.spec
|
|
|
|
vmove usr/lib/security/classpath.security
|
|
|
|
vmove usr/share/java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-10 17:24:16 +02:00
|
|
|
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() {
|
2013-04-13 11:15:31 +02:00
|
|
|
vmove "usr/lib/libgfortran.so*"
|
|
|
|
vmove usr/lib/libgfortran.spec
|
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libquadmath-devel_package() {
|
|
|
|
depends="libquadmath>=${_majorver}"
|
|
|
|
short_desc="GCC quadmath shared support library (development files)"
|
|
|
|
pkg_install() {
|
2013-07-21 09:07:15 +02:00
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/quadmath*"
|
2013-04-10 17:24:16 +02:00
|
|
|
vmove "usr/lib/libquadmath*.a"
|
|
|
|
vmove usr/share/info/libquadmath.info
|
2013-07-21 09:07:15 +02:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libquadmath_package() {
|
|
|
|
short_desc="GCC quad match ${version} shared library support"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libquadmath.so*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fi # !CROSS_BUILD
|
|
|
|
|
|
|
|
libgcc_package() {
|
|
|
|
short_desc="GCC version ${version} shared library support"
|
|
|
|
noverifyrdeps=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgcc_s.so*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-07-21 09:07:15 +02:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libitm_package() {
|
|
|
|
short_desc="GCC Transactional Memory support library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libitm.*"
|
|
|
|
vmove usr/share/info/libitm.info
|
2013-07-21 09:07:15 +02:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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*"
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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++.*"
|
2013-07-21 09:07:15 +02:00
|
|
|
for f in ${DESTDIR}/usr/include/c++/${_majorver}/*; do
|
|
|
|
[ "$(basename $f)" = "${_triplet}" ] && continue
|
|
|
|
vmove usr/include/c++/${_majorver}/$(basename $f)
|
|
|
|
done
|
2013-04-13 11:15:31 +02:00
|
|
|
vmove usr/include/c++/${_majorver}/${_triplet}/bits
|
2013-07-21 09:07:15 +02:00
|
|
|
cd ${PKGDESTDIR}/usr/include/c++
|
|
|
|
ln -sf ${_majorver} ${version}
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2013-04-13 11:15:31 +02:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 17:24:16 +02:00
|
|
|
}
|
|
|
|
}
|
2013-04-13 10:44:00 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gcc_package() {
|
|
|
|
depends="binutils libgomp>=${_majorver} libitm>=${_majorver} libssp-devel>=${_majorver}"
|
|
|
|
pkg_install() {
|
2013-07-21 09:07:15 +02:00
|
|
|
if [ -d ${DESTDIR}/usr/lib/pkgconfig ]; then
|
|
|
|
rmdir ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
fi
|
|
|
|
if [ -d ${DESTDIR}/usr/lib/security ]; then
|
|
|
|
rmdir ${DESTDIR}/usr/lib/security
|
|
|
|
fi
|
|
|
|
rm -rf ${DESTDIR}/usr/include/c++
|
2013-07-09 15:31:28 +02:00
|
|
|
vmove all
|
2013-04-13 10:44:00 +02:00
|
|
|
}
|
|
|
|
}
|