Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2006 16:03:31 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/100274: no way to build x11-wm/fv2m95-i18m without apm outside of BATCH mode
Message-ID:  <200607140703.k6E73VFj088191@polymer3.scphys.kyoto-u.ac.jp>
Resent-Message-ID: <200607140710.k6E7AGd2062011@freefall.freebsd.org>

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

>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:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 07:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607140703.k6E73VFj088191>