2009-02-24 06:13:11 +00:00
|
|
|
# Template file for 'gcc-c++'.
|
|
|
|
#
|
|
|
|
short_desc="GCC C++ support"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This package contains GCC C++ support."
|
|
|
|
|
2009-11-22 07:31:44 +00:00
|
|
|
revision=1
|
|
|
|
|
2009-04-24 15:37:34 +00:00
|
|
|
Add_dependency run gcc
|
2009-11-22 07:31:44 +00:00
|
|
|
Add_dependency run libstdc++-devel
|
|
|
|
|
|
|
|
revision=1
|
2009-02-24 06:13:11 +00:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
local triplet=
|
|
|
|
|
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
triplet="${xbps_machine}-unknown-linux-gnu"
|
|
|
|
else
|
|
|
|
triplet="${xbps_machine}-pc-linux-gnu"
|
|
|
|
fi
|
|
|
|
|
2009-03-11 05:31:56 +00:00
|
|
|
mkdir -p ${DESTDIR}/usr/lib
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
|
|
mkdir -p ${DESTDIR}/usr/share/man/man1
|
|
|
|
mkdir -p ${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
|
2009-02-24 06:13:11 +00:00
|
|
|
|
|
|
|
for f in g++ c++ ${triplet}-g++ ${triplet}-c++; do
|
2009-03-11 05:31:56 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/bin/${f} ${DESTDIR}/usr/bin
|
2009-02-24 06:13:11 +00:00
|
|
|
done
|
2009-03-11 05:31:56 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/libexec/gcc/${triplet}/${version}/cc1plus \
|
|
|
|
${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
|
2009-02-24 06:13:11 +00:00
|
|
|
|
2009-03-11 05:31:56 +00:00
|
|
|
mv ${SRCPKGDESTDIR}/usr/share/man/man1/g++.1 \
|
|
|
|
${DESTDIR}/usr/share/man/man1
|
2009-02-24 06:13:11 +00:00
|
|
|
}
|