aboutsummaryrefslogtreecommitdiffstats
path: root/x11/rxvt/Makefile
blob: 36997e2af45e45c724a61db719750d50abe9db8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# 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=    BIG5        "Build with BIG5 support" off \
        GB      "Build with GB support" off \
        GREEK       "Build with greek keyboard support" off \
        HALF_SHADOW "Build with half shadows support" off \
        KANJI       "Build with Kanji support" off \
        MENUBAR     "Build with menubar support" off \
        NEXT        "Build with NeXT scrollbar" off \
        TRANSPARENCY    "Build with transparency support" off \
        XGETDEFAULT "Build with XGetDefault() support" off \
        XIM     "Build with XIM support" off \
        XTERM       "Build with Xterm scrollbar" off

CONFIGURE_ARGS= --enable-utmp --enable-wtmp --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

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=     fails to build with new utmpx
.endif

# enable big5 support
.if defined(WITH_BIG5)
CONFIGURE_ARGS+=    --enable-big5
.endif

# enable gb support
.if defined(WITH_GB)
CONFIGURE_ARGS+=    --enable-gb
.endif

# enable greek keyboard support
.if defined(WITH_GREEK)
CONFIGURE_ARGS+=    --enable-greek
.endif

# enable half width/height shadows scrollbar
.if defined(WITH_HALF_SHADOW)
CONFIGURE_ARGS+=    --enable-half-shadow
.endif

# enable kanji support
.if defined(WITH_KANJI)
CONFIGURE_ARGS+=    --enable-kanji
.endif

# enable menubar
.if defined(WITH_MENUBAR)
CONFIGURE_ARGS+=    --enable-menubar
.endif

# enable NeXT style scrollbar
.if defined(WITH_NEXT)
CONFIGURE_ARGS+=    --enable-next-scroll
.endif

# enable transparency support
.if defined(WITH_TRANSPARENCY)
CONFIGURE_ARGS+=    --enable-transparency
.endif

# make resources checking via XGetDefault()
.if defined(WITH_XGETDEFAULT)
CONFIGURE_ARGS+=    --enable-xgetdefault
.endif

# XIM (X Input Method) protocol support
.if defined(WITH_XIM)
CONFIGURE_ARGS+=    --enable-xim
.endif

# enable Xterm style scrollbar
.if defined(WITH_XTERM)
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>