diff options
author | miwi <miwi@FreeBSD.org> | 2008-08-03 18:21:15 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-08-03 18:21:15 +0800 |
commit | e809fbf251d63c28b9db09f8c3e3aeb405165a37 (patch) | |
tree | 6f87994790148c3632cb417d116a22c2f1a604dd /x11 | |
parent | 933dfb522214062f64b2fc5b958de8677af98839 (diff) | |
download | freebsd-ports-gnome-e809fbf251d63c28b9db09f8c3e3aeb405165a37.tar.gz freebsd-ports-gnome-e809fbf251d63c28b9db09f8c3e3aeb405165a37.tar.zst freebsd-ports-gnome-e809fbf251d63c28b9db09f8c3e3aeb405165a37.zip |
- Convert to OPTIONS
- Pass maintainership to submitter
PR: 125877 / 125882
Submitted by: Andy Kosela <akosela@andykosela.com>
Diffstat (limited to 'x11')
-rw-r--r-- | x11/rxvt-devel/Makefile | 173 | ||||
-rw-r--r-- | x11/rxvt/Makefile | 88 |
2 files changed, 130 insertions, 131 deletions
diff --git a/x11/rxvt-devel/Makefile b/x11/rxvt-devel/Makefile index e669ed30c98f..8e34d7fb40e5 100644 --- a/x11/rxvt-devel/Makefile +++ b/x11/rxvt-devel/Makefile @@ -5,7 +5,7 @@ # $FreeBSD$ # # If possible, please consider updating the simple ports/x11-clocks/rclock -# when you upgrade rxvt. These ports all use the same distfile. +# when you upgrade rxvt. These ports all use the same distfile. PORTNAME= rxvt PORTVERSION= 2.7.10 @@ -14,125 +14,122 @@ CATEGORIES+= x11 MASTER_SITES= SF PKGNAMESUFFIX= -devel -MAINTAINER= ports@FreeBSD.org +MAINTAINER= akosela@andykosela.com COMMENT= A low memory usage xterm replacement that supports color USE_AUTOTOOLS= libtool:15 USE_PERL5_BUILD=yes USE_XORG= xpm GNU_CONFIGURE= yes + +OPTIONS= 256_COLOR "Build with 256-color support" off \ + BIG5 "Build with BIG5 support" off \ + EUCJ "Build with EUC Japanese support" off \ + GB "Build with GB support" off \ + GREEK "Build with greek keyboard support" off \ + KR "Build with EUC Korean support" off \ + LINESPACE "Build with linespace support" off \ + MENUBAR "Build with menubar support" off \ + NEXT "Build with NeXT scrollbar" off \ + RXVT "Build with rxvt scrollbar" off \ + SJIS "Build with Shift JIS support" off \ + SMART "Build with smart resize support" 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-languages \ - --with-xpm --enable-xpm-background --enable-transparency \ - --enable-shared + --with-xpm --enable-xpm-background --enable-shared \ + --enable-mousewheel --disable-languages USE_LDCONFIG= yes MAN1= rxvt.1 -# disable backspace key -.if defined(WITHOUT_BACKSPACE_KEY) -CONFIGURE_ARGS+= --disable-backspace-key -.endif # WITHOUT_BACKSPACE_KEY -# -# disable delete key -.if defined(WITHOUT_DELETE_KEY) -CONFIGURE_ARGS+= --disable-delete-key -.endif # WITHOUT_DELETE_KEY -# -# set the default encoding for multi-char glyph languages -.if defined(WITH_ENCODING) -CONFIGURE_ARGS+= --with-encoding=${WITH_ENCODING} -.endif # WITH_ENCODING -# -# enable graphics support -.if defined(WITH_GRAPHICS) -CONFIGURE_ARGS+= --enable-graphics -.endif # WITH_GRAPHICS -# +.include <bsd.port.pre.mk> + +# enable 256 color +.if defined(WITH_256_COLOR) +CONFIGURE_ARGS+= --enable-256-color +.endif + +# enable big5 support +.if defined(WITH_BIG5) +CONFIGURE_ARGS+= --with-encoding=big5 --enable-languages +.endif + +# enable euc japanese support +.if defined(WITH_EUCJ) +CONFIGURE_ARGS+= --with-encoding=eucj --enable-languages +.endif + +# enable gb support +.if defined(WITH_GB) +CONFIGURE_ARGS+= --with-encoding=gb --enable-languages +.endif + # enable greek keyboard support -.if defined(WITH_GREEK_KEYBOARD) +.if defined(WITH_GREEK) CONFIGURE_ARGS+= --enable-greek -.endif # WITH_GREEK_KEYBOARD -# +.endif + +# enable euc korean support +.if defined(WITH_KR) +CONFIGURE_ARGS+= --with-encoding=kr --enable-languages +.endif + +# enable line-spacing +.if defined(WITH_LINESPACE) +CONFIGURE_ARGS+= --enable-linespace +.endif + # enable menubar .if defined(WITH_MENUBAR) CONFIGURE_ARGS+= --enable-menubar -.endif # WITH_MENUBAR -# -# enable scrolling via mouse wheel or buttons 4 & 5 -.if defined(WITH_MOUSEWHEEL) -CONFIGURE_ARGS+= --enable-mousewheel -.endif # WITH_MOUSEWHEEL -# +.endif + # enable NeXT style scrollbar -.if defined(WITH_NEXT_SCROLLBAR) +.if defined(WITH_NEXT) CONFIGURE_ARGS+= --enable-next-scroll .endif -# + # enable rxvt style scrollbar -.if defined(WITH_RXVT_SCROLLBAR) +.if defined(WITH_RXVT) CONFIGURE_ARGS+= --enable-rxvt-scroll -.endif # WITH_RXVT_SCROLLBAR -# +.endif + +# enable shift jis support +.if defined(WITH_SJIS) +CONFIGURE_ARGS+= --with-encoding=sjis --enable-languages +.endif + # enable smart resize -.if defined(WITH_SMART_RESIZE) +.if defined(WITH_SMART) CONFIGURE_ARGS+= --enable-smart-resize -.endif # WITH_SMART_RESIZE -# +.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 # WITH_XGETDEFAULT -# +.endif + # XIM (X Input Method) protocol support -.ifndef(WITHOUT_XIM) +.if defined(WITH_XIM) CONFIGURE_ARGS+= --enable-xim -.endif # WITHOUT_XIM -# +.endif + # enable Xterm style scrollbar -.if defined(WITH_XTERM_SCROLLBAR) +.if defined(WITH_XTERM) CONFIGURE_ARGS+= --enable-xterm-scroll -.endif # WITH_XTERM_SCROLLBAR -# -# enable line-spacing -.if defined(WITH_LINESPACE) -CONFIGURE_ARGS+= --enable-linespace -.endif # WITH_LINESPACE -# -# enable 256 color -.if defined(WITH_256_COLOR) -CONFIGURE_ARGS+= --enable-256-color -.endif # WITH_256_COLOR +.endif CONFIGURE_ENV+= LIBS="-lutil" -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} "You may use the following build options:" - @${ECHO_MSG} - @${ECHO_MSG} "WITHOUT_BACKSPACE_KEY=yes disable handling of the backspace key" - @${ECHO_MSG} "WITHOUT_DELETE_KEY=yes disable handling of the delete key" - @${ECHO_MSG} "WITHOUT_XIM=yes disable support for XIM (X Input Method) protocol" - @${ECHO_MSG} "WITH_XGETDEFAULT=yes make resources checking via XGetDefault()" - @${ECHO_MSG} "WITH_GRAPHICS=yes enable rxvt own graphics mode" - @${ECHO_MSG} "WITH_GREEK_KEYBOARD=yes add support for greek keyboard" - @${ECHO_MSG} "WITH_LINESPACE=yes add support for line-spacing" - @${ECHO_MSG} "WITH_MENUBAR=yes add support for rxvt menu bar system" - @${ECHO_MSG} "WITH_MOUSEWHEEL=yes add support for scrolling via mouse wheel" - @${ECHO_MSG} " or buttons 4 & 5" - @${ECHO_MSG} "WITH_SMART_RESIZE=yes enable smart growth/shrink behaviour" - @${ECHO_MSG} "WITH_NEXT_SCROLLBAR=yes add support for a NeXT-like scrollbar" - @${ECHO_MSG} "WITH_RXVT_SCROLLBAR=yes add support for the original rxvt scrollbar" - @${ECHO_MSG} "WITH_XTERM_SCROLLBAR=yes add support for an Xterm-like scrollbar" - @${ECHO_MSG} -.ifndef(WITH_ENCODING) - @${ECHO_MSG} "==> You can specify an alternate encoding by setting the WITH_ENCODING variable" - @${ECHO_MSG} '==> Options are: "eucj" EUC Japanese encoding; "sjis" Shift JIS encoding;' - @${ECHO_MSG} '==> "big5" BIG5 encoding; "gb" GB encoding; "kr" EUC Korean encoding' - @${ECHO_MSG} '==> "noenc" for no encoding (useful if you are experiencing encoding problems)' - @${ECHO_MSG} '==> For example, "WITH_ENCODING=gb" for GB encoding' - @${ECHO_MSG} -.endif - post-patch: @${PERL} -pi -e 's|(PTYCHAR2\s+"[^"]+)"|\1ghijklmnopqrstuv"|' \ ${WRKSRC}/src/ptytty.c @@ -140,4 +137,4 @@ post-patch: post-install: @${CHMOD} 4711 ${PREFIX}/bin/rxvt -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile index f5873c03b4b6..3534807058ad 100644 --- a/x11/rxvt/Makefile +++ b/x11/rxvt/Makefile @@ -5,8 +5,7 @@ # $FreeBSD$ # # If possible, please consider updating the simple ports/x11-clocks/rclock -# (and maybe ports/chinese/rxvt) when you upgrade rxvt. These ports all use -# the same distfile. +# when you upgrade rxvt. These ports all use the same distfile. PORTNAME= rxvt PORTVERSION= 2.6.4 @@ -14,86 +13,89 @@ PORTREVISION= 5 CATEGORIES+= x11 MASTER_SITES= SF -MAINTAINER= ports@FreeBSD.org +MAINTAINER= akosela@andykosela.com 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 --enable-transparency \ + --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> + # enable big5 support .if defined(WITH_BIG5) CONFIGURE_ARGS+= --enable-big5 -.endif # WITH_BIG5 -# +.endif + # enable gb support .if defined(WITH_GB) CONFIGURE_ARGS+= --enable-gb -.endif # WITH_GB -# +.endif + # enable greek keyboard support -.if defined(WITH_GREEK_KEYBOARD) +.if defined(WITH_GREEK) CONFIGURE_ARGS+= --enable-greek -.endif # WITH_GREEK_KEYBOARD -# +.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 # WITH_KANJI -# +.endif + # enable menubar .if defined(WITH_MENUBAR) CONFIGURE_ARGS+= --enable-menubar -.endif # WITH_MENUBAR -# +.endif + # enable NeXT style scrollbar -.if defined(WITH_NEXT_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 # WITH_XGETDEFAULT -# +.endif + # XIM (X Input Method) protocol support -.ifndef(WITHOUT_XIM) +.if defined(WITH_XIM) CONFIGURE_ARGS+= --enable-xim -.endif # WITH_XIM -# +.endif + # enable Xterm style scrollbar -.if defined(WITH_XTERM_SCROLLBAR) +.if defined(WITH_XTERM) CONFIGURE_ARGS+= --enable-xterm-scroll -.endif # WITH_XTERM_SCROLLBAR -# - -pre-fetch: - @${ECHO_MSG} "" - @${ECHO_MSG} "You may use the following build options:" - @${ECHO_MSG} "" - @${ECHO_MSG} "WITHOUT_XIM=yes disable support for XIM (X Input Method) protocol" - @${ECHO_MSG} "WITH_XGETDEFAULT=yes make resources checking via XGetDefault()" - @${ECHO_MSG} "WITH_BIG5=yes add support for Chinese characters (BIG5)" - @${ECHO_MSG} "WITH_GB=yes add support for Chinese characters (GB)" - @${ECHO_MSG} "WITH_GREEK_KEYBOARD=yes add support for greek keyboard" - @${ECHO_MSG} "WITH_HALF_SHADOW=yes use half width/height shadows on non-Xterm scrollbar" - @${ECHO_MSG} "WITH_KANJI=yes add support for Kanji characters" - @${ECHO_MSG} "WITH_MENUBAR=yes add support for rxvt menu bar system" - @${ECHO_MSG} "WITH_NEXT_SCROLLBAR=yes add support for a NeXT-like scrollbar" - @${ECHO_MSG} "WITH_XTERM_SCROLLBAR=yes make the scrollbar look like an Xterm scrollbar" - @${ECHO_MSG} "WITH_CLEARTEXTPASSWD=yes use cleartext passwords" +.endif post-install: @${CHMOD} 4711 ${PREFIX}/bin/rxvt -.include <bsd.port.mk> +.include <bsd.port.post.mk> |