ports/177209: [PATCH] emulators/mtools: convert to options ng
William Grzybowski
william88 at gmail.com
Thu Mar 21 17:20:00 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list