diff options
-rw-r--r-- | x11-fonts/xfs/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/x11-fonts/xfs/Makefile b/x11-fonts/xfs/Makefile index abd7e863acee..d5ccfed14f1d 100644 --- a/x11-fonts/xfs/Makefile +++ b/x11-fonts/xfs/Makefile @@ -7,7 +7,7 @@ PORTNAME= xfs PORTVERSION= 1.0.4 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= x11-fonts @@ -21,6 +21,14 @@ ALL_TARGET= all config MAN1= xfs.1 +.if !defined(WITHOUT_XFS_CACHE) +USE_XORG+= fontcacheproto x11 +CFLAGS+= -DFONTCACHE +.else +post-patch: + ${REINPLACE_CMD} -e 's|^cache|XCOMM &|' ${WRKSRC}/config.cpp +.endif + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/config ${PREFIX}/lib/X11/fs/config.default @if [ ! -f ${PREFIX}/lib/X11/fs/config ]; then \ |