diff --git a/dev-games/physfs/physfs-2.0.1.bep b/dev-games/physfs/physfs-2.0.1.bep index be6fc0300..570b0cfb1 100644 --- a/dev-games/physfs/physfs-2.0.1.bep +++ b/dev-games/physfs/physfs-2.0.1.bep @@ -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"