2009-12-22 14:31:24 +00:00
|
|
|
# Template build file for 'rxvt-unicode'.
|
|
|
|
pkgname=rxvt-unicode
|
2015-01-02 13:38:53 +00:00
|
|
|
version=9.21
|
2015-02-15 12:45:36 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-11-02 08:15:19 +00:00
|
|
|
configure_args="
|
|
|
|
--with-terminfo=/usr/share/terminfo --enable-256-color
|
2013-05-06 10:38:00 +00:00
|
|
|
--enable-font-styles --enable-xim --enable-keepscrolling
|
2012-12-28 08:18:05 +00:00
|
|
|
--enable-selectionscrolling --enable-smart-resize --enable-transparency
|
|
|
|
--enable-utmp --enable-wtmp --enable-lastlog --disable-frills
|
2014-07-20 08:50:23 +00:00
|
|
|
--enable-combining --with-term=rxvt-unicode-256color"
|
2013-04-06 09:07:09 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2013-05-06 10:38:00 +00:00
|
|
|
makedepends="renderproto fontconfig-devel libXrender-devel libXft-devel libSM-devel"
|
2014-05-12 09:05:03 +00:00
|
|
|
depends="ncurses"
|
2009-12-22 14:31:24 +00:00
|
|
|
short_desc="rxvt clone supporting Xft fonts and Unicode"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-18 12:43:39 +00:00
|
|
|
homepage="http://software.schmorp.de/pkg/rxvt-unicode.html"
|
|
|
|
license="GPL-2"
|
2012-12-16 03:34:42 +00:00
|
|
|
distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2"
|
2015-01-02 13:38:53 +00:00
|
|
|
checksum=75270ed72bc5895a64a1d7392bf45a622204192371c3965bd3dd978dc088956b
|
2009-12-22 14:31:24 +00:00
|
|
|
|
2014-05-12 09:05:03 +00:00
|
|
|
pre_build() {
|
2014-07-30 00:05:53 +00:00
|
|
|
sed -i 's,tic,/bin/true,g' doc/Makefile
|
2014-05-12 09:05:03 +00:00
|
|
|
}
|
|
|
|
|
2012-01-25 12:33:19 +00:00
|
|
|
post_install() {
|
2014-05-12 09:05:03 +00:00
|
|
|
vinstall doc/etc/rxvt-unicode.terminfo 644 usr/share/terminfo/r
|
2012-01-25 12:33:19 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps
|
2011-01-14 23:11:38 +00:00
|
|
|
}
|
2013-04-14 09:53:56 +00:00
|
|
|
|
2013-05-06 10:38:00 +00:00
|
|
|
# Package build options
|
2014-03-10 20:00:55 +00:00
|
|
|
build_options="gdk_pixbuf perl startup_notification unicode3"
|
|
|
|
desc_option_unicode3="Use 21 instead of 16 bits to represent unicode chars"
|
2013-05-06 10:38:00 +00:00
|
|
|
|
|
|
|
# Enable startup-notification by default.
|
2014-07-30 00:06:14 +00:00
|
|
|
build_options_default="perl startup_notification"
|
2013-05-06 10:38:00 +00:00
|
|
|
|
|
|
|
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"
|
2014-07-30 00:05:53 +00:00
|
|
|
hostmakedepends+=" perl autoconf"
|
2015-02-15 12:45:36 +00:00
|
|
|
makedepends+=" perl>=5.20.2"
|
2013-05-06 10:38:00 +00:00
|
|
|
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
|
2014-03-10 20:00:55 +00:00
|
|
|
|
|
|
|
if [ "$build_option_unicode3" ]; then
|
|
|
|
configure_args+=" --enable-unicode3"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-unicode3"
|
|
|
|
fi
|
2014-07-30 00:05:53 +00:00
|
|
|
|
|
|
|
_cross_perl() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s#/usr/lib#${XBPS_CROSS_BASE}\0#g" \
|
|
|
|
-e "s#/usr/share#${XBPS_CROSS_BASE}\0#g"
|
|
|
|
else
|
|
|
|
cat
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$build_option_perl" ]; then
|
|
|
|
rm configure
|
|
|
|
./autogen.sh
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
if [ "$build_option_perl" ]; then
|
|
|
|
./configure $configure_args \
|
|
|
|
PERL=perl \
|
|
|
|
PERL_O=rxvtperl.o \
|
|
|
|
PERLFLAGS="$(perl -MExtUtils::Embed -e ccopts | _cross_perl)" \
|
|
|
|
PERLLIB="$(perl -MExtUtils::Embed -e ldopts | _cross_perl)" \
|
|
|
|
PERLPRIVLIBEXP="$(perl -MConfig -e 'print $Config{privlibexp}' | _cross_perl)"
|
|
|
|
else
|
|
|
|
./configure $configure_args
|
|
|
|
fi
|
|
|
|
}
|