vp-build/srcpkgs/icewm/template

37 lines
1.3 KiB
Bash

# Template file for 'icewm'
pkgname=icewm
version=1.3.8
revision=6
build_style=gnu-configure
configure_args="--enable-shaped-decorations --enable-gradients"
make_build_args="V=1"
make_install_target="install install-docs install-desktop"
hostmakedepends="automake libtool pkg-config"
makedepends="libXrandr-devel libXft-devel libSM-devel libXinerama-devel gdk-pixbuf-devel"
short_desc="A Window Manager designed for speed, usability, and consistency"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2"
homepage="http://www.icewm.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=17588d9e0bbbb23587bc04c83da9dd94fd4da6894ecfee6d7f3ed50d780dcd18
CXXFLAGS="-Wno-error=narrowing -fno-delete-null-pointer-checks"
if [ -n "$CROSS_BUILD" ]; then
# The iconv detection does not work when cross compiling
configure_args+=" --disable-i18n"
# Required to compile genpref for the host
hostmakedepends+=" libX11-devel"
# Set host tools for compiling genprefs
export HOSTCXX="${CXX_FOR_BUILD}"
export HOSTCXX_LINK="${CXX_FOR_BUILD}"
export HOSTCXXFLAGS="${CXXFLAGS_FOR_BUILD}"
export HOSTLDFLAGS="${LDFLAGS_FOR_BUILD}"
fi
pre_configure() {
if [ -n "$CROSS_BUILD" ]; then
patch -p0 < ${FILESDIR}/fix-configure_in_flags.patch
fi
./autogen.sh
}