summaryrefslogtreecommitdiff
path: root/graphics/tcm
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-02-24 02:11:20 +0000
committerjtb <jtb@pkgsrc.org>2001-02-24 02:11:20 +0000
commit742ad4617865ae8f497537dec51e35da36ac813a (patch)
tree3923a0409a40c5edaaedaf48893bf25bca66f61b /graphics/tcm
parenta5bbac3e9351e2973e9ef0c195e1f2505c0f82ce (diff)
downloadpkgsrc-742ad4617865ae8f497537dec51e35da36ac813a.tar.gz
Fix configure script.
Diffstat (limited to 'graphics/tcm')
-rw-r--r--graphics/tcm/Makefile4
-rwxr-xr-xgraphics/tcm/scripts/configure2
2 files changed, 4 insertions, 2 deletions
diff --git a/graphics/tcm/Makefile b/graphics/tcm/Makefile
index 7db684df4a4..6d75d327a0f 100644
--- a/graphics/tcm/Makefile
+++ b/graphics/tcm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/02/24 01:29:53 jtb Exp $
+# $NetBSD: Makefile,v 1.2 2001/02/24 02:11:20 jtb Exp $
DISTNAME= tcm-2.01.src
PKGNAME= tcm-2.01
@@ -26,7 +26,7 @@ post-extract:
${RM} -f ${TCM_SRC}/lib/COPYING ${TCM_SRC}/lib/CHANGELOG
do-configure:
- ${SH} ${SCRIPTDIR}/configure
+ ${CONFIGURE_SCRIPT} ${WRKSRC}
do-install:
@for f in tcm tcmd tcmt text2ps; do \
diff --git a/graphics/tcm/scripts/configure b/graphics/tcm/scripts/configure
index 9bcc94e5460..def6065ff0c 100755
--- a/graphics/tcm/scripts/configure
+++ b/graphics/tcm/scripts/configure
@@ -1,5 +1,7 @@
#! /bin/sh
+WRKSRC=$1
+
for f in `/usr/bin/find $WRKSRC -name Makefile`; do \
/usr/bin/sed -e 's/$(PURIFY) $(CC) $(CFLAGS)/$(CXX) $(CXXFLAGS)/g' \
-e 's/$(Cc)/$(CC) $(CPPFLAGS) $(CFLAGS)/g' \