ports/128279: [PATCH] Added XINERAMA and XPM OPTIONS in x11/dzen2 port
Ashish Shukla
wahjava at gmail.com
Tue Oct 21 18:00:07 UTC 2008
>Number: 128279
>Category: ports
>Synopsis: [PATCH] Added XINERAMA and XPM OPTIONS in x11/dzen2 port
>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: Tue Oct 21 18:00:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Ashish Shukla
>Release: 8.0-CURRENT
>Organization:
N/A
>Environment:
FreeBSD monte-cristo.france 8.0-CURRENT FreeBSD 8.0-CURRENT #16: Wed Oct 15 19:56:58 IST 2008 root at monte-cristo.france:/usr/obj/usr/src/sys/ULE amd64
>Description:
This diff adds supports for XINERAMA and XPM options in x11/dzen2 port.
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/x11/dzen2/Makefile dzen2/Makefile
--- /usr/ports/x11/dzen2/Makefile 2008-06-01 05:38:57.000000000 +0530
+++ dzen2/Makefile 2008-10-21 23:17:40.000000000 +0530
@@ -7,6 +7,7 @@
PORTNAME= dzen2
PORTVERSION= 0.8.5
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://gotmor.googlepages.com/
@@ -17,8 +18,31 @@
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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list