mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
151 lines
3.7 KiB
Makefile
151 lines
3.7 KiB
Makefile
# Created by: Gary Palmer <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.7.10
|
|
PORTREVISION= 6
|
|
CATEGORIES+= x11
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dev/${PORTVERSION}
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A low memory usage xterm replacement that supports color
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
USE_PERL5_BUILD=yes
|
|
USE_XORG= xpm
|
|
GNU_CONFIGURE= yes
|
|
|
|
OPTIONS_DEFINE= 256_COLOR BIG5 EUCJ GB GREEK KR LINESPACE MENUBAR NEXT RXVT \
|
|
SJIS SMART TRANSPARENCY XIM XTERM
|
|
256_COLOR_DESC= Build with 256-color support
|
|
BIG5_DESC= Build with BIG5 support
|
|
EUCJ_DESC= Build with EUC Japanese support
|
|
GB_DESC= Build with GB support
|
|
GREEK_DESC= Build with greek keyboard support
|
|
KR_DESC= Build with EUC Korean support
|
|
LINESPACE_DESC= Build with linespace support
|
|
MENUBAR_DESC= Build with menubar support
|
|
NEXT_DESC= Build with NeXT scrollbar
|
|
RXVT_DESC= Build with rxvt scrollbar
|
|
SJIS_DESC= Build with Shift JIS support
|
|
SMART_DESC= Build with smart resize support
|
|
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-utmp --enable-lastlog \
|
|
--with-xpm --enable-xpm-background --enable-shared \
|
|
--enable-mousewheel --disable-languages
|
|
USE_LDCONFIG= yes
|
|
|
|
MAN1= rxvt.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 900007
|
|
CONFIGURE_ARGS+= --disable-wtmp
|
|
EXTRA_PATCHES+= ${FILESDIR}/utmpx_patch-src::logging.c
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-wtmp
|
|
EXTRA_PATCHES+= ${FILESDIR}/utmp_patch-src::logging.c
|
|
.endif
|
|
|
|
# enable 256 color
|
|
.if ${PORT_OPTIONS:M256_COLOR}
|
|
CONFIGURE_ARGS+= --enable-256-color
|
|
.endif
|
|
|
|
# enable big5 support
|
|
.if ${PORT_OPTIONS:MBIG5}
|
|
CONFIGURE_ARGS+= --with-encoding=big5 --enable-languages
|
|
.endif
|
|
|
|
# enable euc japanese support
|
|
.if ${PORT_OPTIONS:MEUCJ}
|
|
CONFIGURE_ARGS+= --with-encoding=eucj --enable-languages
|
|
.endif
|
|
|
|
# enable gb support
|
|
.if ${PORT_OPTIONS:MGB}
|
|
CONFIGURE_ARGS+= --with-encoding=gb --enable-languages
|
|
.endif
|
|
|
|
# enable greek keyboard support
|
|
.if ${PORT_OPTIONS:MGREEK}
|
|
CONFIGURE_ARGS+= --enable-greek
|
|
.endif
|
|
|
|
# enable euc korean support
|
|
.if ${PORT_OPTIONS:MKR}
|
|
CONFIGURE_ARGS+= --with-encoding=kr --enable-languages
|
|
.endif
|
|
|
|
# enable line-spacing
|
|
.if ${PORT_OPTIONS:MLINESPACE}
|
|
CONFIGURE_ARGS+= --enable-linespace
|
|
.endif
|
|
|
|
# enable menubar
|
|
.if ${PORT_OPTIONS:MMENUBAR}
|
|
CONFIGURE_ARGS+= --enable-menubar
|
|
.endif
|
|
|
|
# enable NeXT style scrollbar
|
|
.if ${PORT_OPTIONS:MNEXT}
|
|
CONFIGURE_ARGS+= --enable-next-scroll
|
|
.endif
|
|
|
|
# enable rxvt style scrollbar
|
|
.if ${PORT_OPTIONS:MRXVT}
|
|
CONFIGURE_ARGS+= --enable-rxvt-scroll
|
|
.endif
|
|
|
|
# enable shift jis support
|
|
.if ${PORT_OPTIONS:MSJIS}
|
|
CONFIGURE_ARGS+= --with-encoding=sjis --enable-languages
|
|
.endif
|
|
|
|
# enable smart resize
|
|
.if ${PORT_OPTIONS:MSMART}
|
|
CONFIGURE_ARGS+= --enable-smart-resize
|
|
.endif
|
|
|
|
# enable transparency support
|
|
.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
|
|
|
|
# enable Xterm style scrollbar
|
|
.if ${PORT_OPTIONS:MXTERM}
|
|
CONFIGURE_ARGS+= --enable-xterm-scroll
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= LIBS="-lutil"
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's|(PTYCHAR2\s+"[^"]+)"|\1ghijklmnopqrstuv"|' \
|
|
${WRKSRC}/src/ptytty.c
|
|
@${REINPLACE_CMD} -e 's|--mode=compile|& --tag=CC|' \
|
|
-e 's|--mode=link|& --tag=CC|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
post-install:
|
|
@${CHMOD} 4711 ${PREFIX}/bin/rxvt
|
|
|
|
.include <bsd.port.post.mk>
|