2014-08-09 11:49:37 +00:00
|
|
|
# Template file for 'swc-git'
|
|
|
|
# Latest commit as of 20140809
|
|
|
|
_githash="dd0b21656eb7b19e8e6f454ab0de4284998d47f5"
|
|
|
|
_gitshort="${_githash:0:7}"
|
|
|
|
|
|
|
|
pkgname=swc-git
|
2014-09-19 14:03:15 +00:00
|
|
|
version=20140919
|
|
|
|
revision=1
|
2014-08-09 11:49:37 +00:00
|
|
|
homepage="https://github.com/michaelforney/swc"
|
|
|
|
distfiles="https://github.com/michaelforney/swc/archive/${_githash}.tar.gz"
|
|
|
|
short_desc="A library for making a simple Wayland compositor"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
hostmakedepends="pkg-config wayland-devel"
|
|
|
|
makedepends="pixman-devel fontconfig-devel libdrm-devel wayland-devel
|
2014-09-19 14:03:15 +00:00
|
|
|
wld-git-devel xcb-util-wm-devel libxkbcommon-devel libinput-devel>=0.6.0"
|
2014-08-09 11:49:37 +00:00
|
|
|
checksum="f421ca2c3897e48e6f43a5e73b140441baf2246ee73c07b5e1e592762bad590a"
|
|
|
|
license="MIT"
|
|
|
|
wrksrc=swc-${_githash}
|
|
|
|
|
2014-08-29 23:56:12 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
arm*) _drm_drivers="nouveau";;
|
|
|
|
i686*|x86_64*) _drm_drivers="intel nouveau";;
|
|
|
|
esac
|
|
|
|
|
2014-08-09 11:49:37 +00:00
|
|
|
do_build() {
|
|
|
|
sed -i '/^ENABLE_STATIC /d' config.mk
|
|
|
|
sed -i '/^CC /d' config.mk
|
|
|
|
sed -i '/^CFLAGS /d' config.mk
|
|
|
|
|
2014-08-29 23:56:12 +00:00
|
|
|
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
|
|
|
|
LDFLAGS="$BUILD_LDFLAGS" cursor/convert_font
|
|
|
|
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" \
|
|
|
|
LDFLAGS="$LDFLAGS" DRM_DRIVERS="$_drm_drivers" \
|
|
|
|
all example/wm
|
2014-08-09 11:49:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-08-29 23:56:12 +00:00
|
|
|
make PREFIX=/usr DESTDIR=$DESTDIR DRM_DRIVERS="$_drm_drivers" install
|
2014-08-09 11:49:37 +00:00
|
|
|
vbin example/wm swc-wm
|
|
|
|
}
|
|
|
|
|
|
|
|
swc-git-devel_package() {
|
|
|
|
depends="swc-git>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
swc-wm-git_package() {
|
|
|
|
short_desc="Simple Wayland compositor"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/swc-wm
|
|
|
|
}
|
|
|
|
}
|