vp-build/templates/gcc/objc.template
Juan RP 84222395b8 Provide some vars for use in template's targets.
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version),
SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR
(XBPS_TEMPLATESDIR/pkgname/files).

This simplifies packages that used them.

--HG--
extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
2009-03-11 06:31:56 +01:00

31 lines
791 B
Plaintext

# Template file for 'gcc-objc'.
#
short_desc="GCC Objective-C support"
long_desc="${long_desc}
This package contains GCC Objective-C support."
Add_dependency run gmp
Add_dependency run mpfr
Add_dependency run gcc
Add_dependency run gcc-libobjc
do_install()
{
local triplet=
if [ "${xbps_machine}" = "x86_64" ]; then
triplet="${xbps_machine}-unknown-linux-gnu"
else
triplet="${xbps_machine}-pc-linux-gnu"
fi
mkdir -p ${DESTDIR}//usr/lib/gcc/${triplet}/${version}
mkdir -p ${DESTDIR}/usr/libexec/gcc/${triplet}/${version}/include
mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/objc \
${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include
mv ${SRCPKGDESTDIR}/usr/libexec/gcc/${triplet}/${version}/cc1obj \
${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
}