i3lock: cross build support.

This commit is contained in:
Juan RP 2013-05-06 14:13:47 +02:00
parent 7b03021a15
commit 01fe694df8

View file

@ -1,7 +1,7 @@
# Template file for 'i3lock' # Template file for 'i3lock'
pkgname=i3lock pkgname=i3lock
version=2.4.1 version=2.4.1
revision=1 revision=2
short_desc="An improved screenlocker based upon XCB and PAM" short_desc="An improved screenlocker based upon XCB and PAM"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT" license="MIT"
@ -13,14 +13,20 @@ long_desc="
a white screen (you can configure the color/an image). You can return to your a white screen (you can configure the color/an image). You can return to your
screen by entering your password." screen by entering your password."
makedepends="which pkg-config libev-devel cairo-devel pam-devel hostmakedepends="which pkg-config"
makedepends="libev-devel cairo-devel pam-devel
xcb-util-image-devel xcb-util-keysyms-devel" xcb-util-image-devel xcb-util-keysyms-devel"
do_build() { do_build() {
make ${makejobs} if [ "$CROSS_BUILD" ]; then
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
export CFLAGS="$CFLAGS -I$XBPS_CROSS_BASE/usr/include/cairo"
fi
make CC="$CC" LD="$LD" CFLAGS="$CFLAGS -std=c99" ${makejobs}
} }
post_install() { do_install() {
make DESTDIR=${DESTDIR} install make DESTDIR=${DESTDIR} install
vinstall i3lock.1 644 usr/share/man/man1 vinstall i3lock.1 644 usr/share/man/man1
} }
@ -28,7 +34,6 @@ post_install() {
i3lock_package() { i3lock_package() {
conf_files="/etc/pam.d/i3lock" conf_files="/etc/pam.d/i3lock"
pkg_install() { pkg_install() {
vmove etc vmove all
vmove usr
} }
} }