blob: 7aa87743457852b44c46cf19134bbb9cf0ca07a3 (
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
# Created by: Lars Engels <lars.engels@0x20.net>
# $FreeBSD$
PORTNAME= mrxvt-devel
PORTVERSION= 0.5.4
PORTREVISION= 11
CATEGORIES= x11
MASTER_SITES= SF/materm/mrxvt%20source/${PORTVERSION}
DISTNAME= mrxvt-${PORTVERSION}
MAINTAINER= lme@FreeBSD.org
COMMENT= Development version of mrxvt
LICENSE= GPLv2
CONFLICTS= mrxvt-0.4.*
USE_XORG= x11
GNU_CONFIGURE= yes
USES= shebangfix
SHEBANG_FILES= ${WRKSRC}/share/scripts/mrxvtset.pl
SUB_FILES+= pkg-message
DESKTOP_ENTRIES= "mrxvt" "mrxvt terminal emulator" \
"${PREFIX}/share/pixmaps/mrxvt.png" \
"mrxvt" "Utility;TerminalEmulator;" \
false
OPTIONS_DEFINE= XFT BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN JAPANESE 24BITS \
MENUBAR TEXTSHADOW FRILLS DOCS
OPTIONS_DEFAULT= BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN 24BITS \
MENUBAR XFT JAPANESE FRILLS TEXTSHADOW
BACKGROUND_DESC= Background images
TRANSPARENCY_DESC= Transparent background
SWAPSCREEN_DESC= Swapscreen
JAPANESE_DESC= Support for Japanese language
24BITS_DESC= Prefer 24 bits color
MENUBAR_DESC= Menubar
TEXTSHADOW_DESC= Text shadow
FRILLS_DESC= Internal borders and smart resizing
.include <bsd.port.options.mk>
CONFIGURE_ARGS+= --enable-utempter
CONFIGURE_ARGS+= --disable-lastlog
.if ${PORT_OPTIONS:MJAPANESE}
CONFIGURE_ARGS+= --enable-xim --enable-cjk --with-encoding=eucj
.endif
.if ${PORT_OPTIONS:MXFT}
USE_XORG+= xft
CONFIGURE_ARGS+= --enable-xft
.endif
.if ${PORT_OPTIONS:MXFT} && ${PORT_OPTIONS:MJAPANESE}
USES+= iconv
.endif
.if ${PORT_OPTIONS:M24BITS}
CONFIGURE_ARGS+= --enable-24bits
.endif
.if ! ${PORT_OPTIONS:MBACKGROUND}
CONFIGURE_ARGS+= --disable-xpm
.endif
.if ! ${PORT_OPTIONS:MJPEG} || ! ${PORT_OPTIONS:MBACKGROUND}
CONFIGURE_ARGS+= --disable-jpeg
.else
USES+= jpeg
.endif
.if ! ${PORT_OPTIONS:MPNG} || ! ${PORT_OPTIONS:MBACKGROUND}
CONFIGURE_ARGS+= --disable-png
.else
LIB_DEPENDS+= libpng.so:graphics/png
.endif
.if ! ${PORT_OPTIONS:MTRANSPARENCY}
CONFIGURE_ARGS+= --disable-transparency
.endif
.if ${PORT_OPTIONS:MMENUBAR}
CONFIGURE_ARGS+= --enable-menubar
.endif
.if ${PORT_OPTIONS:MTEXTSHADOW}
CONFIGURE_ARGS+= --enable-text-shadow
.endif
.if ! ${PORT_OPTIONS:MSWAPSCREEN}
CONFIGURE_ARGS+= --disable-swapscreen
.endif
.if ${PORT_OPTIONS:MFRILLS}
CONFIGURE_ARGS+= --enable-frills
.endif
## Rarely used options, not in the main menu
# How many lines to save in the scroll buffer
.if defined(SAVE_LINES)
CONFIGURE_ARGS+= --with-save-lines=${SAVE_LINES:M[0-9]*}
.endif
# Maximal number of terminals
.if defined(MAX_TERMINALS)
CONFIGURE_ARGS+= --with-max-term=${MAX_TERMINALS:M[0-9]*}
.endif
# Maximal number of profiles
.if defined(MAX_PROFILES)
CONFIGURE_ARGS+= --with-max-profiles=${MAX_PROFILES:M[0-9]*}
.endif
# Extra height of active tab as a percentage of the font height
.if defined(EXTRA_ATAB_HEIGHT)
CONFIGURE_ARGS+= --with-atab-extra=${EXTRA_ATAB_HEIGHT:M[0-9]*}
.endif
# The radius of tab corners as a percentage of the font X offset
.if defined(TAB_RADIUS)
CONFIGURE_ARGS+= --with-tab-radius=${TAB_RADIUS:M[0-9]*}
.endif
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=no
.else
CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=yes
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mrxvt ${STAGEDIR}${PREFIX}/bin
@for pixmap in ${WRKSRC}/share/pixmaps/* ; \
do ${INSTALL_DATA} $$pixmap ${STAGEDIR}${PREFIX}/share/pixmaps/ ; \
done
${MKDIR} ${STAGEDIR}${PREFIX}/etc/mrxvt
${INSTALL_DATA} ${WRKSRC}/share/mrxvtrc ${STAGEDIR}${PREFIX}/etc/mrxvt/mrxvtrc.sample
${INSTALL_DATA} ${WRKSRC}/share/default.menu ${STAGEDIR}${PREFIX}/etc/mrxvt/default.menu.sample
${INSTALL_DATA} ${WRKSRC}/share/submenus.menu ${STAGEDIR}${PREFIX}/etc/mrxvt/submenus.menu.sample
${INSTALL_MAN} ${WRKSRC}/doc/mrxvt.1 ${STAGEDIR}${MANPREFIX}/man/man1
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/scripts
${INSTALL_DATA} ${WRKSRC}/share/scripts/mrxvtset.pl ${STAGEDIR}${EXAMPLESDIR}/scripts
${INSTALL_DATA} ${WRKSRC}/share/scripts/settitle.c ${STAGEDIR}${EXAMPLESDIR}/scripts
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} ${WRKSRC}/doc/*.bz2 ${STAGEDIR}${DOCSDIR}
${BZIP2_CMD} -d ${STAGEDIR}${DOCSDIR}/*.bz2
.include <bsd.port.post.mk>
|