[arch-commits] Commit in libmp4v2/trunk (PKGBUILD libmp4v2-c++11.patch)
Antonio Rojas
arojas at archlinux.org
Wed May 30 21:01:01 UTC 2018
Date: Wednesday, May 30, 2018 @ 21:01:00
Author: arojas
Revision: 325225
Rebuild
Added:
libmp4v2/trunk/libmp4v2-c++11.patch
Modified:
libmp4v2/trunk/PKGBUILD
----------------------+
PKGBUILD | 20 +++++++++++++-------
libmp4v2-c++11.patch | 11 +++++++++++
2 files changed, 24 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-30 20:47:41 UTC (rev 325224)
+++ PKGBUILD 2018-05-30 21:01:00 UTC (rev 325225)
@@ -5,16 +5,23 @@
pkgname=libmp4v2
pkgver=2.0.0
-pkgrel=4
+pkgrel=5
pkgdesc="MPEG-4 library"
arch=('x86_64')
license=('MPL')
url="http://code.google.com/p/mp4v2/"
depends=('gcc-libs')
-source=("https://sources.archlinux.org/other/packages/$pkgname/mp4v2-${pkgver}.tar.bz2")
+source=("https://sources.archlinux.org/other/packages/$pkgname/mp4v2-${pkgver}.tar.bz2" libmp4v2-c++11.patch)
+sha256sums=('0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338'
+ '946a1c9c8a927d2739248aa1164591de08507152c856f88e8c5d759c213871ee')
+prepare() {
+ cd mp4v2-$pkgver
+ patch -p0 -i ../libmp4v2-c++11.patch # Fix build with C++11
+}
+
build() {
- cd ${srcdir}/mp4v2-${pkgver}
+ cd mp4v2-$pkgver
./configure --prefix=/usr
make
@@ -21,8 +28,7 @@
}
package() {
- cd ${srcdir}/mp4v2-${pkgver}
- make DESTDIR=${pkgdir} install
- make DESTDIR=${pkgdir} install-man
+ cd mp4v2-$pkgver
+ make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install-man
}
-md5sums=('c91f06711225b34b4c192c9114887b14')
Added: libmp4v2-c++11.patch
===================================================================
--- libmp4v2-c++11.patch (rev 0)
+++ libmp4v2-c++11.patch 2018-05-30 21:01:00 UTC (rev 325225)
@@ -0,0 +1,11 @@
+--- src/rtphint.cpp 2012-05-20 16:11:53.000000000 -0600
++++ src/rtphint.cpp 2017-05-16 10:25:26.930705191 -0600
+@@ -339,7 +339,7 @@
+ pSlash = strchr(pSlash, '/');
+ if (pSlash != NULL) {
+ pSlash++;
+- if (pSlash != '\0') {
++ if (*pSlash != '\0') {
+ length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap);
+ *ppEncodingParams = (char *)MP4Calloc(length + 1);
+ strncpy(*ppEncodingParams, pSlash, length);
More information about the arch-commits
mailing list