From 585c8a6ae1e9af6cd6b5b6cf169015af3814e03b Mon Sep 17 00:00:00 2001 From: bapt Date: Fri, 22 Mar 2013 08:16:07 +0000 Subject: Convert to new options framework left unconverted ports in x* categories --- x11/dmenu/Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'x11/dmenu') diff --git a/x11/dmenu/Makefile b/x11/dmenu/Makefile index 30c021294a33..213ab1445b0d 100644 --- a/x11/dmenu/Makefile +++ b/x11/dmenu/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: dmenu -# Date created: August 4, 2006 -# Whom: Jeroen Schot -# +# Created by: Jeroen Schot # $FreeBSD$ -# PORTNAME= dmenu PORTVERSION= 4.5 @@ -21,8 +17,8 @@ COMMENT= X11 menu application designed for the dwm window manager LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -OPTIONS= XINERAMA "Enable Xinerama support" On \ - XFT "Enable Xft support" Off +OPTIONS_DEFINE= XINERAMA XFT +OPTIONS_DEFAULT= XINERAMA USE_XORG= x11 @@ -31,11 +27,11 @@ PLIST_FILES= bin/dmenu bin/dmenu_run bin/stest .include -.if defined(WITH_XINERAMA) +.if ${PORT_OPTIONS:MXINERAMA} USE_XORG+= xinerama .endif -.if defined(WITH_XFT) +.if ${PORT_OPTIONS:MXFT} USE_XORG+= xft PATCHFILES+= ${PORTNAME}-${PORTVERSION}-xft.diff .endif @@ -45,7 +41,7 @@ post-patch: -e "s,%%PREFIX%%,${PREFIX},g" \ -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ -e "s,%%MANPREFIX%%,${MANPREFIX},g" -.if defined(WITHOUT_XINERAMA) +.if ! ${PORT_OPTIONS:MXINERAMA} @${REINPLACE_CMD} -e 's,$${XINERAMALIBS},,g' \ -e 's,$${XINERAMAFLAGS},,g' ${WRKSRC}/config.mk .endif -- cgit