pkgsrc/x11/mrxvt/Makefile

60 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2011/11/01 06:03:04 sbd Exp $
#
DISTNAME= mrxvt-0.5.4
PKGREVISION= 6
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=materm/}
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= mrxvt-0.5.4-001-fix-segfault-when-wd-empty.patch
MAINTAINER= tnn@NetBSD.org
HOMEPAGE= http://materm.sourceforge.net/
COMMENT= Multi-tabbed terminal emulator with Xft support
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
USE_FEATURES+= snprintf
CONFIGURE_ARGS+= --enable-xft
CONFIGURE_ARGS+= --enable-text-shadow
CONFIGURE_ARGS+= --enable-24bits
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "HPUX"
CONFIGURE_ARGS+= --disable-lastlog --disable-utmp --disable-wtmp
.endif
EGDIR= ${PREFIX}/share/examples
MAKE_DIRS+= ${PKG_SYSCONFDIR}/mrxvt
CONF_FILES= ${EGDIR}/mrxvt/mrxvtrc ${PKG_SYSCONFDIR}/mrxvt/mrxvtrc
CONF_FILES+= ${EGDIR}/mrxvt/default.menu ${PKG_SYSCONFDIR}/mrxvt/default.menu
CONF_FILES+= ${EGDIR}/mrxvt/submenus.menu ${PKG_SYSCONFDIR}/mrxvt/submenus.menu
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly"
# Make mrxvt setuid root so that tty ownership setting and utmp logging
# function correctly.
#
CONFIGURE_ARGS+= --enable-ttygid
SPECIAL_PERMS= ${PREFIX}/bin/mrxvt ${SETUID_ROOT_PERMS}
.endif
BUILDLINK_DEPMETHOD.libXt+= build
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"