ports/132120: [patch] x11/xmobar - Xft & UTF-8 support
Pavel Plesov
pavel.plesov at gmail.com
Thu Feb 26 10:40:02 UTC 2009
>Number: 132120
>Category: ports
>Synopsis: [patch] x11/xmobar - Xft & UTF-8 support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 26 10:40:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Pavel Plesov
>Release: FreeBSD 7.1-STABLE amd64
>Organization:
>Environment:
7.1-STABLE FreeBSD 7.1-STABLE #13: Tue Feb 17 13:17:21 MSK 2009
>Description:
Patch to add support of Xft & UTF-8 to x11/xmobar port.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- /usr/ports/x11/xmobar/Makefile.orig 2009-02-26 12:55:40.000000000 +0300
+++ /usr/ports/x11/xmobar/Makefile 2009-02-26 13:10:44.000000000 +0300
@@ -26,8 +26,23 @@
PORTVERSION=${PORTVERSION} \
SUBDIR=${SUBDIR}
+OPTIONS= XFT "Enable Xft support for fonts" Off \
+ UTF8 "Enable UTF-8 support" Off
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
+
+.if defined(WITH_XFT)
+CONFIGURE_ARGS+= --flags="with_xft"
+BUILD_DEPENDS+= hs-x11-xft-ghc>=0.2:${PORTSDIR}/x11/hs-x11-xft-ghc
+.elif defined(WITH_UTF8)
+CONFIGURE_ARGS+= --flags="with_utf8"
+BUILD_DEPENDS+= hs-utf8-string-ghc>=0.1:${PORTSDIR}/devel/hs-utf8-string-ghc
+.endif
+
do-configure:
- cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
+ cd ${WRKSRC} && ${CABAL} configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${CABAL} build
@@ -35,4 +50,4 @@
do-install:
cd ${WRKSRC} && ${CABAL} install
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list