summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libwiimote/libwiimote-0.4.ebuild')
-rw-r--r--dev-libs/libwiimote/libwiimote-0.4.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-libs/libwiimote/libwiimote-0.4.ebuild b/dev-libs/libwiimote/libwiimote-0.4.ebuild
index c9284f2f0..480fd1e23 100644
--- a/dev-libs/libwiimote/libwiimote-0.4.ebuild
+++ b/dev-libs/libwiimote/libwiimote-0.4.ebuild
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="examples tilt force"
+IUSE="examples force tilt"
RDEPEND="net-wireless/bluez-libs
net-wireless/bluez-utils"
@@ -27,7 +27,15 @@ src_unpack() {
use "tilt" || sed -i -e "s:-D_ENABLE_TILT::" config.mk.in
use "force" || sed -i -e "s:-D_ENABLE_FORCE::" config.mk.in
- eautoreconf || die "eautoreconf failed"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(use_enable force) \
+ $(use_enable tilt)
+
+ emake || die "emake failed"
}
src_install() {
@@ -35,6 +43,7 @@ src_install() {
dodoc AUTHORS NEWS README TODO
if use examples; then
+ docinto examples
dodoc test/test?.c
fi
}