diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2008-10-23 19:20:08 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2008-10-23 19:20:08 +0800 |
commit | f8831b6ebadaadd848150170bc96df226f351687 (patch) | |
tree | 3ce1f53e6c7c13b6135bdf1d907f545a15ce5a03 /x11/dzen2 | |
parent | 3923309e275f0eeb8135616e1c13536db3d0f9fc (diff) | |
download | freebsd-ports-graphics-f8831b6ebadaadd848150170bc96df226f351687.tar.gz freebsd-ports-graphics-f8831b6ebadaadd848150170bc96df226f351687.tar.zst freebsd-ports-graphics-f8831b6ebadaadd848150170bc96df226f351687.zip |
- Add support for XINERAMA and XPM options
PR: 128279
Submitted by: Ashish Shukla <wahjava at gmail dot com>
Approved by: Morten Slot Kristensen <msk at nullpointer dot dk> (maintainer)
Diffstat (limited to 'x11/dzen2')
-rw-r--r-- | x11/dzen2/Makefile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/x11/dzen2/Makefile b/x11/dzen2/Makefile index ebac7483643..eb85450c24a 100644 --- a/x11/dzen2/Makefile +++ b/x11/dzen2/Makefile @@ -7,6 +7,7 @@ PORTNAME= dzen2 PORTVERSION= 0.8.5 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= http://gotmor.googlepages.com/ @@ -17,8 +18,31 @@ USE_XORG= x11 PLIST_FILES= bin/${PORTNAME} +OPTIONS= XPM "Enable XPM support" On \ + XINERAMA "Enable Xinerama support" On + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_XPM) +USE_XORG+= xpm +.endif + +.if !defined(WITHOUT_XINERAMA) +USE_XORG+= xinerama +.endif + post-patch: +.if !defined(WITHOUT_XPM) + ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXpm/g' \ + -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XPM/g' \ + ${WRKSRC}/config.mk +.endif +.if !defined(WITHOUT_XINERAMA) + ${REINPLACE_CMD} -e 's/^LIBS =\(.*\)$$/LIBS =\1 -lXinerama/g' \ + -e 's/^CFLAGS =\(.*\)$$/CFLAGS =\1 -DDZEN_XINERAMA/g' \ + ${WRKSRC}/config.mk +.endif ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ ${WRKSRC}/config.mk -.include <bsd.port.mk> +.include <bsd.port.post.mk> |