mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
d9759137c7
- Fix build by adding -fnocommon to CFLAGS [1] - Add missing LIB_DEPENDS and USE_XORG components PR: 253330 [1] Submitted by: jjuanino <jjuanino@gmail.com> MFH: 2021Q1
156 lines
4.1 KiB
Makefile
156 lines
4.1 KiB
Makefile
# 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.*
|
|
USES= shebangfix xorg
|
|
USE_XORG= ice x11 sm xpm xrender
|
|
GNU_CONFIGURE= yes
|
|
|
|
LIB_DEPENDS+= libfontconfig.so:x11-fonts/fontconfig
|
|
|
|
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 EXAMPLES
|
|
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
|
|
CFLAGS+= -fcommon
|
|
|
|
.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>
|