diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | libomxjpeg_64bit.patch | 39 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..94de7b1c2a0c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = libomxil-component-jpeg + pkgdesc = An opensource implementation of the OpenMAX Integration Layer API - JPEG component + pkgver = 0.1 + pkgrel = 1 + url = http://omxil.sourceforge.net + arch = i686 + arch = x86_64 + license = LGPL + depends = glibc + source = http://downloads.sourceforge.net/project/omxil/components/libomxjpeg-0.1.tar.gz + md5sums = 4985931601103c65b915c9ed0b82a695 + +pkgname = libomxil-component-jpeg + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d7d82ebcf54c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# $Id$ +# Maintainer: Wilken 'Akiko' Gottwalt <akiko@mailbox.org> +# Contributor: Wilken 'Akiko' Gottwalt <akiko@mailbox.org> + +pkgname=libomxil-component-jpeg +pkgver=0.1 +pkgrel=1 +pkgdesc="An opensource implementation of the OpenMAX Integration Layer API - JPEG component" +arch=('i686' 'x86_64') +url="http://omxil.sourceforge.net" +license=('LGPL') +depends=('glibc') +source=("http://downloads.sourceforge.net/project/omxil/components/libomxjpeg-${pkgver}.tar.gz") +md5sums=('4985931601103c65b915c9ed0b82a695') + +prepare() { + cd ${srcdir}/libomxjpeg-${pkgver} + + [ -f Makefile ] && make distclean + patch -Np0 -i ../../libomxjpeg_64bit.patch + autoreconf -fiv +} + +build() { + cd ${srcdir}/libomxjpeg-${pkgver} + + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd ${srcdir}/libomxjpeg-${pkgver} + + make DESTDIR="${pkgdir}" install +} diff --git a/libomxjpeg_64bit.patch b/libomxjpeg_64bit.patch new file mode 100644 index 000000000000..c233543c3945 --- /dev/null +++ b/libomxjpeg_64bit.patch @@ -0,0 +1,39 @@ +proper memory address printf + +Wilken 'Akiko' Gottwalt <akiko@mailbox.org> + +--- src/omx_jpegenc_component.c.orig 2015-11-27 11:22:45.492151057 +0100 ++++ src/omx_jpegenc_component.c 2015-11-27 11:23:57.118158784 +0100 +@@ -58,7 +58,7 @@ + dmgr->next_output_byte = dest; + dmgr->free_in_buffer = destlen; + +- DEBUG(DEB_LEV_ERR, "In %s: free_in_buffer=%d next_output_byte=%x\n", __func__,dmgr->free_in_buffer,(int)dmgr->next_output_byte); ++ DEBUG(DEB_LEV_ERR, "In %s: free_in_buffer=%d next_output_byte=%p\n", __func__,dmgr->free_in_buffer, dmgr->next_output_byte); + + } + +@@ -119,8 +119,8 @@ + return OMX_ErrorInsufficientResources; + } + } else { +- DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %x Already Allocated\n", +- __func__, (int)openmaxStandComp->pComponentPrivate); ++ DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %p Already Allocated\n", ++ __func__, openmaxStandComp->pComponentPrivate); + } + + omx_jpegenc_component_Private = openmaxStandComp->pComponentPrivate; +--- src/omx_jpegdec_component.c.orig 2015-11-27 11:22:11.812460744 +0100 ++++ src/omx_jpegdec_component.c 2015-11-27 11:24:16.557979866 +0100 +@@ -108,8 +108,8 @@ + return OMX_ErrorInsufficientResources; + } + } else { +- DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %x Already Allocated\n", +- __func__, (int)openmaxStandComp->pComponentPrivate); ++ DEBUG(DEB_LEV_FUNCTION_NAME, "In %s, Error Component %p Already Allocated\n", ++ __func__, openmaxStandComp->pComponentPrivate); + } + + omx_jpegdec_component_Private = openmaxStandComp->pComponentPrivate; |