1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/x11/rxvt/Makefile
Eitan Adler 4e22250bb3 Avoid losing CONFIGURE_ARGS when utmp and wtmp are specified
PR:		ports/173576
Submitted by:	WATANABE Kazuhiro <CQG00620@nifty.ne.jp>
Feature safe:	yes
2012-11-13 15:40:59 +00:00

108 lines
2.5 KiB
Makefile

# New ports collection Makefile for: rxvt
# Date created: 5th December 1994
# Whom: gpalmer@FreeBSD.org
#
# $FreeBSD$
#
# If possible, please consider updating the simple ports/x11-clocks/rclock
# when you upgrade rxvt. These ports all use the same distfile.
PORTNAME= rxvt
PORTVERSION= 2.6.4
PORTREVISION= 6
CATEGORIES+= x11
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A low memory usage xterm replacement that supports color
USE_XORG= xpm
GNU_CONFIGURE= yes
OPTIONS_DEFINE = BIG5 GB GREEK HALF_SHADOW KANJI MENUBAR NEXT \
TRANSPARENCY XGETDEFAULT XIM XTERM
BIG5_DESC= Build with BIG5 support
GB_DESC= Build with GB support
GREEK_DESC= Build with greek keyboard support
HALF_SHADOW_DESC= Build with half shadows support
KANJI_DESC= Build with Kanji support
MENUBAR_DESC= Build with menubar support
NEXT_DESC= Build with NeXT scrollbar
TRANSPARENCY_DESC= Build with transparency support
XGETDEFAULT_DESC= Build with XGetDefault() support
XIM_DESC= Build with XIM support
XTERM_DESC= Build with Xterm scrollbar
CONFIGURE_ARGS= --enable-ttygid \
--with-xpm --enable-xpm-background \
--with-xpm-includes=${LOCALBASE}/include/X11 \
--with-xpm-library=${LOCALBASE}/lib
MAN1= rxvt.1
PLIST_FILES= bin/rxvt
MAKE_JOBS_SAFE= yes
.include <bsd.port.pre.mk>
# fails to build with new utmpx
.if ${OSVERSION} > 900007
CONFIGURE_ARGS+= --disable-utmp --disable-wtmp
.else
CONFIGURE_ARGS+= --enable-utmp --enable-wtmp
.endif
.if ${PORT_OPTIONS:MBIG5}
CONFIGURE_ARGS+= --enable-big5
.endif
.if ${PORT_OPTIONS:MGB}
CONFIGURE_ARGS+= --enable-gb
.endif
.if ${PORT_OPTIONS:MGREEK}
CONFIGURE_ARGS+= --enable-greek
.endif
# enable half width/height shadows scrollbar
.if ${PORT_OPTIONS:MHALF_SHADOW}
CONFIGURE_ARGS+= --enable-half-shadow
.endif
.if ${PORT_OPTIONS:MKANJI}
CONFIGURE_ARGS+= --enable-kanji
.endif
.if ${PORT_OPTIONS:MMENUBAR}
CONFIGURE_ARGS+= --enable-menubar
.endif
.if ${PORT_OPTIONS:MNEXT}
CONFIGURE_ARGS+= --enable-next-scroll
.endif
.if ${PORT_OPTIONS:MTRANSPARENCY}
CONFIGURE_ARGS+= --enable-transparency
.endif
# make resources checking via XGetDefault()
.if ${PORT_OPTIONS:MXGETDEFAULT}
CONFIGURE_ARGS+= --enable-xgetdefault
.endif
# XIM (X Input Method) protocol support
.if ${PORT_OPTIONS:MXIM}
CONFIGURE_ARGS+= --enable-xim
.endif
.if ${PORT_OPTIONS:MXTERM}
CONFIGURE_ARGS+= --enable-xterm-scroll
.endif
post-patch:
@${REINPLACE_CMD} -e 's|getpt()|posix_openpt(0)|' ${WRKSRC}/configure
post-install:
@${CHMOD} 4711 ${PREFIX}/bin/rxvt
.include <bsd.port.post.mk>