From owner-freebsd-ports@FreeBSD.ORG Tue Jan 10 16:11:12 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D4D71065670 for ; Tue, 10 Jan 2012 16:11:12 +0000 (UTC) (envelope-from prvs=3494d318e=pschmehl_lists@tx.rr.com) Received: from ip-002.utdallas.edu (ip-002.utdallas.edu [129.110.20.108]) by mx1.freebsd.org (Postfix) with ESMTP id 8FFF28FC14 for ; Tue, 10 Jan 2012 16:11:11 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsFAPBeDE+BbgogXGdsb2JhbABDrHIiAhAUJYFyAQEBAwEBAQE1AhQgEAsLDjgnAQkSFAYBBwcEARwEh1kItwSLMGMEiDqKLYtDiTs X-IronPort-AV: E=Sophos;i="4.71,487,1320645600"; d="scan'208";a="83686790" Received: from zxtm01.utdallas.edu (HELO utd71538.utdallas.edu) ([129.110.10.32]) by ip-002.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Jan 2012 09:52:14 -0600 Date: Tue, 10 Jan 2012 09:52:10 -0600 From: Paul Schmehl To: Da Rock , freebsd-ports@freebsd.org Message-ID: In-Reply-To: <4F0B8BD0.5040405@herveybayaustralia.com.au> References: <4F0446B7.4090703@herveybayaustralia.com.au> <20120104142757.1c77c347@ernst.jennejohn.org> <4F04E648.9090206@herveybayaustralia.com.au> <20120105121825.656677e4@ernst.jennejohn.org> <20120106221610.00005fbe@unknown> <20120108160316.00003d59@unknown> <4F0A8164.9090502@herveybayaustralia.com.au> <4F0B8BD0.5040405@herveybayaustralia.com.au> X-Mailer: Mulberry/4.1.0a1 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=1314 Cc: Subject: Re: define issue - linux-f10-nss_ldap: my first port - be gentle :) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 16:11:12 -0000 --On January 10, 2012 10:52:32 AM +1000 Da Rock wrote: > I'm having some trouble using knobs and "defined" in the Makefile. It > keeps complaining about the unexpected. > > I've tried .if defined(WITH_PAM) and .ifdefined(WITH_PAM) and it > complains about an unexpected "(" in the first, and an unexpected word in > the second. > > How do I conditionally handle the knobs? > You need an if - endif for each knob. Something like this. .if defined(WITH_PAM) CONFIGURE_ARGS+= --with-pam PLIST_SUB+= PAM="" .else CONFIGURE_ARGS+= --without-pam PLIST_SUB+= PAM="@comment not installed: " .endif _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell