diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-01-13 19:45:01 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-01-13 19:45:01 +0000 |
commit | dbf4cb339e60684036842e52fc715762e89602d5 (patch) | |
tree | 4d0b2549fab94256d4d5262029582ec5d86295a3 /main/libcec | |
parent | a59ee23fc6759eed6d4aed348fb010e0f9ddc31a (diff) | |
download | aports-dbf4cb339e60684036842e52fc715762e89602d5.tar.bz2 aports-dbf4cb339e60684036842e52fc715762e89602d5.tar.xz |
main/libcec: fix musl build
Diffstat (limited to 'main/libcec')
-rw-r--r-- | main/libcec/APKBUILD | 15 | ||||
-rw-r--r-- | main/libcec/musl-fix.patch | 22 |
2 files changed, 32 insertions, 5 deletions
diff --git a/main/libcec/APKBUILD b/main/libcec/APKBUILD index d8ff6106a..198b27efa 100644 --- a/main/libcec/APKBUILD +++ b/main/libcec/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=libcec pkgver=2.1.3 -pkgrel=0 +pkgrel=1 pkgdesc="libcec for the Pulse-Eight USB-CEC adapter" url="https://github.com/Pulse-Eight/libcec" arch="all" @@ -12,7 +12,9 @@ depends_dev="lockdev-dev udev-dev" makedepends="$depends_dev autoconf automake libtool" install="" subpackages="$pkgname-dev" -source="http://github.com/Pulse-Eight/libcec/archive/libcec-$pkgver.tar.gz" +source="http://github.com/Pulse-Eight/libcec/archive/libcec-$pkgver.tar.gz + musl-fix.patch + " _builddir="$srcdir"/libcec-libcec-$pkgver prepare() { @@ -45,6 +47,9 @@ package() { rm -f "$pkgdir"/usr/lib/*.la } -md5sums="ee2f2c71516cea30ac992ddbe8f7ed1c libcec-2.1.3.tar.gz" -sha256sums="7afc162899c1b67000713e7719c6f89cd33f27f03a03c5bd5f281f8e6782989e libcec-2.1.3.tar.gz" -sha512sums="524120193c4241763caf578a66d0de3c9743027d9bf00de20d273ca494aadb92cc4db7ca79b6dd261773ad352cd62aaceb5636110bc8d65a1dea828fe3f8b182 libcec-2.1.3.tar.gz" +md5sums="ee2f2c71516cea30ac992ddbe8f7ed1c libcec-2.1.3.tar.gz +f735b18f2cb4f75aaa68a15407e233cd musl-fix.patch" +sha256sums="7afc162899c1b67000713e7719c6f89cd33f27f03a03c5bd5f281f8e6782989e libcec-2.1.3.tar.gz +f64edcdc316ffd0ea4310529bf7ba96072c757182201c382e4f9c791cf8efbe9 musl-fix.patch" +sha512sums="524120193c4241763caf578a66d0de3c9743027d9bf00de20d273ca494aadb92cc4db7ca79b6dd261773ad352cd62aaceb5636110bc8d65a1dea828fe3f8b182 libcec-2.1.3.tar.gz +ca81f243ca7245efbb5bea97209894b37316195ed14ab8687d6cc4d01dd121c16a245d5a95c6554903138f1f3f0a0be8602e8579474e64a618903737e4619136 musl-fix.patch" diff --git a/main/libcec/musl-fix.patch b/main/libcec/musl-fix.patch new file mode 100644 index 000000000..c77e0e5d9 --- /dev/null +++ b/main/libcec/musl-fix.patch @@ -0,0 +1,22 @@ +--- libcec-libcec-2.1.3.orig/src/lib/platform/posix/serialport.cpp ++++ libcec-libcec-2.1.3/src/lib/platform/posix/serialport.cpp +@@ -37,7 +37,6 @@ + #include "lib/platform/util/baudrate.h" + #include "lib/platform/posix/os-socket.h" + +-#if defined(__APPLE__) || defined(__FreeBSD__) + #ifndef XCASE + #define XCASE 0 + #endif +@@ -47,10 +46,9 @@ + #ifndef IUCLC + #define IUCLC 0 + #endif +-#else ++ + #ifdef HAVE_LOCKDEV + #include <lockdev.h> +-#endif + #endif + + using namespace std; |