diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-22 06:38:08 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-22 06:38:08 +0000 |
commit | 5241a99e7eec1d9525fbd91124770e2a246c224c (patch) | |
tree | 391b54dcde7a1b941bae09b6b76a5abe11921723 /lang/hugs/Makefile | |
parent | 30fbd551083bef3637f0825f9383b7ab61c176bb (diff) | |
download | pkgsrc-5241a99e7eec1d9525fbd91124770e2a246c224c.tar.gz |
Set WRKSRC to location of configure script, and manually create do-build
and do-install targets. This is better as the configure script gets
called with the correct environment settings. Also set the values for
INSTALL_PROGRAM and INSTALL_DATA used in the project's Makefile to their
pkgsrc BSD_* counterparts.
Diffstat (limited to 'lang/hugs/Makefile')
-rw-r--r-- | lang/hugs/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile index 442c3b53d73..76463db5056 100644 --- a/lang/hugs/Makefile +++ b/lang/hugs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2001/02/17 09:07:12 agc Exp $ +# $NetBSD: Makefile,v 1.14 2001/05/22 06:38:08 jlam Exp $ DISTNAME= hugs98-Feb2000 PKGNAME= hugs98-200002 @@ -11,18 +11,20 @@ COMMENT= Nottingham and Yale Haskell interpreter and programming environment DEPENDS+= readline-*:../../devel/readline -WRKSRC= ${WRKDIR}/hugs98/src -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--with-readline +WRKSRC= ${WRKDIR}/hugs98/src/unix +GNU_CONFIGURE= # defined +CONFIGURE_ARGS+= --with-readline +ALL_TARGET= default -ALL_TARGET= default -MAKE_ENV= INSTALL="${INSTALL}" INSTALL_DATA="${INSTALL_DATA}" \ - INSTALL_PROGRAM="${INSTALL_PROGRAM}" +do-build: + @cd ${WRKSRC}/.. && ${SETENV} ${MAKE_ENV} \ + ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET} -do-configure: - cd ${WRKSRC}; (cd unix; ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}) +do-install: + @cd ${WRKSRC}/.. && ${SETENV} ${MAKE_ENV} \ + ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET} post-install: - ${INSTALL_DATA} ${WRKSRC}/../docs/hugs.1 ${PREFIX}/man/man1/hugs.1 + ${INSTALL_MAN} ${WRKSRC}/../../docs/hugs.1 ${PREFIX}/man/man1/hugs.1 .include "../../mk/bsd.pkg.mk" |