Changeset View
Changeset View
Standalone View
Standalone View
head/x11/rxvt-unicode/Makefile
# Created by: gpalmer@FreeBSD.org | # Created by: gpalmer@FreeBSD.org | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= rxvt-unicode | PORTNAME= rxvt-unicode | ||||
PORTVERSION= 9.22 | PORTVERSION= 9.22 | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= x11 | CATEGORIES= x11 | ||||
MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/ | MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/ | ||||
MASTER_SITE_SUBDIR= . Attic | MASTER_SITE_SUBDIR= . Attic | ||||
MAINTAINER= thierry@FreeBSD.org | MAINTAINER= thierry@FreeBSD.org | ||||
COMMENT= Clone of the terminal emulator rxvt modified to support Unicode | COMMENT= Clone of the terminal emulator rxvt modified to support Unicode | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig | BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:x11-fonts/fontconfig | ||||
LIB_DEPENDS= libfreetype.so:print/freetype2 | |||||
RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:x11-fonts/fontconfig | RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:x11-fonts/fontconfig | ||||
USES= cpe pkgconfig shebangfix tar:bzip2 terminfo xorg | USES= cpe perl5 pkgconfig shebangfix tar:bzip2 terminfo xorg | ||||
USE_XORG= xpm xft xrender | USE_XORG= x11 xft xmu xpm xrender xt | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LIBS+= -lutil | LIBS+= -lutil | ||||
CONFIGURE_ENV= TIC=${LOCALBASE}/bin/tic | CONFIGURE_ENV= TIC=${LOCALBASE}/bin/tic | ||||
CONFIGURE_ARGS= --enable-everything --with-term=rxvt \ | CONFIGURE_ARGS= --enable-everything --with-term=rxvt | ||||
--with-terminfo=${LOCALBASE}/share/misc/terminfo.db | .if !exists(/usr/bin/tic) | ||||
CONFIGURE_ARGS+= --with-terminfo=${LOCALBASE}/share/misc/terminfo.db | |||||
.endif | |||||
CPE_VENDOR= marc_lehmann | CPE_VENDOR= marc_lehmann | ||||
OPTIONS_DEFINE= PERL XIM UNICODE3 ISO14755 COMBINING RXVT_SCROLLBAR \ | OPTIONS_DEFINE= PERL XIM UNICODE3 ISO14755 COMBINING RXVT_SCROLLBAR \ | ||||
NEXT_SCROLLBAR XTERM_SCROLLBAR BACKSPACE_KEY DELETE_KEY \ | NEXT_SCROLLBAR XTERM_SCROLLBAR BACKSPACE_KEY DELETE_KEY \ | ||||
MOUSEWHEEL SMART_RESIZE IMLOCALE_FIX GDK_PIXBUF \ | MOUSEWHEEL SMART_RESIZE IMLOCALE_FIX GDK_PIXBUF \ | ||||
NOTIFY 256_COLOR DOCS | NOTIFY 256_COLOR DOCS | ||||
SHEBANG_FILES= ${WRKSRC}/src/perl/* | SHEBANG_FILES= ${WRKSRC}/src/perl/* | ||||
Show All 18 Lines | |||||
256_COLOR_DESC= Support for 256 colors | 256_COLOR_DESC= Support for 256 colors | ||||
OPTIONS_DEFAULT= PERL XIM UNICODE3 ISO14755 COMBINING RXVT_SCROLLBAR \ | OPTIONS_DEFAULT= PERL XIM UNICODE3 ISO14755 COMBINING RXVT_SCROLLBAR \ | ||||
NEXT_SCROLLBAR XTERM_SCROLLBAR BACKSPACE_KEY DELETE_KEY \ | NEXT_SCROLLBAR XTERM_SCROLLBAR BACKSPACE_KEY DELETE_KEY \ | ||||
MOUSEWHEEL SMART_RESIZE IMLOCALE_FIX GDK_PIXBUF \ | MOUSEWHEEL SMART_RESIZE IMLOCALE_FIX GDK_PIXBUF \ | ||||
256_COLOR | 256_COLOR | ||||
OPTIONS_EXCLUDE_armv6= IMLOCALE_FIX | OPTIONS_EXCLUDE_armv6= IMLOCALE_FIX | ||||
OPTIONS_EXCLUDE_armv7= IMLOCALE_FIX | OPTIONS_EXCLUDE_armv7= IMLOCALE_FIX | ||||
OPTIONS_SUB= yes | |||||
PORTDOCS1= Changes README.FAQ README.configure | PORTDOCS1= Changes README.FAQ README.configure | ||||
PORTDOCS= README.xvt ${PORTDOCS1} | PORTDOCS= README.xvt ${PORTDOCS1} | ||||
.include <bsd.port.options.mk> | IMLOCALE_FIX_PATCH_DEPENDS= p5-Encode-HanExtra>=0:chinese/p5-Encode-HanExtra \ | ||||
.if ${PORT_OPTIONS:MIMLOCALE_FIX} | |||||
PATCH_DEPENDS+= p5-Encode-HanExtra>=0:chinese/p5-Encode-HanExtra \ | |||||
p5-Encode-JIS2K>=0:converters/p5-Encode-JIS2K | p5-Encode-JIS2K>=0:converters/p5-Encode-JIS2K | ||||
.endif | |||||
# disable the embedded perl interpreter | # disable the embedded perl interpreter | ||||
.if !${PORT_OPTIONS:MPERL} | PERL_CONFIGURE_ENABLE= perl | ||||
CONFIGURE_ARGS+= --disable-perl | PERL_USE_OFF= PERL5=build | ||||
USES+= perl5 | |||||
USE_PERL5= build | |||||
PLIST_SUB+= PERL="@comment " | |||||
.else | |||||
USES+= perl5 | |||||
PLIST_SUB+= PERL="" | |||||
.endif | |||||
# disable XIM (X Input Method) protocol support | # disable XIM (X Input Method) protocol support | ||||
.if !${PORT_OPTIONS:MXIM} | XIM_CONFIGURE_ENABLE= xim | ||||
CONFIGURE_ARGS+= --disable-xim | |||||
.endif | |||||
# disable support for Unicode codepoints above 65535 | # disable support for Unicode codepoints above 65535 | ||||
.if !${PORT_OPTIONS:MUNICODE3} | UNICODE3_CONFIGURE_ENABLE= unicode3 | ||||
CONFIGURE_ARGS+= --disable-unicode3 | |||||
.endif | |||||
# disable support for extended ISO 14755 modes | # disable support for extended ISO 14755 modes | ||||
.if !${PORT_OPTIONS:MISO14755} | ISO14755_CONFIGURE_ENABLE= iso14755 | ||||
CONFIGURE_ARGS+= --disable-iso14755 | |||||
.endif | |||||
# disable automatic composition of combining characters | # disable automatic composition of combining characters | ||||
# into composite characters | # into composite characters | ||||
.if !${PORT_OPTIONS:MCOMBINING} | COMBINING_CONFIGURE_ENABLE= combining | ||||
CONFIGURE_ARGS+= --disable-combining | |||||
.endif | |||||
# disable support for the original rxvt scrollbar | # disable support for the original rxvt scrollbar | ||||
.if !${PORT_OPTIONS:MRXVT_SCROLLBAR} | RXVT_SCROLLBAR_CONFIGURE_ENABLE= rxvt-scroll | ||||
CONFIGURE_ARGS+= --disable-rxvt-scroll | |||||
.endif | |||||
# disable support for a NeXT-like scrollbar | # disable support for a NeXT-like scrollbar | ||||
.if !${PORT_OPTIONS:MNEXT_SCROLLBAR} | NEXT_SCROLLBAR_CONFIGURE_ENABLE= next-scroll | ||||
CONFIGURE_ARGS+= --disable-next-scroll | |||||
.endif | |||||
# disable support for an Xterm-like scrollbar | # disable support for an Xterm-like scrollbar | ||||
.if !${PORT_OPTIONS:MXTERM_SCROLLBAR} | XTERM_SCROLLBAR_CONFIGURE_ENABLE= xterm-scroll | ||||
CONFIGURE_ARGS+= --disable-xterm-scroll | |||||
.endif | |||||
# disable any handling of the backspace key by rxvt | # disable any handling of the backspace key by rxvt | ||||
# let the X server do it | # let the X server do it | ||||
.if !${PORT_OPTIONS:MBACKSPACE_KEY} | BACKSPACE_KEY_CONFIGURE_ENABLE= backspace-key | ||||
CONFIGURE_ARGS+= --disable-backspace-key | |||||
.endif | |||||
# disable any handling of the delete key by rxvt | # disable any handling of the delete key by rxvt | ||||
.if !${PORT_OPTIONS:MDELETE_KEY} | DELETE_KEY_CONFIGURE_ENABLE= delete-key | ||||
CONFIGURE_ARGS+= --disable-delete-key | |||||
.endif | |||||
# enable scrolling via mouse wheel or buttons 4 & 5 | # enable scrolling via mouse wheel or buttons 4 & 5 | ||||
.if !${PORT_OPTIONS:MMOUSEWHEEL} | MOUSEWHELL_CONFIGURE_ENABLE= mousewheel | ||||
CONFIGURE_ARGS+= --disable-mousewheel | |||||
.endif | |||||
# enable smart resize | # enable smart resize | ||||
.if !${PORT_OPTIONS:MSMART_RESIZE} | SMART_RESIZE_CONFIGURE_ENABLE= smart-resize | ||||
CONFIGURE_ARGS+= --disable-smart-resize | |||||
.else | |||||
CONFIGURE_ARGS+= --enable-smart-resize | |||||
.endif | |||||
# enable integration with gdk-pixbuf for background images | # enable integration with gdk-pixbuf for background images | ||||
.if !${PORT_OPTIONS:MGDK_PIXBUF} | GDK_PIXBUF_USES= gnome | ||||
CONFIGURE_ARGS+= --disable-pixbuf | GDK_PIXBUF_USE= GNOME=gdkpixbuf2 | ||||
.else | GDK_PIXBUF_CONFIGURE_ENABLE= pixbuf | ||||
USES+= gnome | |||||
USE_GNOME+= gdkpixbuf2 | |||||
CONFIGURE_ARGS+= --enable-pixbuf | |||||
.endif | |||||
# enable startup notification | # enable startup notification | ||||
.if !${PORT_OPTIONS:MNOTIFY} | NOTIFY_CONFIGURE_ENABLE= startup-notification | ||||
CONFIGURE_ARGS+= --disable-startup-notification | NOTIFY_LIB_DEPENDS= libstartup-notification-1.so:x11/startup-notification | ||||
.else | |||||
CONFIGURE_ARGS+= --enable-startup-notification | |||||
LIB_DEPENDS+= libstartup-notification-1.so:x11/startup-notification | |||||
.endif | |||||
# enable support for 256 colors | # enable support for 256 colors | ||||
.if ${PORT_OPTIONS:M256_COLOR} | 256_COLOR_CONFIGURE_ARGS+= --enable-256-color | ||||
CONFIGURE_ARGS+= --enable-256-color | |||||
.endif | |||||
.include <bsd.port.options.mk> | |||||
# compile in support for additional codeset groups | # compile in support for additional codeset groups | ||||
.if ${PORT_OPTIONS:MENCODING} | .if ${PORT_OPTIONS:MENCODING} | ||||
AVAIL_ENC= jp jp_ext kr zh zh_ext all | AVAIL_ENC= jp jp_ext kr zh zh_ext all | ||||
. for ENC in ${AVAIL_ENC} | . for ENC in ${AVAIL_ENC} | ||||
. if (${WITH_ENCODING} == ${ENC}) | . if (${WITH_ENCODING} == ${ENC}) | ||||
_ENC= ${ENC} | _ENC= ${ENC} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
Show All 17 Lines | .ifndef(WITH_ENCODING) | ||||
@${ECHO_MSG} ' "kr" korean encodings;' | @${ECHO_MSG} ' "kr" korean encodings;' | ||||
@${ECHO_MSG} ' "zh" common chinese encodings;' | @${ECHO_MSG} ' "zh" common chinese encodings;' | ||||
@${ECHO_MSG} ' "zh_ext" rarely used but very big chinese encodigs;' | @${ECHO_MSG} ' "zh_ext" rarely used but very big chinese encodigs;' | ||||
@${ECHO_MSG} ' "all" all of the above;' | @${ECHO_MSG} ' "all" all of the above;' | ||||
@${ECHO_MSG} '==> For example, "WITH_ENCODING=kr" for korean encodings.' | @${ECHO_MSG} '==> For example, "WITH_ENCODING=kr" for korean encodings.' | ||||
@${ECHO_MSG} | @${ECHO_MSG} | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MIMLOCALE_FIX} | post-patch-IMLOCALE_FIX-on: | ||||
post-patch: | |||||
${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-imlocale | ${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-imlocale | ||||
cd ${WRKSRC}/src && ./gentables | cd ${WRKSRC}/src && ./gentables | ||||
.endif | |||||
pre-configure: | pre-configure: | ||||
.if exists(/usr/bin/tic) | |||||
${REINPLACE_CMD} -e "/rxvt-unicode.terminfo/d" ${WRKSRC}/doc/Makefile.in | |||||
.endif | |||||
${RM} ${WRKSRC}/src/perl/kuake.orig | ${RM} ${WRKSRC}/src/perl/kuake.orig | ||||
post-build: | post-build-DOCS-on: | ||||
.if ${PORT_OPTIONS:MDOCS} | |||||
${CP} ${PORTDOCS1:S|^|${WRKSRC}/|} ${WRKSRC}/doc | ${CP} ${PORTDOCS1:S|^|${WRKSRC}/|} ${WRKSRC}/doc | ||||
.endif | |||||
post-install: | post-install: | ||||
${INSTALL_DATA} ${WRKSRC}/doc/etc/rxvt-unicode.terminfo \ | ${INSTALL_DATA} ${WRKSRC}/doc/etc/rxvt-unicode.terminfo \ | ||||
${STAGEDIR}${PREFIX}/share/misc/ | ${STAGEDIR}${PREFIX}/share/misc/ | ||||
.if ${PORT_OPTIONS:MDOCS} | |||||
post-install-DOCS-on: | |||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} | ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} | ||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." | @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |