aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-03-21 17:59:09 +0800
committermiwi <miwi@FreeBSD.org>2007-03-21 17:59:09 +0800
commitce24f0ec588d50dc4a8778345a4062c7913de226 (patch)
tree9413471e3248ff7b51ac82832037a571fa98588a /textproc
parent35e7511c7eb4cdc51a4cf785018cf274877ab595 (diff)
downloadfreebsd-ports-gnome-ce24f0ec588d50dc4a8778345a4062c7913de226.tar.gz
freebsd-ports-gnome-ce24f0ec588d50dc4a8778345a4062c7913de226.tar.zst
freebsd-ports-gnome-ce24f0ec588d50dc4a8778345a4062c7913de226.zip
- Use TCL/TK84
- Pass maintainership to submitter PR: 110423 Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/cost/Makefile31
-rw-r--r--textproc/cost/files/patch-configure11
2 files changed, 20 insertions, 22 deletions
diff --git a/textproc/cost/Makefile b/textproc/cost/Makefile
index 790c31627cb5..1de68bdf318e 100644
--- a/textproc/cost/Makefile
+++ b/textproc/cost/Makefile
@@ -5,21 +5,30 @@
# $FreeBSD$
#
-PORTNAME= cost
-PORTVERSION= 2.2p1
-CATEGORIES= textproc tk82
-MASTER_SITES= http://www.flightlab.com/~joe/cost/
+PORTNAME= cost
+PORTVERSION= 2.2p1
+PORTREVISION= 1
+CATEGORIES= textproc tcl84
+MASTER_SITES= http://www.flightlab.com/~joe/cost/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= carpetsmoker@xs4all.nl
COMMENT= SGML/XML application programming tool
-LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
+USE_TCL= yes
+USE_TCL_BUILD= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+=--with-tcl=${LOCALBASE}/lib/tcl8.4 \
+ --with-docdir=${PREFIX}/share/doc/cost --with-charmaps
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" TCL_INCLUDE_SPEC="${LOCALBASE}/include/tcl8.4"
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
-GNU_CONFIGURE= YES
-CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.2 \
- --with-docdir=${PREFIX}/share/doc/cost --with-charmaps
-CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" TCL_INCLUDE_SPEC="${LOCALBASE}/include/tcl8.2"
+post-patch:
+ @${REINPLACE_CMD} -e 's|TCL_SRC_DIR%g|TCL_INCLUDE_SPEC%g|' \
+ ${WRKSRC}/configure
+
+post-configure:
+ @${REINPLACE_CMD} -e 's|-I$$(TCL_SRC_DIR)/generic|$$(TCL_SRC_DIR)|' \
+ ${WRKSRC}/Makefile
do-install:
${MKDIR} ${PREFIX}/lib/cost2.2
diff --git a/textproc/cost/files/patch-configure b/textproc/cost/files/patch-configure
deleted file mode 100644
index c3207cbb1b81..000000000000
--- a/textproc/cost/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig Mon Jul 19 00:36:25 1999
-+++ configure Tue Nov 2 07:00:46 2004
-@@ -1174,7 +1174,7 @@
- s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
- s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
- s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
--s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
-+s%@TCL_SRC_DIR@%$TCL_INCLUDE_SPEC%g
- s%@TCL_PREFIX@%$TCL_PREFIX%g
- s%@TCL_EXEC_PREFIX@%$TCL_EXEC_PREFIX%g
- s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g