Merge pull request #539 from uggedal/dmenu-xft
dmenu: add xft build option (off)
This commit is contained in:
commit
a33d9a56ee
|
@ -1,14 +1,26 @@
|
|||
# Template file for 'dmenu'
|
||||
pkgname=dmenu
|
||||
version=4.5
|
||||
revision=7
|
||||
makedepends="libXinerama-devel"
|
||||
revision=8
|
||||
makedepends="libXinerama-devel $(vopt_if xft 'libXft-devel freetype-devel')"
|
||||
short_desc="A generic menu for X"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="http://tools.suckless.org/dmenu/"
|
||||
distfiles="http://dl.suckless.org/tools/${pkgname}-${version}.tar.gz"
|
||||
checksum=082cd698d82125ca0b3989006fb84ac4675c2a5585bf5bb8af0ea09cfb95a850
|
||||
distfiles="http://dl.suckless.org/tools/${pkgname}-${version}.tar.gz
|
||||
http://tools.suckless.org/dmenu/patches/dmenu-${version}-xft.diff"
|
||||
skip_extraction="${pkgname}-${version}-xft.diff"
|
||||
checksum="082cd698d82125ca0b3989006fb84ac4675c2a5585bf5bb8af0ea09cfb95a850
|
||||
efb4095d65e5e86f9dde97294732174409c24f319bdd4824cc22fa1404972b4f"
|
||||
|
||||
build_options="xft"
|
||||
desc_option_xft="Enable Xft font support"
|
||||
|
||||
pre_build() {
|
||||
if [ "$build_option_xft" ]; then
|
||||
patch -Np1 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}-xft.diff
|
||||
fi
|
||||
}
|
||||
|
||||
do_build() {
|
||||
sed -i -e "s|^CFLAGS =|CFLAGS += |g" \
|
||||
|
@ -16,7 +28,9 @@ do_build() {
|
|||
|
||||
x11inc=$XBPS_CROSS_BASE/usr/include/X11
|
||||
x11lib=$XBPS_CROSS_BASE/usr/lib
|
||||
make CC="$CC" ${makejobs} X11INC=$x11inc X11LIB=$x11lib
|
||||
xftinc=-I$XBPS_CROSS_BASE/usr/include/freetype2
|
||||
make CC="$CC" ${makejobs} X11INC=$x11inc X11LIB=$x11lib \
|
||||
$(vopt_if xft XFTINC=$xftinc)
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user