Updated bep file for physfs to put gcc4 libs in lib/gcc4.

This commit is contained in:
Scott McCreary
2010-10-01 19:07:18 +00:00
parent fe8a64a11a
commit b97e1f19d1

View File

@@ -9,13 +9,27 @@ DEPEND="dev-util/cmake >= 2.8.0
dev-util/mercurial >= 1.4"
BUILD {
cd physfs-2.0.1
cmake .
if [ -n "$(setgcc | grep '2')" ]; then
cmake . -DLIBRARY_OUTPUT_PATH:=`finddir B_COMMON_LIB_DIRECTORY`
else
cmake . -DLIBRARY_OUTPUT_PATH:=`finddir B_COMMON_LIB_DIRECTORY`/gcc4
fi
make
}
INSTALL {
cd physfs-2.0.1
make install
if [ -n "$(setgcc | grep '4')" ]; then
if [ -e "${DESTDIR}" ]; then
mkdir -p ${DESTDIR}/tmp-phy
mv -v ${DESTDIR}/boot/common/lib ${DESTDIR}/tmp-phy
mkdir -p ${DESTDIR}/boot/common/lib/gcc4
mv -v ${DESTDIR}/tmp-phy/lib/* ${DESTDIR}/boot/common/lib/gcc4
else
mv -v /boot/common/lib/libphysfs.* /boot/common/lib/gcc4
fi
fi
}
LICENSE="PHYSFS"
COPYRIGHT="2001-2010 Ryan C. Gordon"