Index: google-earth/Makefile =================================================================== --- google-earth/Makefile (revision 315714) +++ google-earth/Makefile (working copy) @@ -49,9 +49,10 @@ IGNORE= needs non-default linux ports (define OVERRIDE_LINUX_BASE_PORT=f10 and OVERRIDE_LINUX_NONBASE_PORTS=f10) .endif -.if ${OSVERSION} >= 900000 && ${ARCH} == "amd64" -BROKEN= seems to crash on >= 9.x/amd64: http://www.freebsd.org/cgi/query-pr.cgi?pr=160422 -.endif +# Fixed by the first post-patch target line? Also, linprocfs needs to be mounted. +#.if ${OSVERSION} >= 900000 && ${ARCH} == "amd64" +#BROKEN= seems to crash on >= 9.x/amd64: http://www.freebsd.org/cgi/query-pr.cgi?pr=160422 +#.endif do-extract: @${MKDIR} ${WRKSRC} @@ -61,6 +62,7 @@ @cd ${WRKSRC} && ${TAR} xf googleearth-linux-x86.tar && ${RM} -f googleearth-linux-x86.tar post-patch: + @${REINPLACE_CMD} -i "" -e '/OS.*=/s|linux|FreeBSD|' ${WRKSRC}/drivers.ini @${REINPLACE_CMD} -i "" -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|' ${WRKSRC}/bin/googleearth @${REINPLACE_CMD} -i "" -e "s|^# Let's boogie.*|rm -f \$${HOME}/.googleearth/instance-running-lock|" ${WRKSRC}/bin/googleearth @${REINPLACE_CMD} -i "" -e 's/^TMPPATH.*/exit 0/' ${WRKSRC}/postinstall.sh