2008-10-21 02:38:29 +00:00
|
|
|
# Template build file for 'gcc'
|
|
|
|
pkgname=gcc
|
2014-05-15 14:27:24 +00:00
|
|
|
_majorver=4.9
|
|
|
|
version=${_majorver}.0
|
2014-05-19 10:49:57 +00:00
|
|
|
revision=6
|
2010-01-17 06:38:13 +00:00
|
|
|
short_desc="The GNU C Compiler"
|
2008-10-21 02:38:29 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-05 10:43:10 +00:00
|
|
|
homepage="http://gcc.gnu.org"
|
|
|
|
license="GFDL-1.2, GPL-3, LGPL-2.1"
|
2012-07-10 10:15:10 +00:00
|
|
|
distfiles="http://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
|
2014-05-15 14:27:24 +00:00
|
|
|
checksum=b9b047a97bade9c1c89970bc8e211ff57b7b8998a1730a80a653d329f8ed1257
|
2008-10-21 02:38:29 +00:00
|
|
|
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2014-05-19 10:49:57 +00:00
|
|
|
bootstrap=yes
|
|
|
|
|
|
|
|
if [ "$CHROOT_READY" ]; then
|
|
|
|
hostmakedepends="perl flex"
|
|
|
|
fi
|
|
|
|
makedepends="zlib-devel libmpc-devel>=1.0.1_2 cloog-devel>=0.18"
|
2014-05-15 14:27:24 +00:00
|
|
|
|
2014-05-16 15:35:32 +00:00
|
|
|
depends="binutils"
|
2014-05-15 14:27:24 +00:00
|
|
|
# mudflap is gone in 4.9
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="libmudflap>=0 libmudflap-devel>=0 chroot-gcc>=0"
|
2013-10-27 10:43:17 +00:00
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
if [ "$CHROOT_READY" -a -z "$CROSS_BUILD" ]; then
|
2013-10-27 10:43:17 +00:00
|
|
|
# Required by gcj
|
2013-07-21 07:07:15 +00:00
|
|
|
hostmakedepends+=" zip unzip"
|
|
|
|
fi
|
2011-07-10 15:55:00 +00:00
|
|
|
|
2013-10-27 10:43:17 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-01-18 07:34:09 +00:00
|
|
|
i686) _triplet="i686-pc-linux-gnu";;
|
|
|
|
i686-musl) _triplet="i686-pc-linux-musl";;
|
|
|
|
x86_64) _triplet="x86_64-unknown-linux-gnu";;
|
2014-05-15 14:27:24 +00:00
|
|
|
x86_64-musl) _triplet="x86_64-linux-musl";;
|
2014-03-16 11:38:10 +00:00
|
|
|
armv5tel) _triplet="arm-linux-gnueabi";;
|
2014-01-18 10:30:55 +00:00
|
|
|
armv6l) _triplet="arm-linux-gnueabihf";;
|
|
|
|
armv7l) _triplet="arm-linux-gnueabihf7";;
|
|
|
|
armv6l-musl) _triplet="arm-linux-musleabi";;
|
|
|
|
armv7l-musl) _triplet="arm-linux-musleabi7";;
|
2013-10-27 10:43:17 +00:00
|
|
|
esac
|
2013-02-18 17:49:03 +00:00
|
|
|
|
2014-01-18 16:44:18 +00:00
|
|
|
pre_configure() {
|
2010-10-27 22:44:07 +00:00
|
|
|
# As specified in the LFS book, disable installing libiberty.
|
2011-04-11 18:03:02 +00:00
|
|
|
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
|
2010-10-27 22:44:07 +00:00
|
|
|
# Do not run fixincludes
|
2011-04-11 18:03:02 +00:00
|
|
|
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
2014-05-15 14:27:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local _langs _args
|
2011-04-11 18:03:02 +00:00
|
|
|
|
2014-01-18 07:34:09 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-03-19 09:29:25 +00:00
|
|
|
armv5*) _args+=" --with-arch=armv5te --with-float=soft";;
|
2014-01-18 07:34:09 +00:00
|
|
|
armv6l*) _args+=" --with-arch=armv6 --with-fpu=vfp --with-float=hard";;
|
|
|
|
armv7l*) _args+=" --with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard";;
|
|
|
|
esac
|
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-18 17:49:03 +00:00
|
|
|
export CC_FOR_TARGET="$CC"
|
|
|
|
export GCC_FOR_TARGET="$CC"
|
|
|
|
export CXX_FOR_TARGET="$CXX"
|
2013-04-17 06:16:47 +00:00
|
|
|
|
2013-02-18 17:49:03 +00:00
|
|
|
_langs="c,c++,lto"
|
2014-05-15 14:27:24 +00:00
|
|
|
_args+=" --disable-multilib --host=$XBPS_CROSS_TRIPLET --with-build-sysroot=${XBPS_CROSS_BASE}"
|
2013-02-18 17:49:03 +00:00
|
|
|
else
|
2014-05-15 14:27:24 +00:00
|
|
|
_langs="c,c++,objc,obj-c++,fortran,lto,go,java"
|
2013-07-21 07:07:15 +00:00
|
|
|
_args+=" --enable-java-gc=boehm --enable-fast-character"
|
2013-02-18 17:49:03 +00:00
|
|
|
fi
|
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
_args+=" --with-gmp=${XBPS_MASTERDIR}/usr"
|
|
|
|
_args+=" --with-mpfr=${XBPS_MASTERDIR}/usr"
|
|
|
|
_args+=" --with-isl=${XBPS_MASTERDIR}/usr"
|
|
|
|
_args+=" --with-mpc=${XBPS_MASTERDIR}/usr"
|
|
|
|
_args+=" --with-cloog=${XBPS_MASTERDIR}/usr"
|
|
|
|
_langs="c,c++,lto"
|
|
|
|
fi
|
|
|
|
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
2013-04-17 06:16:47 +00:00
|
|
|
--infodir=/usr/share/info --libexecdir=/usr/lib \
|
2014-05-19 10:49:57 +00:00
|
|
|
--enable-clocale=gnu --libdir=/usr/lib \
|
2013-10-27 10:43:17 +00:00
|
|
|
--enable-threads=posix --enable-__cxa_atexit --disable-multilib \
|
2014-05-19 10:49:57 +00:00
|
|
|
--with-system-zlib --enable-shared --enable-lto \
|
2011-07-05 10:43:10 +00:00
|
|
|
--enable-linker-build-id --enable-gnu-unique-object \
|
2012-03-02 06:27:28 +00:00
|
|
|
--enable-checking=release --disable-libstdcxx-pch \
|
2014-05-19 10:49:57 +00:00
|
|
|
--enable-cloog-backend=isl --with-linker-hash-style=gnu \
|
2014-05-15 14:27:24 +00:00
|
|
|
--enable-languages=${_langs} ${_args}
|
2011-10-17 04:45:07 +00:00
|
|
|
}
|
|
|
|
|
2011-11-15 16:20:37 +00:00
|
|
|
do_build() {
|
2014-05-19 10:49:57 +00:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
export LD_LIBRARY_PATH="${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
fi
|
2011-10-17 22:54:01 +00:00
|
|
|
make ${makejobs}
|
2008-10-27 05:12:30 +00:00
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
pre_install() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX otherwise links to host libpthread
|
|
|
|
for f in $(find ${wrksrc}/${XBPS_CROSS_TRIPLET} -type f -name libtool); do
|
|
|
|
sed -e "s,add_dir=\"-L\$libdir\",add_dir=\"-L${XBPS_CROSS_BASE}\$libdir\",g" \
|
|
|
|
-i ${wrksrc}/${XBPS_CROSS_TRIPLET}/libsanitizer/libtool
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2011-11-15 16:20:37 +00:00
|
|
|
do_install() {
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2011-07-10 15:55:00 +00:00
|
|
|
vmkdir usr/lib
|
2013-07-21 07:07:15 +00:00
|
|
|
cd ${DESTDIR}/usr
|
|
|
|
ln -sf lib lib64
|
2009-10-18 10:28:15 +00:00
|
|
|
fi
|
2012-03-01 23:25:23 +00:00
|
|
|
cd ${wrksrc}
|
2011-04-11 18:03:02 +00:00
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2011-07-10 15:55:00 +00: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}
|
2014-01-18 07:55:27 +00:00
|
|
|
ln -sfr ${DESTDIR}/usr/lib/gcc/${_triplet}/${_majorver} \
|
|
|
|
${DESTDIR}/usr/lib/gcc/${_triplet}/${version}
|
2011-07-10 15:55:00 +00:00
|
|
|
|
|
|
|
# Ditto for c++ headers.
|
|
|
|
mv ${DESTDIR}/usr/include/c++/${version} \
|
|
|
|
${DESTDIR}/usr/include/c++/${_majorver}
|
2014-01-18 07:55:27 +00:00
|
|
|
ln -sfr ${DESTDIR}/usr/include/c++/${_majorver} \
|
|
|
|
${DESTDIR}/usr/include/c++/${version}
|
2011-07-10 15:55:00 +00:00
|
|
|
|
|
|
|
# cc symlink.
|
2014-01-18 07:55:27 +00:00
|
|
|
ln -sfr ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc
|
|
|
|
# rpcgen wants /lib/cpp, make a symlink
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/cpp ${DESTDIR}/usr/lib/cpp
|
2012-07-10 10:15:10 +00:00
|
|
|
|
2014-01-18 07:55:27 +00:00
|
|
|
if [ -e ${DESTDIR}/usr/lib64 ]; then
|
|
|
|
rm -f ${DESTDIR}/usr/lib64
|
|
|
|
fi
|
2010-10-27 22:44:07 +00:00
|
|
|
|
2011-07-05 10:43:10 +00:00
|
|
|
# Remove libffi stuff.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libffi*
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man3/ffi*
|
|
|
|
|
2010-10-27 22:44:07 +00: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 15:55:00 +00:00
|
|
|
vinstall ${FILESDIR}/${f}.sh 755 usr/bin ${f}
|
|
|
|
vinstall ${FILESDIR}/${f}.1 644 usr/share/man/man1 ${f}.1
|
2010-10-27 22:44:07 +00:00
|
|
|
done
|
2014-05-15 14:27:24 +00:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
rm -f ${DESTDIR}/usr/share/info/libquadmath.info
|
|
|
|
fi
|
2008-10-27 05:12:30 +00:00
|
|
|
}
|
2013-04-10 15:24:16 +00:00
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
# Disabled packages in bootstrap/cross builds.
|
|
|
|
if [ "$CHROOT_READY" -a -z "$CROSS_BUILD" ]; then
|
2013-04-10 15:24:16 +00:00
|
|
|
|
2013-07-21 07:07:15 +00:00
|
|
|
gcc-gcj_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2013-07-23 02:09:52 +00:00
|
|
|
depends="gcc>=${_majorver} libgcj-devel>=${_majorver} eclipse-ecj"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Java compiler frontend"
|
2013-07-21 07:07:15 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
gcc-go_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2014-05-15 14:27:24 +00:00
|
|
|
depends="gcc>=${_majorver} libgo-devel>=${_majorver}"
|
|
|
|
short_desc+=" - Go compiler frontend"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 14:27:24 +00:00
|
|
|
for f in gccgo ${_triplet}-gccgo; do
|
2013-04-10 15:24:16 +00:00
|
|
|
vmove usr/bin/${f}
|
|
|
|
done
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/go1
|
|
|
|
vmove usr/share/info/gccgo.info
|
2013-07-21 07:07:15 +00:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/share/man/man1/gccgo.1
|
|
|
|
vmove usr/lib/go
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
gcc-fortran_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2014-05-15 14:27:24 +00:00
|
|
|
depends="gcc>=${_majorver} libgfortran-devel>=${_majorver}"
|
|
|
|
short_desc+=" - Fortran compiler frontend"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 14:27:24 +00:00
|
|
|
for f in gfortran ${_triplet}-gfortran; do
|
2013-04-10 15:24:16 +00:00
|
|
|
vmove usr/bin/${f}
|
|
|
|
done
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/f951
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/finclude
|
|
|
|
vmove usr/share/info/gfortran.info
|
2013-07-21 07:07:15 +00:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/share/man/man1/gfortran.1
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:44:00 +00:00
|
|
|
gcc-objc++_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2013-04-13 08:44:00 +00:00
|
|
|
depends="gcc-c++>=${_majorver} gcc-objc>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Objective-C++ support"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2013-04-13 08:44:00 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1objplus
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:44:00 +00:00
|
|
|
gcc-objc_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2013-04-13 08:44:00 +00:00
|
|
|
depends="gcc>=${_majorver} libobjc>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Objective-C support"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2013-04-13 08:44:00 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/objc
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/cc1obj
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 07:07:15 +00:00
|
|
|
libgcj-devel_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Java library - development files"
|
2013-07-21 07:07:15 +00:00
|
|
|
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*"
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/lib/pkgconfig/libgcj-${_majorver}.pc
|
2013-07-21 07:07:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgcj_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Java libraries"
|
2013-07-21 07:07:15 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgcj*.so*"
|
|
|
|
vmove "usr/lib/libgij.so*"
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/lib/gcj-${version}-15
|
2013-07-21 07:07:15 +00:00
|
|
|
vmove usr/lib/logging.properties
|
|
|
|
vmove usr/lib/libgcj.spec
|
|
|
|
vmove usr/lib/security/classpath.security
|
|
|
|
vmove usr/share/java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-10 15:24:16 +00:00
|
|
|
libgfortran-devel_package() {
|
|
|
|
depends="libgfortran>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Fortran library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libgfortran.a
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/libgfortranbegin.a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgfortran_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Fortran library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2013-04-13 09:15:31 +00: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 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgo-devel_package() {
|
|
|
|
depends="libgo>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Go library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libgo.a
|
|
|
|
vmove usr/lib/libgobegin.a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgo_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Go library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgo.so*"
|
2013-04-13 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libobjc-devel_package() {
|
|
|
|
depends="libobjc>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Objective-C library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libobjc.*a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libobjc_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Objective-C library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libobjc.so*"
|
2013-04-13 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
fi # !CHROOT_READY || !CROSS_BUILD
|
|
|
|
|
2014-05-19 11:51:06 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
|
|
|
libquadmath-devel_package() {
|
|
|
|
depends="libquadmath>=${_majorver}"
|
|
|
|
short_desc+=" - quadmath library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/include/quadmath*"
|
|
|
|
vmove "usr/lib/libquadmath*.a"
|
|
|
|
vmove usr/share/info/libquadmath.info
|
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libquadmath_package() {
|
|
|
|
short_desc+=" - quadmath library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libquadmath.so*"
|
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fi # !CROSS_BUILD
|
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
|
|
|
|
libcilkrts-devel_package() {
|
|
|
|
depends="libcilkrts>=${_majorver}"
|
|
|
|
short_desc+=" - Intel(R) Cilk(TM) Plus runtime library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-19 10:49:57 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/cilk
|
|
|
|
vmove "usr/lib/gcc/${_triplet}/${_majorver}/plugin/include/cilk*"
|
|
|
|
vmove usr/lib/libcilkrts.so
|
|
|
|
vmove usr/lib/libcilkrts.a
|
|
|
|
vmove usr/lib/libcilkrts.spec
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
libcilkrts_package() {
|
|
|
|
short_desc+=" - Intel(R) Cilk(TM) Plus runtime library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-19 10:49:57 +00:00
|
|
|
vmove usr/lib/libcilkrts.so.*
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
libvtv-devel_package() {
|
|
|
|
depends="libvtv>=${_majorver}"
|
|
|
|
short_desc+=" - Vtable Verification Runtime Library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libvtv.a
|
|
|
|
vmove usr/lib/libvtv.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libvtv_package() {
|
|
|
|
short_desc+=" - Vtable Verification Runtime Library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libvtv.so.*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-19 10:49:57 +00:00
|
|
|
fi # !x86
|
2013-04-10 15:24:16 +00:00
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
libatomic-devel_package() {
|
|
|
|
depends="libatomic>=${_majorver}"
|
|
|
|
short_desc+=" - Atomics library - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libatomic.a
|
|
|
|
vmove usr/lib/libatomic.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libatomic_package() {
|
|
|
|
short_desc+=" - Atomics library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libatomic.so.*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-10 15:24:16 +00:00
|
|
|
libgcc_package() {
|
2014-05-19 10:56:07 +00:00
|
|
|
replaces="chroot-gcc>=0"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - GCC library"
|
2013-04-10 15:24:16 +00:00
|
|
|
noverifyrdeps=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgcc_s.so*"
|
2013-04-13 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgomp-devel_package() {
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="chroot-gcc>=0"
|
2013-04-10 15:24:16 +00:00
|
|
|
depends="libgomp>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - OpenMP v4.0 library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 15:18:42 +00:00
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/omp.h
|
|
|
|
vmove usr/lib/libgomp.so
|
2013-04-10 15:24:16 +00:00
|
|
|
vmove usr/lib/libgomp.a
|
2014-05-15 15:18:42 +00:00
|
|
|
vmove usr/lib/libgomp.spec
|
2013-04-10 15:24:16 +00:00
|
|
|
vmove usr/share/info/libgomp.info
|
2013-07-21 07:07:15 +00:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libgomp_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - OpenMP v4.0 library"
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="gcc>=4.6.3<4.6.3_3 chroot-gcc>=0"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 15:18:42 +00:00
|
|
|
vmove "usr/lib/libgomp*.so.*"
|
2013-04-13 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
libitm-devel_package() {
|
|
|
|
depends="libitm>=${_majorver}"
|
|
|
|
short_desc+=" - Transactional Memory library - development files"
|
|
|
|
replaces="libitm<4.9.0_1"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove usr/lib/libitm.a
|
|
|
|
vmove usr/lib/libitm.so
|
|
|
|
vmove usr/lib/libitm.spec
|
2013-04-10 15:24:16 +00:00
|
|
|
vmove usr/share/info/libitm.info
|
2013-07-21 07:07:15 +00:00
|
|
|
touch ${PKGDESTDIR}/usr/share/info/dir
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
libitm_package() {
|
|
|
|
short_desc+=" -Transactional Memory library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove "usr/lib/libitm.so.*"
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-15 14:27:24 +00:00
|
|
|
|
|
|
|
libsanitizer-devel_package() {
|
|
|
|
depends="libsanitizer>=${_majorver}"
|
|
|
|
short_desc+=" - Sanitizer libraries - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
2014-05-15 14:27:24 +00:00
|
|
|
vmove "usr/lib/lib*san*.so"
|
|
|
|
vmove "usr/lib/lib*san*.a"
|
|
|
|
vmove usr/lib/libasan_preinit.o
|
|
|
|
vmove usr/lib/libsanitizer.spec
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsanitizer_package() {
|
|
|
|
short_desc+=" - Sanitizer libraries"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/lib*san*.so.*"
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libssp-devel_package() {
|
|
|
|
depends="glibc-devel libssp>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - SSP (StackSmashingProtection) library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libssp*.a"
|
|
|
|
vmove usr/lib/gcc/${_triplet}/${_majorver}/include/ssp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libssp_package() {
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - SSP (StackSmashingProtection) library"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libssp.so*"
|
2013-04-13 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libstdc++-devel_package() {
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="chroot-gcc>=0"
|
2013-04-10 15:24:16 +00:00
|
|
|
depends="libstdc++>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Standard C++ Library - development files"
|
2013-04-10 15:24:16 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libstdc++.*a"
|
|
|
|
vmove "usr/lib/libsupc++.*"
|
2014-03-19 09:29:25 +00:00
|
|
|
vmove usr/include/c++
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libstdc++_package() {
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="chroot-gcc>=0"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - Standard C++ Library"
|
2013-04-10 15:24:16 +00:00
|
|
|
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 09:15:31 +00:00
|
|
|
vinstall ${wrksrc}/COPYING.RUNTIME 644 usr/share/licenses/$pkgname RUNTIME.LIBRARY.EXCEPTION
|
2013-04-10 15:24:16 +00:00
|
|
|
}
|
|
|
|
}
|
2013-04-13 08:44:00 +00:00
|
|
|
|
|
|
|
gcc-c++_package() {
|
2014-03-19 09:29:25 +00:00
|
|
|
lib32disabled=yes
|
2014-05-19 10:49:57 +00:00
|
|
|
replaces="chroot-gcc>=0"
|
2013-04-13 08:44:00 +00:00
|
|
|
depends="gcc>=${_majorver} libstdc++-devel>=${_majorver}"
|
2014-05-15 14:27:24 +00:00
|
|
|
short_desc+=" - C++ support"
|
2013-04-13 08:44:00 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|