mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
alarm/marvell-libgfx use updated headers and hard-float libraries.
This commit is contained in:
parent
aea27761a8
commit
378c533401
1 changed files with 22 additions and 17 deletions
|
@ -6,36 +6,41 @@ buildarch=4
|
|||
|
||||
pkgname="marvell-libgfx"
|
||||
pkgver=0.2.0
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
arch=('armv7h')
|
||||
url="http://archlinuxarm.org"
|
||||
license=('Proprietary')
|
||||
source=("http://archlinuxarm.org/builder/src/marvell-libgfx-0.2.0.tar.gz"
|
||||
"http://archlinuxarm.org/builder/src/gc3184-gcc-4.6-armv7-hard_release.zip")
|
||||
"http://download.solid-run.com/pub/solidrun/cubox/packages/marvell-opengl/marvell-opengl-hardfp-debug.zip"
|
||||
"http://download.solid-run.com/pub/solidrun/cubox/packages/marvell-libgfx/marvell-libgfx-headers-20120713.tar.bz2"
|
||||
)
|
||||
provides=('libegl' 'libgles' 'khrplatform-devel')
|
||||
conflicts=('libegl' 'libgles' 'khrplatform-devel')
|
||||
|
||||
package() {
|
||||
pkgdesc="Armada 510/Dove graphics Libraries"
|
||||
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
find include -type f -not -path "include/KHR*" -exec \
|
||||
install -Dm644 {} "${pkgdir}/usr/{}" \;
|
||||
|
||||
install -Dm644 etc/udev/rules.d/99-galcore.rules \
|
||||
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/etc/udev/rules.d/99-galcore.rules" \
|
||||
"${pkgdir}/usr/lib/udev/rules.d/99-galcore.rules"
|
||||
|
||||
cd bin
|
||||
for _lib in $(find -type f); do
|
||||
install -m755 ${_lib} "${pkgdir}/usr/lib/"
|
||||
ln -s /usr/lib/${_lib#./} "${pkgdir}/usr/lib/${_lib%.1}"
|
||||
done
|
||||
ln -s /usr/lib/libGLES_CM.so.1 "${pkgdir}/usr/lib/libGLESv1_CM.so"
|
||||
ln -s /usr/lib/libGLESv2x.so.1 "${pkgdir}/usr/lib/libGLESv2.so"
|
||||
find include -type f -exec \
|
||||
install -Dm644 {} "${pkgdir}/usr/{}" \;
|
||||
ln -s gc_hal.h "${pkgdir}/usr/include/HAL/aqHal.h"
|
||||
|
||||
cp "${srcdir}"/gc3184-gcc-4.6-armv7-hard_release/sdk/drivers/{libVIVANTE,libGLES_CL}.so "${pkgdir}/usr/lib"
|
||||
cp -r "${srcdir}/gc3184-gcc-4.6-armv7-hard_release/sdk/include/KHR" "${pkgdir}/usr/include"
|
||||
# cd "${pkgname}-${pkgver}/include"
|
||||
# install -m644 {vdkTypes.h,vdk.h,gcu.h,VG/vgext.h,VG/openvg.h,EGL/eglvivante.h} \
|
||||
# "${pkgdir}/usr/include"
|
||||
|
||||
cd gc3184-1-mgcc462hd-d
|
||||
find -name "*.so" -not -path "*libdirectfb_gal.so" \
|
||||
-exec install -Dm755 {} "${pkgdir}/usr/lib/{}.1" \; \
|
||||
-exec ln -s {}.1 "${pkgdir}/usr/lib/{}" \;
|
||||
ln -s libGLES_CM.so.1 "${pkgdir}/usr/lib/libGLESv1_CM.so"
|
||||
ln -s libGLES_CM.so.1 "${pkgdir}/usr/lib/libGLESv1_CM.so.1"
|
||||
ln -s libGLESv2x.so.1 "${pkgdir}/usr/lib/libGLESv2.so"
|
||||
ln -s libGLESv2x.so.1 "${pkgdir}/usr/lib/libGLESv2.so.1"
|
||||
}
|
||||
|
||||
md5sums=('6cd584e6feb6a8605662bb2280676f65'
|
||||
'0d1a842ebb9d9bd1c198950bfe5c04f5')
|
||||
'd21429fa2d4296f1f4238faff6cca6ca'
|
||||
'a381d9d6d0c5beda781a23dea2c3e0ea')
|
||||
|
|
Loading…
Reference in a new issue