--- dbus-1.2.1.ebuild 2008-04-05 06:13:41 +0000 +++ dbus-1.2.1.ebuild 2008-06-03 14:26:55 +0000 @@ -22,6 +22,17 @@ dev-util/pkgconfig doc? ( app-doc/doxygen app-text/xmlto )" +src_unpack() { + unpack ${A} + cd "${S}" + + # freebsd 6.x do not support -fPIE, we need to patch the configure and + # remove the -fPIE declaration (it's a warkaround, fbsd 7.x support -fPIE). + if use kernel_FreeBSD; then + epatch "${FILESDIR}/${P}_fbsd.patch" + eautoreconf + fi +} src_compile() { # so we can get backtraces from apps