From owner-freebsd-ports@FreeBSD.ORG Wed Mar 5 22:39:25 2008 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 9813A106566C for ; Wed, 5 Mar 2008 22:39:25 +0000 (UTC) (envelope-from elvstone@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2C98FC14 for ; Wed, 5 Mar 2008 22:39:24 +0000 (UTC) (envelope-from elvstone@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so3592025uge.37 for ; Wed, 05 Mar 2008 14:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=y2XbyZciaufoC5PoqTbn4aTW3f76TDIWSdRDxJ/BGho=; b=xQUKMcFHNJ+na+nwK0MM/s8OF8X0ZIAEpGaSrtlWyKvfTe99vgkEca9r7ISVo4oqFQ3n1QJhkrM4gsg886CHadMnwv3FunuslZ7vbXS1cDWv28iVG98nhMjCyFTX9Lpw5YHCa8guBPwFZdmrqiQAhAk3yT8lCIcY/3ft7Q46GeI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ta48JzjR8fN9VeWCNkysNTWb5TN2lAdW9w+DhKpvs3JP1zSzr0jIX1guZRI7LcmffZ7mxBZk8A8kwaPTebl1KHDC+SgHrKeC3dK+DHsoNUxid6YnkEGQXPQXgTJNQGe4PjbjLYmv+RymM0hBZjCtmtJMfRB3a/xHzuswbZWij4Y= Received: by 10.78.154.14 with SMTP id b14mr8141116hue.55.1204755116909; Wed, 05 Mar 2008 14:11:56 -0800 (PST) Received: by 10.78.131.20 with HTTP; Wed, 5 Mar 2008 14:11:56 -0800 (PST) Message-ID: <751a4f870803051411k147e4819te898e2fdfd832ec@mail.gmail.com> Date: Wed, 5 Mar 2008 23:11:56 +0100 From: "Aron Stansvik" To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Prefix of other ports from my_port/Makefile? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 22:39:25 -0000 Hello freebsd-ports@ This is my first post. My question is if it's possible to get the prefix under which another port was installed from within the Makefile of my own port? My port depends on security/cyrus-sasl2, hence I have: LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 But what I would also need to do is set the following variables in the configure environment of my port: CPPFLAGS="-I/path/to/sasl2/includes" LDFLAGS="-L/path/to/sasl2/libs" Or otherwise the configure script will not find the libsasl2 includes or libraries. From what I can tell from other ports that require this, people just use: ${LOCALBASE}/include and ${LOCALBASE}/lib for this. But what if cyrus-sasl2 was installed in another prefix, say /var/tmp/foobar ? Can I somehow get the prefix under which cyrus-sasl2 was installed, and use that as a base instead of ${LOCALBASE}, which may or may not be correct? I ran into this issue when I tried to install my port along with its dependencies into a prefix other than ${LOCALBASE}. Thanks for any answers. Regards, Aron Stansvik