Date: Wed, 5 Mar 2008 23:11:56 +0100 From: "Aron Stansvik" <elvstone@gmail.com> To: freebsd-ports@freebsd.org Subject: Prefix of other ports from my_port/Makefile? Message-ID: <751a4f870803051411k147e4819te898e2fdfd832ec@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?751a4f870803051411k147e4819te898e2fdfd832ec>