%rename cpp_options old_cpp_options
*cpp_options:
--nostdinc -isystem !DESTDIR!/include %{,c++:%{!std=*:-std=c++11}} %{,c++:-isystem !DESTDIR!/include/c++} %(old_cpp_options) !CPPFLAGS! -D__RUMPRUN__
+-nostdinc -isystem !DESTDIR!/include/rumprun %{,c++:%{!std=*:-std=c++11}} %{,c++:-isystem !DESTDIR!/include/rumprun/c++} %(old_cpp_options) !CPPFLAGS! -D__RUMPRUN__
%rename cc1_options old_cc1_options
MACHINE_ARCH=$(cat ${RROBJ}/.machine_arch)
- mkdir -p ${RRDEST} || die cannot create ${RRDEST}
+ mkdir -p ${RRDEST}/include/rumprun \
+ || die cannot create ${RRDEST}/include/rumprun
+
+ # copy everything except include
(
# first, move things to where we want them to be
cd ${STAGING}
ln -s ../rumprun-${MACHINE_ARCH}/lib${x}.a \
lib/rumprun-${PLATFORM}-${MACHINE_ARCH}/lib${x}.a
done
-
- tar -cf - .
+ find . -maxdepth 1 \! -path . \! -path ./include\* \
+ | xargs tar -cf -
) | (cd ${RRDEST} ; tar -xf -)
+
+ # copy include to destdir/include/rumprun
+ ( cd ${STAGING}/include ; tar -cf - . ) \
+ | ( cd ${RRDEST}/include/rumprun ; tar -xf - )
}
#