From dbd94f578b7f9e129eac03f025db0510291c7ff4 Mon Sep 17 00:00:00 2001 From: cr6git Date: Sun, 9 Sep 2018 14:24:08 +0200 Subject: [PATCH] rxvt-unicode: add gdk_pixbuf to build_options_default= (resolves #2244) --- srcpkgs/rxvt-unicode/template | 52 +++++++++++------------------------ 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template index 57af8265fc..71430cbce5 100644 --- a/srcpkgs/rxvt-unicode/template +++ b/srcpkgs/rxvt-unicode/template @@ -1,21 +1,29 @@ -# Template build file for 'rxvt-unicode'. +# Template file for 'rxvt-unicode' pkgname=rxvt-unicode version=9.22 -revision=8 +revision=9 build_style=gnu-configure configure_args=" --with-terminfo=/usr/share/terminfo --enable-256-color --enable-font-styles --enable-xim --enable-keepscrolling --enable-selectionscrolling --enable-smart-resize --enable-transparency --disable-utmp --disable-wtmp --disable-lastlog --disable-frills - --enable-combining --with-term=rxvt-unicode-256color" -hostmakedepends="pkg-config" -makedepends="xorgproto fontconfig-devel libXrender-devel libXft-devel libSM-devel" + --enable-combining --with-term=rxvt-unicode-256color + $(vopt_if gdk_pixbuf '--enable-pixbuf' '--disable-pixbuf') + $(vopt_if perl '--enable-perl' '--disable-perl') + $(vopt_if startup_notification '--enable-startup-notification' '--disable-startup-notification') + $(vopt_if unicode3 '--enable-unicode3' '--disable-unicode3')" +hostmakedepends="pkg-config $(vopt_if perl 'perl autoconf')" +makedepends="xorgproto fontconfig-devel libXrender-devel libXft-devel libSM-devel + $(vopt_if gdk_pixbuf gdk-pixbuf-devel) + $(vopt_if perl perl) + $(vopt_if startup_notification startup-notification-devel) + $(vopt_if unicode3 libbluetooth-devel)" depends="ncurses rxvt-unicode-terminfo-${version}_${revision}" short_desc="Terminal emulator supporting Xft fonts and Unicode" maintainer="Juan RP " +license="GPL-3.0-or-later" homepage="http://software.schmorp.de/pkg/rxvt-unicode.html" -license="GPL-2" distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd @@ -33,36 +41,8 @@ post_install() { build_options="gdk_pixbuf perl startup_notification unicode3" desc_option_unicode3="Use 21 instead of 16 bits to represent unicode chars" -# Enable startup-notification by default. -build_options_default="perl startup_notification unicode3" - -if [ "$build_option_gdk_pixbuf" ]; then - configure_args+=" --enable-pixbuf" - makedepends+=" gdk-pixbuf-devel" -else - configure_args+=" --disable-pixbuf" -fi - -if [ "$build_option_perl" ]; then - configure_args+=" --enable-perl" - hostmakedepends+=" perl autoconf" - makedepends+=" perl" -else - configure_args+=" --disable-perl" -fi - -if [ "$build_option_startup_notification" ]; then - configure_args+=" --enable-startup-notification" - makedepends+=" startup-notification-devel" -else - configure_args+=" --disable-startup-notification" -fi - -if [ "$build_option_unicode3" ]; then - configure_args+=" --enable-unicode3" -else - configure_args+=" --disable-unicode3" -fi +# Enable gdk_pixbuf & startup-notification by default. +build_options_default="gdk_pixbuf perl startup_notification unicode3" _cross_perl() { if [ "$CROSS_BUILD" ]; then