aboutsummaryrefslogtreecommitdiffstats
path: root/x11/rxvt
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-30 04:58:27 +0800
committeradamw <adamw@FreeBSD.org>2014-07-30 04:58:27 +0800
commit01d8d88f456e484b8265e7be7086d3b5a1b4b701 (patch)
tree9323b493038003001d35c1b93f7bbb7b20855ac6 /x11/rxvt
parent6e2aad917a910e4c9643742f0e3b63542d308c92 (diff)
downloadfreebsd-ports-gnome-01d8d88f456e484b8265e7be7086d3b5a1b4b701.tar.gz
freebsd-ports-gnome-01d8d88f456e484b8265e7be7086d3b5a1b4b701.tar.zst
freebsd-ports-gnome-01d8d88f456e484b8265e7be7086d3b5a1b4b701.zip
OPTIONS helpers
Diffstat (limited to 'x11/rxvt')
-rw-r--r--x11/rxvt/Makefile62
1 files changed, 15 insertions, 47 deletions
diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile
index a1ed06763492..33d34180ceeb 100644
--- a/x11/rxvt/Makefile
+++ b/x11/rxvt/Makefile
@@ -33,6 +33,21 @@ CONFIGURE_ARGS= --enable-ttygid \
--with-xpm-library=${LOCALBASE}/lib
PLIST_FILES= bin/rxvt man/man1/${PORTNAME}.1.gz
+BIG5_CONFIGURE_ON= --enable-big5
+GB_CONFIGURE_ON= --enable-gb
+GREEK_CONFIGURE_ON= --enable-greek
+# enable half width/height shadows scrollbar
+HALF_SHADOW_CONFIGURE_ON= --enable-half-shadow
+KANJI_CONFIGURE_ON= --enable-kanji
+MENUBAR_CONFIGURE_ON= --enable-menubar
+NEXT_CONFIGURE_ON= --enable-next-scroll
+TRANSPARENCY_CONFIGURE_ON= --enable-transparency
+# make resources checking via XGetDefault()
+XGETDEFAULT_CONFIGURE_ON= --enable-xgetdefault
+# XIM (X Input Method) protocol support
+XIM_CONFIGURE_ON= --enable-xim
+XTERM_CONFIGURE_ON= --enable-xterm-scroll
+
.include <bsd.port.pre.mk>
# fails to build with new utmpx
@@ -42,53 +57,6 @@ CONFIGURE_ARGS+= --disable-utmp --disable-wtmp
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