diff options
author | Christoph Brill (egore) <egore@gmx.de> | 2008-02-16 00:23:48 +0000 |
---|---|---|
committer | Christoph Brill (egore) <egore@gmx.de> | 2008-02-16 00:23:48 +0000 |
commit | 1d2f5dbf4bc6976620e9c60298ed2eb2a391ca71 (patch) | |
tree | 4f57a5b24fa01127be80e9e285a11048603b7dbe /dev-libs/libwiimote | |
parent | Add use flags for libwiimote (diff) | |
download | sunrise-reviewed-1d2f5dbf4bc6976620e9c60298ed2eb2a391ca71.tar.gz sunrise-reviewed-1d2f5dbf4bc6976620e9c60298ed2eb2a391ca71.tar.bz2 sunrise-reviewed-1d2f5dbf4bc6976620e9c60298ed2eb2a391ca71.zip |
dev-libs/libwiimote: New Ebuilds for bug 196324 (the 0.4 release sucks and the live svn is in a flux)
svn path=/sunrise/; revision=5659
Diffstat (limited to 'dev-libs/libwiimote')
-rw-r--r-- | dev-libs/libwiimote/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/libwiimote/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/libwiimote/files/libwiimote-amd64.patch | 11 | ||||
-rw-r--r-- | dev-libs/libwiimote/files/libwiimote-as-needed.patch | 21 | ||||
-rw-r--r-- | dev-libs/libwiimote/libwiimote-0.4.ebuild | 36 | ||||
-rw-r--r-- | dev-libs/libwiimote/libwiimote-9999.ebuild | 44 | ||||
-rw-r--r-- | dev-libs/libwiimote/metadata.xml | 5 |
7 files changed, 134 insertions, 0 deletions
diff --git a/dev-libs/libwiimote/ChangeLog b/dev-libs/libwiimote/ChangeLog new file mode 100644 index 000000000..40083d215 --- /dev/null +++ b/dev-libs/libwiimote/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/libwiimote +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 16 Feb 2008; Christoph Brill (egore) egore@gmx.de + +files/libwiimote-amd64.patch, +files/libwiimote-as-needed.patch, + +metadata.xml, +libwiimote-0.4.ebuild, +libwiimote-9999.ebuild: + New Ebuilds for bug 196324 (the 0.4 release sucks and the live svn is in a + flux) + diff --git a/dev-libs/libwiimote/Manifest b/dev-libs/libwiimote/Manifest new file mode 100644 index 000000000..c17789d3c --- /dev/null +++ b/dev-libs/libwiimote/Manifest @@ -0,0 +1,7 @@ +AUX libwiimote-amd64.patch 397 RMD160 b51df3594b6f2c2e1d3772abb1cf663db1d5243d SHA1 f34d5ffdb87d78118399af5e3cb2f91772fe962e SHA256 bb100931e55920017247e4835e153b8c370a8490a8a451e56af6669aa14b4a02 +AUX libwiimote-as-needed.patch 496 RMD160 24d5c589b6c15cfcc0701279c7af67f9921c0b3f SHA1 c45b90c9831b5f94f0726d37f47f3f23578c88df SHA256 550e482c40662970777eada373c79cecc169916af6dd3a42d22a2f84f5e92a44 +DIST libwiimote-0.4.tgz 30857 RMD160 4fefc82cd577404a9aefda2d40144cb2c6d9c6c8 SHA1 79b1639d481b35eb6df7b83877f9438944ec389c SHA256 a1e9d45a0d4dd367f1371dd477e30ecaa95e59b9fb8635dc9e7f26e4eb231d90 +EBUILD libwiimote-0.4.ebuild 866 RMD160 3bc240d785299eeac0ee3ee04a371ca356f494bf SHA1 694a6efa6fe6b19b252e93d9cc6cb3f9cf151c28 SHA256 139f6d1f7ec23dc3388b8cba4adf0625a2b0ca7b3eada0d9e8163ceae5759fe3 +EBUILD libwiimote-9999.ebuild 1097 RMD160 89bce7a21cbae87677bfb533e6809c22eaf19170 SHA1 5c7150291a70cb81973c687313c99baff0834050 SHA256 6381f1647efecc5e9a9ee6ebea04ce21bbfaaaca674b740de7a9fa0ab9eda815 +MISC ChangeLog 392 RMD160 64914cd3c25a141f6662c0039f1ee91771eaed7d SHA1 4f04a4c7675b8b389fded5002ba2edcd004ca233 SHA256 217e2e59bcfd541be768ad89cbb0a3691e594db846c6b38bcb7191bd7ab05745 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/dev-libs/libwiimote/files/libwiimote-amd64.patch b/dev-libs/libwiimote/files/libwiimote-amd64.patch new file mode 100644 index 000000000..cb03de6fc --- /dev/null +++ b/dev-libs/libwiimote/files/libwiimote-amd64.patch @@ -0,0 +1,11 @@ +--- config.mk.in 2007-03-08 03:27:37.000000000 +0100 ++++ config.mk.in.new 2007-10-18 21:02:49.000000000 +0200 +@@ -7,7 +7,7 @@ + CC:=@CC@ + DEFS:=-D_ENABLE_TILT -D_ENABLE_FORCE #-D_DISABLE_NONBLOCK_UPDATES -D_DISABLE_AUTO_SELECT_DEVICE + #CFLAGS:=-O3 -march=athlon-xp -Wall -pipe +-CFLAGS:=-Os -Wall -pipe $(DEFS) @CFLAGS@ ++CFLAGS:= @CFLAGS@ -fPIC $(DEFS) + INCLUDES:=-I$(topdir)/src + LIBS:=@LDFLAGS@ + diff --git a/dev-libs/libwiimote/files/libwiimote-as-needed.patch b/dev-libs/libwiimote/files/libwiimote-as-needed.patch new file mode 100644 index 000000000..d8ba98356 --- /dev/null +++ b/dev-libs/libwiimote/files/libwiimote-as-needed.patch @@ -0,0 +1,21 @@ +--- configure.in.org 2007-03-10 15:46:36.000000000 +0100 ++++ configure.in 2007-12-14 10:45:18.000000000 +0100 +@@ -15,6 +15,5 @@ + + AC_CONFIG_FILES([config.mk + Makefile +- src/Makefile +- test/Makefile]) ++ src/Makefile]) + AC_OUTPUT +--- Makefile.in.org 2007-02-22 15:54:54.000000000 +0100 ++++ Makefile.in 2007-12-14 10:46:35.000000000 +0100 +@@ -13,7 +13,7 @@ + topdir=. + include $(topdir)/config.mk + +-subdirs=src test ++subdirs=src + + all: subdirs + diff --git a/dev-libs/libwiimote/libwiimote-0.4.ebuild b/dev-libs/libwiimote/libwiimote-0.4.ebuild new file mode 100644 index 000000000..3fe365dfc --- /dev/null +++ b/dev-libs/libwiimote/libwiimote-0.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools + +DESCRIPTION="Library to connect to the Nintendo Wii remote" +HOMEPAGE="http://libwiimote.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tilt force" + +DEPEND="net-wireless/bluez-libs + net-wireless/bluez-utils" +RDEPEND="${DEPEND} + dev-util/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-amd64.patch" + epatch "${FILESDIR}/${PN}-as-needed.patch" + + 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" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS NEWS README TODO +} diff --git a/dev-libs/libwiimote/libwiimote-9999.ebuild b/dev-libs/libwiimote/libwiimote-9999.ebuild new file mode 100644 index 000000000..df94dff48 --- /dev/null +++ b/dev-libs/libwiimote/libwiimote-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils subversion autotools flag-o-matic +ESVN_REPO_URI="https://libwiimote.svn.sourceforge.net/svnroot/libwiimote/branches/ant" +ESVN_PROJECT="libwiimote" + +DESCRIPTION="Library to connect to the Nintendo Wii remote (svn snapshot)" +HOMEPAGE="http://libwiimote.sourceforge.net" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples tilt force" + +RDEPEND="net-wireless/bluez-libs" +DEPEND="${RDEPEND}" + +src_compile() { + + cd "${S}" + eautoreconf || die "eautoreconf failed" + + econf \ + $(use_enable force force) \ + $(use_enable tilt tilt) \ + || die "Error: econf failed!" + + emake || die "emake failed" +} + + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc AUTHORS NEWS README TODO + + if use examples; then + elog "Installing test programs with sources in /usr/share/doc/${PF}/${DOCDESTTREE}" + dodir /usr/share/doc/${PF}/${DOCDESTTREE} + cp "${S}/test/test? ${D}usr/share/doc/${PF}/${DOCDESTTREE}" + dodoc "${S}/test/test?.c" + fi +} diff --git a/dev-libs/libwiimote/metadata.xml b/dev-libs/libwiimote/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/dev-libs/libwiimote/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |