diff options
author | Wilken 'Akiko' Gottwalt | 2015-11-27 10:24:06 +0100 |
---|---|---|
committer | Wilken 'Akiko' Gottwalt | 2015-11-27 10:24:06 +0100 |
commit | 534955343e573ad14829076219b8dc2239278272 (patch) | |
tree | a304351b5d0bbad467b572a263492b88e2da2411 | |
download | aur-534955343e573ad14829076219b8dc2239278272.tar.gz |
Initial commit of OpenMAX Bellagio VideoSrc component build script including
64 bit and unused variables fixes.
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | libomxvideosrc_64bit.patch | 15 | ||||
-rw-r--r-- | libomxvideosrc_unused_variables.patch | 32 |
4 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2ddc74a35332 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = libomxil-component-videosrc + pkgdesc = An opensource implementation of the OpenMAX Integration Layer API - VideoSrc 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/libomxvideosrc-0.1.tar.gz + md5sums = 60ba58340f2e1e2056abc1d54e298cc0 + +pkgname = libomxil-component-videosrc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d367674cc734 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Wilken 'Akiko' Gottwalt <akiko@mailbox.org> +# Contributor: Wilken 'Akiko' Gottwalt <akiko@mailbox.org> + +pkgname=libomxil-component-videosrc +pkgver=0.1 +pkgrel=1 +pkgdesc="An opensource implementation of the OpenMAX Integration Layer API - VideoSrc component" +arch=('i686' 'x86_64') +url="http://omxil.sourceforge.net" +license=('LGPL') +depends=('glibc') +source=("http://downloads.sourceforge.net/project/omxil/components/libomxvideosrc-${pkgver}.tar.gz") +md5sums=('60ba58340f2e1e2056abc1d54e298cc0') + +prepare() { + cd ${srcdir}/libomxvideosrc-${pkgver} + + [ -f Makefile ] && make distclean + patch -Np0 -i ../../libomxvideosrc_64bit.patch + patch -Np0 -i ../../libomxvideosrc_unused_variables.patch + autoreconf -fiv +} + +build() { + cd ${srcdir}/libomxvideosrc-${pkgver} + + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd ${srcdir}/libomxvideosrc-${pkgver} + + make DESTDIR="${pkgdir}" install +} diff --git a/libomxvideosrc_64bit.patch b/libomxvideosrc_64bit.patch new file mode 100644 index 000000000000..a4233f65aa06 --- /dev/null +++ b/libomxvideosrc_64bit.patch @@ -0,0 +1,15 @@ +proper memory address printf + +Wilken 'Akiko' Gottwalt <akiko@mailbox.org> + +--- src/omx_videosrc_component.c.orig 2015-11-27 10:06:56.937742429 +0100 ++++ src/omx_videosrc_component.c 2015-11-27 10:07:34.457392193 +0100 +@@ -621,7 +621,7 @@ + openmaxStandPort->bIsFullOfBuffers = OMX_FALSE; + if (openmaxStandPort->bBufferStateAllocated[i] & BUFFER_ALLOCATED) { + if(openmaxStandPort->pInternalBufferStorage[i]->pBuffer){ +- DEBUG(DEB_LEV_PARAMS, "In %s freeing %i pBuffer=%x\n",__func__, (int)i, (int)openmaxStandPort->pInternalBufferStorage[i]->pBuffer); ++ DEBUG(DEB_LEV_PARAMS, "In %s freeing %i pBuffer=%p\n",__func__, (int)i, openmaxStandPort->pInternalBufferStorage[i]->pBuffer); + openmaxStandPort->pInternalBufferStorage[i]->pBuffer=NULL; + omx_videosrc_component_Private->bOutBufferMemoryMapped = OMX_FALSE; + } diff --git a/libomxvideosrc_unused_variables.patch b/libomxvideosrc_unused_variables.patch new file mode 100644 index 000000000000..5100e2a5c93f --- /dev/null +++ b/libomxvideosrc_unused_variables.patch @@ -0,0 +1,32 @@ +just some small fixes for unused variables + +Wilken 'Akiko' Gottwalt <akiko@mailbox.org> + +--- src/omx_videosrc_component.c.orig 2015-11-27 10:15:37.092872434 +0100 ++++ src/omx_videosrc_component.c 2015-11-27 10:16:21.985784048 +0100 +@@ -160,7 +160,6 @@ + */ + OMX_ERRORTYPE omx_videosrc_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp) { + omx_videosrc_component_PrivateType* omx_videosrc_component_Private = openmaxStandComp->pComponentPrivate; +- OMX_ERRORTYPE err = OMX_ErrorNone; + OMX_U32 i; + + if(omx_videosrc_component_Private->videoSyncSem) { +@@ -169,7 +168,7 @@ + omx_videosrc_component_Private->videoSyncSem=NULL; + } + +- err = uninit_device(omx_videosrc_component_Private); ++ uninit_device(omx_videosrc_component_Private); + + if(omx_videosrc_component_Private->deviceHandle != -1) { + if(-1 == close(omx_videosrc_component_Private->deviceHandle)) { +@@ -660,7 +659,7 @@ + omx_videosrc_component_PrivateType* omx_videosrc_component_Private = (omx_videosrc_component_PrivateType*)omx_base_component_Private; + OMX_U8* pBuffer=NULL; + OMX_ERRORTYPE eError=OMX_ErrorNone; +- OMX_U32 numRetry=0,nBufferSize; ++ OMX_U32 numRetry=0,nBufferSize=0; + OMX_PARAM_PORTDEFINITIONTYPE sPortDef; + OMX_U32 nLocalBufferCountActual; + OMX_ERRORTYPE err; |