[ maintainer ] sysutils/torsmo: add WITH_XFT knob

Add WITH_XFT option/knob which can be used to toggle XFT support
	Requested by:	Anton Karpov <toxa@cterra.ru>

PR:		ports/76121
Submitted by:	Roman Bogorodskiy <bogorodskiy@inbox.ru>
This commit is contained in:
Edwin Groothuis
2005-01-13 23:02:53 +00:00
parent 4d6a826798
commit 08f4b85843

View File

@@ -7,7 +7,7 @@
PORTNAME= torsmo
PORTVERSION= 0.18
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,15 +17,22 @@ COMMENT= System monitor that renders text on desktop
GNU_CONFIGURE= yes
USE_X_PREFIX= yes
MAN1= torsmo.1
MAN1= torsmo.1
PLIST_FILES= bin/torsmo \
%%EXAMPLESDIR%%/torsmorc.sample
PLIST_DIRS= %%EXAMPLESDIR%%
PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS= XFT "Enable XFT support" on
.include <bsd.port.pre.mk>
.if defined(WITH_XFT)
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
CONFIGURE_ARGS+= --enable-xft
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}