From turutani@polymer3.scphys.kyoto-u.ac.jp  Fri Jul 14 07:03:39 2006
Return-Path: <turutani@polymer3.scphys.kyoto-u.ac.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C0D9E16A4DF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Jul 2006 07:03:39 +0000 (UTC)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (polymer3.scphys.kyoto-u.ac.jp [130.54.55.55])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2A1FD43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Jul 2006 07:03:38 +0000 (GMT)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (localhost [127.0.0.1])
	by polymer3.scphys.kyoto-u.ac.jp (8.13.6/8.13.6/20060227-1) with ESMTP id k6E73WGN088192;
	Fri, 14 Jul 2006 16:03:32 +0900 (JST)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: (from turutani@localhost)
	by polymer3.scphys.kyoto-u.ac.jp (8.13.6/8.13.6/Submit) id k6E73VFj088191;
	Fri, 14 Jul 2006 16:03:31 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200607140703.k6E73VFj088191@polymer3.scphys.kyoto-u.ac.jp>
Date: Fri, 14 Jul 2006 16:03:31 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: no way to build x11-wm/fv2m95-i18m without apm outside of BATCH mode
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         100274
>Category:       ports
>Synopsis:       no way to build x11-wm/fv2m95-i18m without apm outside of BATCH mode
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    itetcu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 07:10:15 GMT 2006
>Closed-Date:    Fri Jul 14 23:06:20 GMT 2006
>Last-Modified:  Fri Jul 14 23:06:20 GMT 2006
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD polymer3.scphys.kyoto-u.ac.jp 6.1-STABLE FreeBSD 6.1-STABLE #2: Tue May 30 06:56:45 JST 2006 turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	I want to build x11-wm/fvwm95-i18n without APM support, and
	I want to build with as possible as little input.
	Defining "WITH_APM=no" in make argument does not disable APM support,
	for the value of the variable is not checked.
	
>How-To-Repeat:
	% make WITH_APM=no
	
>Fix:
	Here is a patch:
	--- Makefile.orig	Tue Jun  6 17:05:13 2006
	+++ Makefile	Fri Jul 14 15:52:49 2006
	@@ -41,9 +41,10 @@
	 SAMPLEDIR=	${PREFIX}/share/examples/fvwm95
	 KITDIR=		${WRKDIR}/${PKGNAME}-portKit
	
	-.if defined(WITH_APM)
	+.if defined(WITH_APM) && !defined(WITHOUT_APM)
	 ONLY_FOR_ARCHS=	i386
	 ONLY_FOR_ARCHS_REASON= apm.h is only in i386 system
	+.else
	 .endif
	
	 post-extract:
	@@ -53,7 +54,7 @@
	 	${CP} ${WRKDIR}/apmpatch/freebsd-menu.xpm ${WRKSRC}/mini-icons
	
	 pre-patch:
	-.if !defined(BATCH) && !defined(FOR_CDROM) && !defined(WITH_APM)
	+.if !defined(BATCH) && !defined(FOR_CDROM) && !defined(WITH_APM) && !defined(WITHOUT_APM)
	 	 @${ECHO} -n "Are you going to use APM handling? (y/n) ==> "
	 	@(read ans; \
	 	  case x"$$ans" in \
	@@ -68,7 +69,7 @@
	 	  esac)
	 .endif
	 post-patch:
	-.if defined(WITH_APM)
	+.if defined(WITH_APM) && !defined(WITHOUT_APM)
	 	@${CAT} ${WRKDIR}/apmpatch/fvwm95-2.0.43a-Autoconf.I18N.apmpatch \
	 	| ${PATCH} -d ${WRKSRC}
	 .endif

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->itetcu 
Responsible-Changed-By: itetcu 
Responsible-Changed-When: Fri Jul 14 22:58:27 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100274 
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Fri Jul 14 23:06:18 UTC 2006 
State-Changed-Why:  
Port OPTIONified to fic the problem, but thanks for submitting this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100274 
>Unformatted:
