From 9360f3ee3beaf3f0b8fb034806d797acb0ab5727 Mon Sep 17 00:00:00 2001 From: jtb Date: Sat, 3 May 2003 20:44:41 +0000 Subject: Fix location of libtool in oo2crc.xml. --- lang/oo2c/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lang/oo2c') diff --git a/lang/oo2c/Makefile b/lang/oo2c/Makefile index 5aa00e691c1..8b77b1c2532 100644 --- a/lang/oo2c/Makefile +++ b/lang/oo2c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2003/05/02 23:32:39 jtb Exp $ +# $NetBSD: Makefile,v 1.2 2003/05/03 20:44:41 jtb Exp $ .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") DISTNAME= oo2c_64-2.0.8 @@ -22,6 +22,15 @@ GNU_CONFIGURE= yes USE_GMAKE= yes USE_LIBTOOL= yes +EVAL_PREFIX+= LIBTOOL_PREFIX=libtool-base +LIBTOOL_PREFIX_DEFAULT= ${LOCALBASE} + +pre-install: + for f in ${WRKSRC}/rsrc/OOC/oo2crc.xml; do \ + ${SED} -e 's,${BUILDLINK_DIR},${LIBTOOL_PREFIX},g' \ + $$f > $$f.tmp && ${MV} $$f.tmp $$f; \ + done + post-install: cd ${PREFIX}/share/doc/html && ${LN} -sf ${PREFIX}/lib/oo2c/oocdoc/html oo2c ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp -- cgit v1.2.3