summaryrefslogtreecommitdiff
path: root/extra/bluez
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-11 23:14:45 +0000
committerroot <root@rshg054.dnsready.net>2012-01-11 23:14:45 +0000
commit3a0439ec6aea4411ac6d11c90cd8220f8f12a660 (patch)
treeadc6bcfb43847a9615413defa99b7a0946d22565 /extra/bluez
parentb8012183bbaae70ce4a714c618a967e85df9f521 (diff)
Wed Jan 11 23:14:45 UTC 2012
Diffstat (limited to 'extra/bluez')
-rw-r--r--extra/bluez/PKGBUILD26
-rw-r--r--extra/bluez/make-libcheck-optional.patch79
2 files changed, 95 insertions, 10 deletions
diff --git a/extra/bluez/PKGBUILD b/extra/bluez/PKGBUILD
index 920c6437a..3d3f31c46 100644
--- a/extra/bluez/PKGBUILD
+++ b/extra/bluez/PKGBUILD
@@ -1,10 +1,11 @@
-# $Id: PKGBUILD 145250 2011-12-20 08:51:40Z andrea $
-# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# $Id: PKGBUILD 146412 2012-01-10 21:47:26Z andrea $
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
pkgname=bluez
-pkgver=4.96
-pkgrel=3
+pkgver=4.97
+pkgrel=1
pkgdesc="Libraries and tools for the Bluetooth protocol stack"
url="http://www.bluez.org/"
arch=('i686' 'x86_64')
@@ -24,17 +25,21 @@ replaces=('bluez-libs' 'bluez-utils')
options=('!libtool' 'emptydirs')
backup=(etc/bluetooth/{main,rfcomm,audio,network,input,serial}.conf
'etc/conf.d/bluetooth' 'etc/dbus-1/system.d/bluetooth.conf')
-#source=("http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2"
-source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+source=("http://www.kernel.org/pub/linux/bluetooth/${pkgname}-${pkgver}.tar.bz2"
'bluetooth.conf.d'
- 'rc.bluetooth')
-md5sums=('255c3dda8b93210ab0dcf8d04ddaf69f'
+ 'rc.bluetooth'
+ 'make-libcheck-optional.patch')
+md5sums=('b302cee7f9b9527d29775449d7e1dfe6'
'7412982b440f29fa7f76a41a87fef985'
- '8f9498707f809506928b2e480d3b6789')
+ '8f9498707f809506928b2e480d3b6789'
+ 'f112fc5bcaeecc7b6ea994f14786e235')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}"/make-libcheck-optional.patch
+ autoreconf -i -f
+
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -50,7 +55,8 @@ build() {
--enable-pand \
--enable-dund \
--enable-cups \
- --enable-wiimote
+ --enable-wiimote \
+ --disable-test
make
}
diff --git a/extra/bluez/make-libcheck-optional.patch b/extra/bluez/make-libcheck-optional.patch
new file mode 100644
index 000000000..a315a3898
--- /dev/null
+++ b/extra/bluez/make-libcheck-optional.patch
@@ -0,0 +1,79 @@
+From: Marcel Holtmann <marcel@holtmann.org>
+Date: Wed, 28 Dec 2011 04:09:56 +0000 (-0800)
+Subject: build: Move libcheck under TEST conditional
+X-Git-Url: http://git.kernel.org/?p=bluetooth%2Fbluez.git;a=commitdiff_plain;h=bf5d45f2fbd1b1463512f4eb8d30bffb3478ccc7;hp=ec632165d6707bece074dbba43d704e26346ab0a
+
+build: Move libcheck under TEST conditional
+---
+
+diff --git a/Makefile.am b/Makefile.am
+index 9112483..5cf287c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -449,6 +449,7 @@ endif
+
+ unit_objects =
+
++if TEST
+ unit_tests = unit/test-eir
+
+ noinst_PROGRAMS += $(unit_tests)
+@@ -456,8 +457,10 @@ noinst_PROGRAMS += $(unit_tests)
+ unit_test_eir_SOURCES = unit/test-eir.c src/eir.c src/glib-helper.c
+ unit_test_eir_LDADD = lib/libbluetooth-private.la @GLIB_LIBS@ @CHECK_LIBS@
+ unit_test_eir_CFLAGS = $(AM_CFLAGS) @CHECK_CFLAGS@
+-unit_test_eir_SHORTNAME = unit
+ unit_objects += $(unit_test_eir_OBJECTS)
++else
++unit_tests =
++endif
+
+ TESTS = $(unit_tests)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 2097d77..753b994 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -170,6 +170,12 @@ AC_DEFUN([AC_PATH_READLINE], [
+ [])
+ ])
+
++AC_DEFUN([AC_PATH_CHECK], [
++ PKG_CHECK_MODULES(CHECK, check >= 0.9.4, check_found=yes, check_found=no)
++ AC_SUBST(CHECK_CFLAGS)
++ AC_SUBST(CHECK_LIBS)
++])
++
+ AC_DEFUN([AC_PATH_OUI], [
+ AC_ARG_WITH(ouifile,
+ AS_HELP_STRING([--with-ouifile=PATH],[Path to the oui.txt file @<:@auto@:>@]),
+@@ -422,7 +428,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
+ AM_CONDITIONAL(PAND, test "${pand_enable}" = "yes")
+ AM_CONDITIONAL(DUND, test "${dund_enable}" = "yes")
+ AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes")
+- AM_CONDITIONAL(TEST, test "${test_enable}" = "yes")
++ AM_CONDITIONAL(TEST, test "${test_enable}" = "yes" && test "${check_found}" = "yes")
+ AM_CONDITIONAL(TOOLS, test "${tools_enable}" = "yes")
+ AM_CONDITIONAL(BCCMD, test "${bccmd_enable}" = "yes")
+ AM_CONDITIONAL(PCMCIA, test "${pcmcia_enable}" = "yes")
+diff --git a/configure.ac b/configure.ac
+index 3a5dfde..a7670da 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,8 +24,6 @@ AC_PROG_YACC
+ AM_PROG_LEX
+ AM_PROG_MKDIR_P
+
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+-
+ m4_define([_LT_AC_TAGCONFIG], [])
+ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
+
+@@ -50,6 +48,7 @@ AC_PATH_UDEV
+ AC_PATH_SNDFILE
+ AC_PATH_OUI
+ AC_PATH_READLINE
++AC_PATH_CHECK
+
+ AC_ARG_BLUEZ
+