2014-08-09 09:15:07 +00:00
|
|
|
# Template file for 'wld-git'
|
|
|
|
# Latest commit as of 20140809
|
|
|
|
_githash="3acacf1a0890231227172bfdc4509bda36369e71"
|
|
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
|
|
|
|
pkgname=wld-git
|
|
|
|
version=20140809
|
2014-08-09 09:36:05 +00:00
|
|
|
revision=2
|
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"
|
|
|
|
wrksrc=wld-${_githash}
|
|
|
|
|
|
|
|
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-09 09:36:05 +00:00
|
|
|
make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
2014-08-09 09:15:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make PREFIX=/usr DESTDIR=$DESTDIR install
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|