Date: Sun, 3 Nov 1996 16:55:16 PST From: Bill Fenner <fenner@parc.xerox.com> To: ports@freebsd.org Subject: Figuring out another port's build directory Message-ID: <96Nov3.165528pst.177557@crevenia.parc.xerox.com>
next in thread | raw e-mail | index | archive | help
My "vat" port depends on include files in the gsm port's build directory. I could hardcode in "${PORTSDIR}/audio/gsm/work/gsm-1.0-pl10", but given that 2.1.5 had gsm1.0.7 and -current has gsm1.0.10, I'm hesitant to do that. Does anyone see anything wrong with the following Makefile construct (other than that it's hairy)? GSM_DIR= ${PORTSDIR}/audio/gsm # Grunge the GSM work directory out of the port makefile. CONFIGURE_ARGS= --with-gsm=`awk '/^WRKSRC=/ { sub(/$$[{(]?WRKDIR[})]?/, WRKDIR, $$2); print $$2 }' WRKDIR=${GSM_DIR}/work ${GSM_DIR}/Makefile` This should handle all of WRKSRC= $WRKDIR/foo WRKSRC= $(WRKDIR)/foo WRKSRC= ${WRKDIR}/foo Thanks, Bill (I previously used `echo ${GSM_DIR}/work/gsm*`, but got worried about someone not cleaning out their "work" directory after the gsm port got updated and having both gsm-1.0-pl7 and gsm-1.0-pl10 directories present)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Nov3.165528pst.177557>