--- droidcam-2.0.ebuild 2010-12-16 11:56:54.114348296 -0600 +++ droidcam-2.0.ebuild 2010-12-13 18:33:33.169845623 -0600 @@ -11,20 +11,21 @@ LICENSE="" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="-* ~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="${DEPEND}" S="${WORKDIR}" -MODULE_NAMES="droidcam_v4l(drivers/media/video:${S}/driver:${S}/driver)" +MODULE_NAMES="droidcam_v4l(kernel/drivers/media/video:${S}/driver:${S}/driver)" src_compile() { - cd ${S}/src + cd "${S}"/src emake droidcam || die "emake droidcam failed" - cd ${S}/driver - emake -C /lib/modules/`uname -r`/build M=`pwd` || die "emake kernel module failed" + cd "${S}"/driver + ARCH=$(uname -m) + emake -C "${KV_OUT_DIR}" M=`pwd` || die "emake kernel module failed" } src_install() {