| 1 | # Description: Armada 510/Dove Marvell IPP headers and CODECs |
| 2 | # URL: http://www.solid-run.com/mw/index.php/Main_Page |
| 3 | # Packager: Ryan Mullen, rmmullen at gmail dot com |
| 4 | # Maintainer: Ryan Mullen, rmmullen at gmail dot com |
| 5 | # Depends on: marvell-libvmeta |
| 6 | |
| 7 | name=marvell-ipp |
| 8 | version=0.2.1 |
| 9 | release=1 |
| 10 | source=(http://download.solid-run.com/pub/solidrun/cubox/packages/cubox-packages-source/cubox-packages.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | |
| 14 | # Adapted from Arch ALARM marvell-ipp |
| 15 | |
| 16 | cd packages/$name |
| 17 | tar xf $name_$version-0ubuntu1~ppa10.tar.gz |
| 18 | cd $name |
| 19 | |
| 20 | sed -r \ |
| 21 | -e "s|^(PATH_GNU_BIN=).+|\1/usr/bin|" \ |
| 22 | -e "s|^(CFLAGS=).*|\1 -mcpu=cortex-a9|" \ |
| 23 | -e "s|^(AR=).+|\1/usr/bin/ar|" \ |
| 24 | -e "s|^(AS=).+|\1/usr/bin/as|" \ |
| 25 | -e "s|^(CC=).+|\1/usr/bin/gcc|" \ |
| 26 | -e "s|^(LN=).+|\1/usr/bin/ln|" \ |
| 27 | -e "s|^(CXX=).+|\1/usr/bin/g++|" \ |
| 28 | -i example/Rules.make |
| 29 | |
| 30 | cd example/misc/build/wmmx2_linux |
| 31 | make -j1 -f makefile_miscGen |
| 32 | |
| 33 | cd $SRC/packages/$name/$name |
| 34 | |
| 35 | mkdir -p $PKG/usr/lib |
| 36 | mkdir $PKG/usr/include |
| 37 | mkdir -p $PKG/etc/udev/rules.d |
| 38 | |
| 39 | install -Dm644 etc/99-uio.rules \ |
| 40 | $PKG/etc/udev/rules.d/99-uio.rules |
| 41 | install -d $PKG/usr/lib $PKG/usr/include/$name |
| 42 | install -m644 include/*.h $PKG/usr/include/$name |
| 43 | |
| 44 | find bin lib -not -type d \( -name "*.so" -o -name "*.a" \) \ |
| 45 | -not -path "*libcodecvmetadec.a" \ |
| 46 | -not -path "*libvmetahal.a" \ |
| 47 | -not -path "*libvmetahal.so" \ |
| 48 | -not -path "*libcodecvmetadec.so" \ |
| 49 | -not -path "bin/libmiscgen.so" \ |
| 50 | -exec install -m644 "{}" $PKG/usr/lib/ \; |
| 51 | |
| 52 | install -d $PKG/usr/include/OpenMAX/IL/ |
| 53 | install -m644 openmax/include/* $PKG/usr/include/OpenMAX/IL/ |
| 54 | install -m644 openmax/*.a $PKG/usr/lib/ |
| 55 | } |