2014-08-09 09:15:07 +00:00
|
|
|
# Template file for 'wld-git'
|
2014-11-30 11:00:10 +00:00
|
|
|
# Latest commit as of 20141130
|
|
|
|
_githash="74f0deabb2a8a0f2e9c2eaebb4e36945716d8ab9"
|
2014-08-09 09:15:07 +00:00
|
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
|
|
|
|
pkgname=wld-git
|
2014-11-30 11:00:10 +00:00
|
|
|
version=20141130
|
|
|
|
revision=1
|
2014-08-09 09:15:07 +00:00
|
|
|
homepage="https://github.com/michaelforney/wld"
|
|
|
|
distfiles="https://github.com/michaelforney/wld/archive/${_githash}.tar.gz"
|
2014-08-09 09:16:20 +00:00
|
|
|
short_desc="Primitive drawing library targeted at Wayland"
|
2014-08-09 09:15:07 +00:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
2014-08-09 09:36:05 +00:00
|
|
|
hostmakedepends="pkg-config wayland-devel"
|
2014-08-09 09:15:07 +00:00
|
|
|
makedepends="pixman-devel fontconfig-devel libdrm-devel wayland-devel"
|
|
|
|
license="MIT"
|
2014-11-30 11:00:10 +00:00
|
|
|
checksum=da4f2c862958346ac54a83cf0f1cb4b9734bafbbe0844d7e15447bfcb18d97b4
|
2014-08-09 09:15:07 +00:00
|
|
|
wrksrc=wld-${_githash}
|
|
|
|
|
2014-08-29 23:55:48 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
arm*) _drm_drivers="nouveau";;
|
|
|
|
i686*|x86_64*) _drm_drivers="intel nouveau";;
|
|
|
|
esac
|
|
|
|
|
2014-08-09 09:15:07 +00:00
|
|
|
do_build() {
|
|
|
|
sed -i '/^ENABLE_STATIC /d' config.mk
|
2014-08-09 09:36:05 +00:00
|
|
|
sed -i '/^CC /d' config.mk
|
|
|
|
sed -i '/^CFLAGS /d' config.mk
|
2014-08-09 09:15:07 +00:00
|
|
|
|
2014-08-29 23:55:48 +00:00
|
|
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
|
|
|
LDFLAGS="$LDFLAGS" DRM_DRIVERS="$_drm_drivers"
|
2014-08-09 09:15:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-08-29 23:55:48 +00:00
|
|
|
make PREFIX=/usr DESTDIR=$DESTDIR DRM_DRIVERS="$_drm_drivers" install
|
2014-08-09 09:15:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wld-git-devel_package() {
|
|
|
|
depends="wld-git>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|