Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 10:10:13 -0700 (PDT)
From:      William Grzybowski <william88@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177209: [PATCH] emulators/mtools: convert to options ng
Message-ID:  <514b3ef5.2a26b60a.1270.3069@mx.google.com>
Resent-Message-ID: <201303211720.r2LHK0QY025861@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177209
>Category:       ports
>Synopsis:       [PATCH] emulators/mtools: convert to options ng
>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 Mar 21 17:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Grzybowski
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
>Description:

	- Convert to options ng
	- Trim makefile header
	Redports: https://redports.org/buildarchive/20130321165800-30435/

>How-To-Repeat:
>Fix:

	See attached patch


--- mtools.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 314852)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:    mtools
-# Date created:         5 October 1994
-# Whom:                 jmz
-#
+# Created by: jmz
 # $FreeBSD$
-#
 
 PORTNAME=	mtools
 PORTVERSION=	4.0.10
@@ -33,22 +29,27 @@
 MAN5=		mtools.5
 INFO=		mtools
 
-.if defined(WITHOUT_ICONV)
-CONFIGURE_ENV+=	ac_cv_header_iconv_h=no
-.else
+OPTIONS_DEFINE=	ICONV X11
+OPTIONS_DEFAULT=ICONV X11
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MICONV}
 USE_ICONV=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -liconv
+.else
+CONFIGURE_ENV+=	ac_cv_header_iconv_h=no
 .endif
 
-.if defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
+USE_XORG=	x11 sm ice xau
+PLIST_SUB=	X11=""
+MAN1+=		floppyd.1 floppyd_installtest.1
+.else
 CONFIGURE_ARGS+=	--without-x
 PLIST_SUB=	X11="@comment "
 MAKE_ENV+=	WITHOUT_X11=${WITHOUT_X11}
-.else
-USE_XORG=	x11 sm ice xau
-PLIST_SUB=	X11=""
-MAN1+=		floppyd.1 floppyd_installtest.1
 .endif
 
 post-patch:
--- mtools.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?514b3ef5.2a26b60a.1270.3069>