summaryrefslogtreecommitdiff
path: root/graphics/tcm
diff options
context:
space:
mode:
authorjtb <jtb>2001-02-24 02:11:20 +0000
committerjtb <jtb>2001-02-24 02:11:20 +0000
commit12f751bd1807432b4fdd45113eb061afa22c34db (patch)
tree3923a0409a40c5edaaedaf48893bf25bca66f61b /graphics/tcm
parent7fa1e485d36cc4bacd599d294ff7a1315e48091e (diff)
downloadpkgsrc-12f751bd1807432b4fdd45113eb061afa22c34db.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' \