wld-git: use correct DRM drivers depending on platform.
This commit is contained in:
parent
5dbe8cbab3
commit
8f34198a1e
1 changed files with 9 additions and 3 deletions
|
@ -5,7 +5,7 @@ _gitshort="${_githash:0:7}"
|
||||||
|
|
||||||
pkgname=wld-git
|
pkgname=wld-git
|
||||||
version=20140809
|
version=20140809
|
||||||
revision=2
|
revision=3
|
||||||
homepage="https://github.com/michaelforney/wld"
|
homepage="https://github.com/michaelforney/wld"
|
||||||
distfiles="https://github.com/michaelforney/wld/archive/${_githash}.tar.gz"
|
distfiles="https://github.com/michaelforney/wld/archive/${_githash}.tar.gz"
|
||||||
short_desc="Primitive drawing library targeted at Wayland"
|
short_desc="Primitive drawing library targeted at Wayland"
|
||||||
|
@ -16,16 +16,22 @@ license="MIT"
|
||||||
checksum=020ec074fdee06c436a354ff13c2ecdd206ae33f095d8f711c9984a0faabd5e2
|
checksum=020ec074fdee06c436a354ff13c2ecdd206ae33f095d8f711c9984a0faabd5e2
|
||||||
wrksrc=wld-${_githash}
|
wrksrc=wld-${_githash}
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
arm*) _drm_drivers="nouveau";;
|
||||||
|
i686*|x86_64*) _drm_drivers="intel nouveau";;
|
||||||
|
esac
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
sed -i '/^ENABLE_STATIC /d' config.mk
|
sed -i '/^ENABLE_STATIC /d' config.mk
|
||||||
sed -i '/^CC /d' config.mk
|
sed -i '/^CC /d' config.mk
|
||||||
sed -i '/^CFLAGS /d' config.mk
|
sed -i '/^CFLAGS /d' config.mk
|
||||||
|
|
||||||
make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
||||||
|
LDFLAGS="$LDFLAGS" DRM_DRIVERS="$_drm_drivers"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make PREFIX=/usr DESTDIR=$DESTDIR install
|
make PREFIX=/usr DESTDIR=$DESTDIR DRM_DRIVERS="$_drm_drivers" install
|
||||||
}
|
}
|
||||||
|
|
||||||
wld-git-devel_package() {
|
wld-git-devel_package() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue