From owner-freebsd-ports@FreeBSD.ORG Tue Nov 23 09:16:30 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 312FD16A4CE for ; Tue, 23 Nov 2004 09:16:30 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 302A043D49 for ; Tue, 23 Nov 2004 09:16:29 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 26495 invoked by uid 89); 23 Nov 2004 09:19:26 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 23 Nov 2004 09:19:26 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id 385361149D for ; Tue, 23 Nov 2004 11:16:27 +0200 (EET) Date: Tue, 23 Nov 2004 11:16:26 +0200 From: Ion-Mihai Tetcu To: ports@FreeBSD.ORG Message-ID: <20041123111626.64715e10@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: setting PKGNAMESUFFIX after bsd.port.pre.mk illegal ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 09:16:30 -0000 Hi, Consider the following snippet after including bsd.port.pre.mk .if defined(WITH_MYSQL40) WANT_MYSQL_VER= 40 PKGNAMESUFFIX= -mysql40 .elseif defined(WITH_MYSQL41) WANT_MYSQL_VER= 41 PKGNAMESUFFIX= -mysql41 .endif The result is : # make rmconfig && make [ OPTIONS screen, disable default WITH_SQLITE and enable WITH_MYSQL40 ] make: don't know how to make /usr/ports/mail/dspam.my/work/.build_done.dspam-sqlite2-3.2.2.20041117.1515._usr_local. Stop *** Error code 2 After this if you do a `make install` again, or if the OPTIONS are already defined or if one does `make config && make install` the error does not happen. The port can be found at: http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/port/dspam.3.2.2.20041117.1515.v2.tar.gz -- IOnut Unregistered ;) FreeBSD "user"