summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-04-03 22:11:43 +0000
committertron <tron@pkgsrc.org>1998-04-03 22:11:43 +0000
commitf1719ce738e824ae4915a34f08fa3b11b5874c91 (patch)
tree32a39aec2b8b198de4a5c49614d732128d6778ee
parent53bf82929a5e8578a52d14468ea5471fc7021f9b (diff)
downloadpkgsrc-f1719ce738e824ae4915a34f08fa3b11b5874c91.tar.gz
Solve problem with "configure" target in a more future compatible way.
-rw-r--r--lang/hugs/Makefile15
-rwxr-xr-xlang/hugs/files/configure3
2 files changed, 8 insertions, 10 deletions
diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile
index 56bbe4d43b5..49a80ea3c29 100644
--- a/lang/hugs/Makefile
+++ b/lang/hugs/Makefile
@@ -3,7 +3,7 @@
# Date created: 22-Mar-98
# Whom: nathanw@mit.edu
#
-# $NetBSD: Makefile,v 1.1 1998/04/03 21:14:22 tron Exp $
+# $NetBSD: Makefile,v 1.2 1998/04/03 22:11:43 tron Exp $
DISTNAME= hugs-January1998-source
PKGNAME= hugs-1.4
@@ -17,15 +17,10 @@ MAINTAINER= nathanw@mit.edu
WRKSRC= ${WRKDIR}/hugs/src
GNU_CONFIGURE= yes
ALL_TARGET= default
+MAKE_ENV= INSTALL="${INSTALL}" INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}"
-# The hugs distribution puts configure and friends in a subdirectory
-# below the sources, and insists that configure be run from that directory,
-# which is awkward for bsd.port.mk.
-do-configure:
- @(cd ${WRKSRC}/unix && CC="${CC}" ac_cv_path_CC="${CC}" \
- CFLAGS="${CFLAGS}" \
- INSTALL="${INSTALL_DATA}" \
- INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+post-extract:
+ @${LN} -s ${FILESDIR}/configure ${WRKSRC}
.include <bsd.port.mk>
diff --git a/lang/hugs/files/configure b/lang/hugs/files/configure
new file mode 100755
index 00000000000..b36a0611487
--- /dev/null
+++ b/lang/hugs/files/configure
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd unix
+exec ./configure $*